Skip to content
Hexel StudioDocs

Import MCP tools

POST/titan/tools/mcp-servers/{id}/import

Import 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

idstring

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).

X-Workspace-Idoptional string

Workspace scope used by permission checks, if applicable.

X-Environment-Idoptional string

Optional environment scope.

Body parameters

authoptional MCPImportAuth

Returns

200OKMCPImportResponse

changesImportChanges
importMCPImport
importedinteger
rejectedinteger

Rejected and RejectedList are the previous response's members, kept for existing clients: the count of skipped tools and "tool: reason".

rejected_listarray of string
skippedarray of MCPSkippedTool

ToolkitSlug is the imported toolkit, MCP_<SERVER_SLUG>.

toolsarray of ImportedTool

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