Setting up an MCP Surface
An MCP (Model Context Protocol) Surface connects your Runtype Capabilities to AI IDEs like Claude Desktop, Cursor, and VS Code. Your Flows and Agents become tools that AI assistants can discover and invoke.
What is MCP?
MCP is a protocol that enables AI assistants to interact with external tools and services. When you create an MCP Surface, your Product's Capabilities become available as tools within AI development environments.
This enables scenarios like:
Claude Desktop calling your data retrieval Flow while helping with analysis
Cursor invoking your code generation Agent during development
VS Code using your custom tools through the Cline extension
Before you begin
Your Product should have at least one Capability (Flow or Agent) that you want to expose as an MCP tool. When creating a Surface from the launch panel, the first Capability is automatically added to the Surface.
Learn how to add Capabilities in Adding Capabilities to a Product.
Create an MCP Surface
Open your Product
Find the Surfaces section
Click Add Surface
Select MCP Server
Configure the Surface:
Name: Descriptive name (e.g., "IDE Tools")
Status: Active
Click Create
A "Connect to AI Assistants" setup wizard guides you through configuring which Capabilities appear as tools and connecting to Claude Desktop or Cursor.
Configure Tools
In the first setup step, choose which Capabilities to expose as MCP tools. Each Capability attached to your Product appears with an enable/disable toggle. You can use Enable All or Disable All to quickly configure all Capabilities at once.
You can change which tools are enabled later in the Surface's Endpoints tab.
Ship to Claude Desktop or Cursor
The Ship step provides connection instructions for three options: Claude Desktop, Cursor, and Other (any MCP-compatible client). All use the same JSON config format with an API key in the Authorization: Bearer header.
Claude Desktop
Open Claude Desktop
Go to Settings → Developer → Edit Config
Add the provided config to
mcpServersReplace
YOUR_API_KEYwith an API key (see Keys tab below)Restart Claude Desktop
Config file location:
macOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Cursor
Open Cursor
Go to Settings (Cmd/Ctrl + ,)
Search for "MCP"
Click Add new MCP server
Paste the provided config
Replace
YOUR_API_KEYwith an API key (see Keys tab below)Reload the window
See detailed connection guides: Connecting to Claude Desktop and Connecting to Cursor / VS Code.
Overview
The Overview tab displays your Surface's name, status, and key information. Verify your Surface is configured correctly before connecting to AI IDEs.
Endpoints
The Endpoints tab shows your MCP Endpoint URL and MCP Manifest URL for the Surface. AI clients use the single MCP endpoint and discover available tools via the MCP protocol.
You can also enable or disable individual Capabilities as MCP tools here—the same toggles from the Configure Tools step.
For programmatic integrations, the Advanced: Programmatic Integration section shows the MCP Server URL and MCP Manifest URL:
MCP Server URL:
https://api.runtype.com/v1/products/{productId}/surfaces/{surfaceId}/mcpMCP Manifest:
https://api.runtype.com/v1/products/{productId}/surfaces/{surfaceId}/mcp/.well-known/mcp.json
Keys
MCP Surfaces use API keys for authentication. Create or reveal API keys in the Keys tab.
The Ship tab can auto-create a "Default MCP Key" for testing. You can also create additional keys in the Keys tab with custom names and scopes.
Create an API key
Navigate to the Keys tab
Click Generate API Key
Configure the key:
Name: Descriptive name (e.g., "Claude Desktop - Production")
Key Type:
Test — Revealable, limited (50/day, 500 lifetime)
Production — Hash-only, unlimited
Rate Limit: Optional requests/minute limit
Click Generate
Copy and securely store the API key—it won't be shown again for Production keys
API keys grant access to invoke your Capabilities. Store them securely and never commit them to version control. Rotate keys immediately if they're exposed.
Test keys can be revealed later in the Keys tab. Production keys are hashed and cannot be recovered—if lost, generate a new key.
Ship
The Ship tab provides ready-to-use configuration for Claude Desktop, Cursor, and Other MCP-compatible clients. The config includes your MCP endpoint URL and an API key placeholder.
The Ship tab can also auto-create a "Default MCP Key" (Test key) for quick setup. Replace YOUR_API_KEY in the config with this key or create a Production key in the Keys tab.
Verify Capability exposure
After connecting an AI IDE, verify your Capabilities appear as available tools:
Claude Desktop: Check the tools icon in the chat interface
Cursor: Tools appear in the MCP section of the chat panel
VS Code (Cline): View available tools in the Cline sidebar settings
Test by asking the AI assistant to use one of your Capabilities by name.
Make sure your Product status is set to Active for the MCP Surface to work.
Next steps
Connecting to Claude Desktop for detailed Claude Desktop integration
Connecting to Cursor / VS Code for Cursor and VS Code setup
MCP authentication for detailed authentication and security options