Connecting an AI client¶
Connecting takes two pieces of information and one config edit. This page covers both transports — SSE for Claude Code, Cursor, Windsurf, and Cline, and Streamable HTTP for the Codex CLI.
Before you start¶
- Know your server URL. Replace
your-specivo-hostin the snippets below with your actual Specivo host (for example,specivo.example.com). - Get an
mcp-scoped key. Create one under Your profile → API keys if you haven't already. See API keys & scopes. Each snippet uses the placeholderspv_your_api_key_here— substitute your realspv_…key.
Add the configuration¶
The two endpoints serve the same tools; choose the tab that matches your client.
For Claude Code, Cursor, Windsurf, and Cline, point the client at the SSE
endpoint (/mcp/sse/) and pass the key as a bearer token:
{
"mcpServers": {
"specivo": {
"type": "sse",
"url": "https://your-specivo-host/mcp/sse/",
"headers": { "Authorization": "Bearer spv_your_api_key_here" }
}
}
}
Add this to your client's MCP configuration, then restart or reload the client so it picks up the new server.
Verify the connection¶
Once the client reloads, it should discover the specivo_… tools. Ask the agent to run
specivo_whoami — it returns the user the key belongs to, confirming both the connection and which
account the agent is acting as.
Let Specivo generate the snippet for you
You don't have to copy the config by hand. The server provides a specivo_setup_guide tool
and a specivo://docs/agent-setup resource that emit a ready-made configuration snippet for
your client, already filled in for your host. Ask a connected agent to call the setup guide, or
point your client at the resource, to get a copy-paste-ready block.
MCP request returns a permission error
If the agent connects but a tool call is refused, the key's account most likely lacks the
required role on that project, or the key is missing the mcp scope. Check both on the
API keys page and the project's member list.