MCP skills API
Manage skill-embedded MCP servers that provide additional tools to agents. Each skill can bundle its own MCP server with a set of tools. Activate a skill’s MCP server on demand and deactivate it when no longer needed.
All MCP skill endpoints require session-based authentication through NextAuth. Idle MCP servers are automatically cleaned up.
Activate a skill MCP
Starts the MCP server bundled with the specified skill. Returns the server metadata including its name, version, available tools, and activation timestamp.
Path parameters
Built-in skills
The following skills ship with built-in MCP servers:
Response
Errors
Deactivate a skill MCP
Stops the MCP server for the specified skill and frees its resources.
Path parameters
Response
Errors
Invokes a specific tool on an active MCP server. The skill’s MCP server must be activated before calling its tools.
Requires session authentication.
Path parameters
Request body
The request body should be a JSON object containing the tool parameters. You can either pass parameters directly as the body or wrap them in a parameters key:
Or directly:
An empty body or no body is allowed for tools that take no parameters.
Response (200)
Response (400)
When the tool call fails (for example, invalid parameters):
Errors
Automatic idle cleanup
MCP servers that remain idle are automatically deactivated to free resources. You do not need to manually deactivate servers that are no longer in use, though explicit deactivation is recommended when you know a skill’s tools are no longer needed.