MCP服务

更新MCP服务配置

put/mcp-services/{id}

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}
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

MCP服务ID

Request body

descriptionstring
enabledboolean

启用或停用该服务

headersobject
namestring

新的服务名称

transport_type'sse' | 'http-streamable'

新的传输方式

urlstring

新的服务地址(http 或 https)

usage_instructionsstring

新的使用说明,1 到 16000 个字符

Response

更新后的MCP服务

successboolean

Example response

{
  "success": true
}

Changes