创建 MCP 服务器

在工作区中创建新的 MCP 服务器配置。

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
configobject必需
Configuration details for the MCP Server.

响应

成功响应

idstring
configobject
metadataobject

MCP 服务器的元数据

access_infoobject or null可选

MCP Server 的访问信息

dependent_agentslist of objects可选

依赖此 MCP Server 的智能体列表。

错误

422
Unprocessable Entity Error