跳到主内容

一篇文章 含有标签「Cursor」

查看所有标签

Cursor、Claude 和 ChatGPT 的 MCP OAuth 重定向 URI:在 Casdoor 中注册 MCP 客户端

· 阅读时间:一分钟
Yang Luo
Casdoor Maintainer

每个 MCP 客户端在登录受 OAuth 保护的 MCP 服务器时都会发送自己的重定向 URI。Cursor 桌面版使用 http://localhost:8787/callback(2026 年中之前的版本使用 cursor://anysphere.cursor-mcp/oauth/callback),Cursor 网页版和 Cursor Cloud Agents 使用 https://www.cursor.com/agents/mcp/oauth/callback,claude.ai、Claude Desktop 连接器、Claude 移动版和 Cowork 使用 https://claude.ai/api/mcp/auth_callback,而 ChatGPT 使用 https://chatgpt.com/connector_platform_oauth_redirect 或每个连接对应的 https://chatgpt.com/connector/oauth/<callback-id>。如果你在 Casdoor 中启用了动态客户端注册,则无需输入这些值:客户端会自行注册或将客户端 ID 元数据文档交给 Casdoor。只有当你手动为客户端创建 Casdoor 应用 时,才需要将它们添加到 Redirect URLs 中。