An MCP (Model Context Protocol) Surface turns your Runtype Capabilities into tools that AI assistants can discover and use directly. Once connected, AI IDEs like Claude Desktop, Cursor, and VS Code can call your Flows and Agents on demand from the chat interface.
MCP is an open protocol that lets AI assistants interact with external tools and services. When you create an MCP Surface, your Product’s Capabilities are automatically published as tools that any MCP-compatible client can discover and invoke.
This enables workflows like:
Your Product needs at least one Capability to expose as a tool. If you have not added one yet, create a Flow or Agent first. When you create an MCP Surface from the launch panel, the first Capability is added automatically.
A setup wizard walks you through choosing which Capabilities to expose as tools and connecting to your AI IDE.
Choose which Capabilities to expose as MCP tools. Each Capability attached to your Product appears with an enable or disable toggle. Use Enable All or Disable All to update everything at once.
You can change which tools are enabled later from the Surface’s Endpoints tab.
The Ship step helps you connect your Surface to an AI IDE. Start by choosing an authentication mode:
The Ship tab provides a JSON config snippet you can copy directly into your client. For detailed setup instructions for Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, JetBrains, and other MCP clients, see Connecting to MCP clients.
The Overview tab shows your Surface name, status, and key details. Make sure the Surface status is Active before you connect AI IDEs.
The Endpoints tab shows your MCP endpoint URL and lets you enable or disable individual Capabilities as tools.
You can also override a Capability name or description for this Surface. This is useful when the same Capability is used across multiple Surfaces with different contexts.
For programmatic integrations, the Advanced: Programmatic Integration section provides these endpoints:
https://api.runtype.com/v1/products/{productId}/surfaces/{surfaceId}/mcphttps://api.runtype.com/v1/products/{productId}/surfaces/{surfaceId}/mcp/.well-known/mcp.jsonMCP Surfaces can use API keys for authentication. Create and manage keys in the Keys tab.
To create an API key:
Production keys are hashed and cannot be recovered after creation. Generate a new key if one is lost. Test keys can be revealed later from the Keys tab.
The Ship tab can create a default test key for quick setup, so you do not need to create one manually to get started. Store API keys securely and never commit them to version control. Rotate keys immediately if they are exposed.
The Ship tab provides configuration snippets for Claude Desktop, Cursor, and other MCP-compatible clients. You can return to this tab anytime to copy connection details or create a quick-start key.
Most clients use an MCP library that performs the initialize handshake and tool discovery for you. If you are integrating directly, the Surface accepts JSON-RPC 2.0 requests over HTTP POST:
Authenticate with a Bearer token (or X-API-Key) using the mcp_ prefix. initialize is public; tools/list and tools/call require authentication on protected Surfaces.
List the tools available to your key:
The result contains each Capability exposed as a tool, with its JSON Schema:
Call a tool by name with its arguments:
The result returns a content array (typically text):
For capability discovery without authentication, fetch the public manifest at .../mcp/.well-known/mcp.json. Errors are returned as JSON-RPC error objects using standard codes (-32700 parse error, -32600 invalid request, -32601 method not found, -32602 invalid params, -32603 internal error); authentication failures return -32001 (authorization required) or -32002 (API key required).
After you connect an AI IDE, confirm your Capabilities appear as available tools:
Try asking the AI assistant to use one of your Capabilities by name. It should appear as an available tool and run when invoked.
If tools are not appearing, check that your Product status is Active and that the Capabilities you want are enabled in the Endpoints tab.