不允许使用 MCP 端点方法 (DELETE)

删除 /api/v1/projects/{id}/mcp

MCP 端点是无状态服务器:仅支持 POST。 DELETE(会话拆除)被拒绝。

路径参数

  • id 字符串 必需

    项目 ID

响应

  • 404 application/json

    未为此项目启用 MCP访问权限

    隐藏响应属性 显示响应属性 对象
    • 代码 字符串
    • 错误 字符串
    • Success 布尔
  • 405 application/json

    方法不允许

    隐藏响应属性 显示响应属性 对象
    • 代码 字符串
    • 错误 字符串
    • Success 布尔
DELETE /api/v1/projects/{id}/mcp
curl \
 --request DELETE 'https://agentengine.mongodb.com/api/v1/projects/{id}/mcp' \
 --header "Authorization: $API_KEY"
响应示例 (404)
{
  "code": "string",
  "error": "string",
  "success": true
}
响应示例 (405)
{
  "code": "string",
  "error": "string",
  "success": true
}