Import MCP tools
/titan/tools/mcp-servers/{id}/importImport the registered server's tools/list; requires tool-gateway:tool:write in the server's owning organization (for a system server, the system tools organization). Imported tools are drafts: publish each (POST /titan/tools/tools/{id}/publish) to approve it; a tool whose definition changed upstream returns to draft. A server that requires authentication is imported with a bearer token given for this import only, or with a connection of the server's organization whose token the auth service uses. One unusable tool is skipped with its reason; slugs stay stable across re-imports. The response names the imported toolkit (toolkit_slug) and lists its tools with their ids and lifecycles (tools); GET /titan/tools/tools?lifecycle=draft&toolkit={toolkit_slug} lists the drafts later.
Requires permission tool-gateway:tool:write.
Path parameters
Headers
Bearer <token>. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).
Workspace scope used by permission checks, if applicable.
Optional environment scope.
Body parameters
Returns
200OKMCPImportResponse
Rejected and RejectedList are the previous response's members, kept for existing clients: the count of skipped tools and "tool: reason".
ToolkitSlug is the imported toolkit, MCP_<SERVER_SLUG>.
Tools are the toolkit's rows this import listed or retired (added, updated, unchanged and retired), ordered by slug. New and changed tools are drafts: publish each with POST /titan/tools/tools/{tool_id}/publish.
Errors
- 400Bad Request
- 401Unauthenticated: token missing or rejected at the edge
- 403Forbidden
- 404Not Found
- 409Conflict