MCP服务

创建新的MCP服务配置

post/mcp-services

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

Request body

descriptionstring
enabledboolean
headersobject
namestring required

服务名称,空间内唯一

transport_type'sse' | 'http-streamable' required

传输方式

urlstring required

服务地址(http 或 https)

usage_instructionsstring

告诉智能体何时、如何使用该服务

Response

创建的MCP服务

successboolean

Example response

{
  "success": true
}

Changes