connect
Create connection
Create a new MCP connection with an auto-generated ID. Requires API key and namespace ownership.
post/{namespace}
Path parameters
namespacestring required
Request body
Example request
{
"transport": "http",
"mcpUrl": "https://mcp.example.com/sse",
"server": "upstash/context7-mcp",
"name": "My MCP Server",
"metadata": {
"userId": "user123",
"team": "engineering"
},
"headers": {
"X-API-Key": "secret-key"
},
"mock": {
"scenario": "Slack workspace with an active #community-ops channel containing recent event-planning messages, plus 50 Airtable candidate records with mixed tenure and interests."
}
}Response
Connection created
Example response
{
"connectionId": "clever-dolphin-a9X3",
"mock": {
"scenario": "Slack workspace with an active #community-ops channel containing recent event-planning messages, plus 50 Airtable candidate records with mixed tenure and interests."
}
}