MCP服务

使用断言获取 MCP OAuth 令牌

Changed on

以 JWT Bearer 授权(RFC 7523)提交调用方签发的断言(如 ID-JAG),为当前用户获取并保存令牌, 无需浏览器跳转。使用该服务已注册的 OAuth 客户端

post/mcp-services/{id}/oauth/assertion

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/mcp-services/{id}/oauth/assertion
  • Auth
    API key in header Authorization

Path parameters

idstring required

MCP 服务 ID

Request body

object required

Response

与 oauth/status 相同

successboolean

Example response

{
  "success": true
}

Changes