POST/mcp/enable

Enable MCP Server

Enable the MCP server endpoint at /mcp (only with root permissions).

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

4 status codes
200MCP server enabled.
messagestringoptional
400Invalid token.
messagestringoptional
401Unauthenticated.
messagestringoptional
403You are not allowed to enable the MCP server.
messagestringoptional

Error handling

A 400 is returned: Invalid token. A 401 is returned: Unauthenticated. A 403 is returned: You are not allowed to enable the MCP server.