Create or update MCP server with automatic tool discovery
Create or update MCP server with automatic tool discovery. While Admin > Guardrails warns on tool descriptions, each discovered action is scored for prompt injection and stored with injection: {p, scorer}; the response's injection is {flagged: [names], unscored: [names]} (null while the warnings are off). Nothing is deactivated.
Personal access token scope: tools:write.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
application/json- body
config*MCP server configuration
displayName*stringDisplay name for the MCP server
id?stringTool ID for updates (optional)
status?booleanTool status
trueSuccess
curl -X POST 'http://localhost:7091/api/mcp_server/save' \ -H 'Content-Type: application/json' \ -d '{ "config": {}, "displayName": "string"}'Delete a tool by ID POST
Delete a tool by ID. [Personal access token](/API/personal-access-tokens) scope: `tools:write`.
POST /api/mcp_server/oauth_cancel POST
Cancel an MCP OAuth sign-in the caller started, so the worker stops waiting for its callback. [Personal access token](/API/personal-access-tokens) scope: `tools:write`.