Skip to main content
POST
启用 MCP 服务器

限制说明

使用说明

  • 对已启用的服务器再次启用会返回 InvalidParameter,而不是静默忽略。
  • 需要对服务器当前所属团队具有编辑权限:账户级服务器仅限所有者/管理员;团队级服务器要求调用者属于该团队(或为所有者/管理员)。
  • 每次调用都会记录到账户审计日志。

授权

app_key
string
query
必填

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

请求体

application/json

按 ID 启用/禁用 MCP 服务器。

server_id
string
必填

目标 MCP 服务器 ID。

响应

Success

Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.

request_id
string
必填

Unique ID for this request. Mirrored in the Flashcat-Request-Id header. Include it when reporting issues.

示例:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

error
object

Error payload inside the response envelope. Present only on non-2xx responses.

data
null

成功时恒为 null。