MCP服务
设置 MCP 工具策略
Changed on为指定 MCP 服务下的某个工具更新启用状态、人工审批要求和/或风险等级。 至少提供 require_approval、enabled、risk 之一;省略的字段保持原值。 risk 为 read/probe/write/destructive,空字符串表示改回按服务注解推断。
put/mcp-services/{id}/tool-approvals/{tool_name}
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}/tool-approvals/{tool_name}
- Auth
- API key in header Authorization
- or API key in header X-API-Key
Path parameters
idstring required
MCP 服务 ID
tool_namestring required
工具名
Request body
object required
Response
更新结果
Example response
{
"success": true
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking