Skip to content

OAuth Err #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mengmengmengqiang opened this issue May 4, 2025 · 4 comments
Open

OAuth Err #145

mengmengmengqiang opened this issue May 4, 2025 · 4 comments
Labels

Comments

@mengmengmengqiang
Copy link

https://autorag.mcp.cloudflare.com/oauth/authorize?response_type=code&client_id=AftsgUpCUV7kjQAk&code_challenge=X__Sg-idGixZUBboYyxNJEixbjpcnd5lQP23nAO-094&code_challenge_method=S256&redirect_uri=http%3A%2F%2F127.0.0.1%3A49762%2Foauth%2Fcallback

I config mcp-remote into my Claude.app desktop file.
The OAuth return 500 error: Internal Error.

@mengmengmengqiang
Copy link
Author

I change rediect_uri port from 53300 to 3334.

Since I see npx mcp-remote logs below.

(fastmcp) ➜ fastmcp-server git:(develop) npx mcp-remote https://autorag.mcp.cloudflare.com/sse
[32815] Using automatically selected callback port: 49762
[32815] [32815] Connecting to remote server: https://autorag.mcp.cloudflare.com/sse
[32815] Using transport strategy: http-first
[32815]
Please authorize this client by visiting:
https://autorag.mcp.cloudflare.com/oauth/authorize?response_type=code&client_id=AftsgUpCUV7kjQAk&code_challenge=X__Sg-idGixZUBboYyxNJEixbjpcnd5lQP23nAO-094&code_challenge_method=S256&redirect_uri=http%3A%2F%2F127.0.0.1%3A49762%2Foauth%2Fcallback
[32815] Browser opened automatically.
[32815] Authentication required. Initializing auth...
[32815] Initializing auth coordination on-demand
[32815] Another instance is handling authentication on port 3334
[32815] Waiting for authentication from the server on port 3334...
[32815] Querying: http://127.0.0.1:3334/wait-for-auth
[32815] Authentication still in progress
[32815] Querying: http://127.0.0.1:3334/wait-for-auth
[32815] Authentication still in progress
[32815] Querying: http://127.0.0.1:3334/wait-for-auth
[32815] Authentication still in progress
[32815] Querying: http://127.0.0.1:3334/wait-for-auth
[32815] Authentication still in progress
[32815] Querying: http://127.0.0.1:3334/wait-for-auth
[32815] Authentication still in progress
[32815] Querying: http://127.0.0.1:3334/wait-for-auth

@tommoor
Copy link

tommoor commented May 5, 2025

For now, clearing saved auth info using rm -rf ~/.mcp-auth should resolve the error, but this is a big issue

@irvinebroque
Copy link
Collaborator

@geelen should we track on mcp-remote repo?

@mengmengmengqiang
Copy link
Author

mengmengmengqiang commented May 5, 2025

For now, clearing saved auth info using rm -rf ~/.mcp-auth should resolve the error, but this is a big issue

My solution: change the redirect port to 3334, and re-enter this profile. Can solve this problem.

However, the autorag mcp tool: list_rags has internal problem.
@irvinebroque @geelen
#146

@cmsparks cmsparks added the auth label May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants