mcp-server-cloudflare icon indicating copy to clipboard operation
mcp-server-cloudflare copied to clipboard

OAuth Err

Open mengmengmengqiang opened this issue 8 months ago • 4 comments

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 avatar May 04 '25 19:05 mengmengmengqiang

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

mengmengmengqiang avatar May 04 '25 19:05 mengmengmengqiang

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

tommoor avatar May 05 '25 15:05 tommoor

@geelen should we track on mcp-remote repo?

irvinebroque avatar May 05 '25 15:05 irvinebroque

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 https://github.com/cloudflare/mcp-server-cloudflare/issues/146

mengmengmengqiang avatar May 05 '25 18:05 mengmengmengqiang