Model Context Protocol (MCP)
Connecting MCP Clients
Configure Claude, Cursor, VS Code, ChatGPT, Gemini CLI, Codex, Windsurf, and Zed for Weave MCP.
Connecting MCP Clients
Replace placeholders:
<MCP_HOST>— MCP origin (workspace tools)<APP_HOST>— app / API origin (OAuth discovery)wn_YOUR_TOKEN— personal API token
Claude.ai (OAuth)
- Settings → Connectors → Add custom connector.
- URL:
https://<MCP_HOST>/v1/mcp - Complete OAuth 2.1 (DCR + PKCE). Discovery uses
/.well-known/oauth-protected-resource/v1/mcp.
See MCP OAuth.
Claude Code (CLI)
claude mcp add --transport http weave https://<MCP_HOST>/v1/mcp \
--header "Authorization: Bearer wn_YOUR_TOKEN"Cursor & Claude Desktop (mcp-remote)
File: .cursor/mcp.json or claude_desktop_config.json
{
"mcpServers": {
"weave": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://<MCP_HOST>/v1/mcp",
"--header",
"Authorization: Bearer wn_YOUR_TOKEN"
]
}
}
}ChatGPT (OAuth)
Add a custom MCP / connector pointing at https://<MCP_HOST>/v1/mcp and complete the hosted OAuth flow.
VS Code
File: .vscode/mcp.json
{
"servers": {
"weave": {
"type": "http",
"url": "https://<MCP_HOST>/v1/mcp",
"headers": {
"Authorization": "Bearer wn_YOUR_TOKEN"
}
}
}
}Gemini CLI
File: ~/.gemini/settings.json
{
"mcpServers": {
"weave": {
"httpUrl": "https://<MCP_HOST>/v1/mcp",
"headers": {
"Authorization": "Bearer wn_YOUR_TOKEN"
}
}
}
}Codex CLI
File: config.toml
[mcp_servers.weave]
url = "https://<MCP_HOST>/v1/mcp"
bearer_token_env_var = "WEAVE_API_TOKEN"export WEAVE_API_TOKEN=wn_YOUR_TOKENWindsurf
Same mcp-remote JSON as Cursor (mcp_config.json).
Zed
{
"context_servers": {
"weave": {
"command": {
"path": "npx",
"args": [
"-y",
"mcp-remote",
"https://<MCP_HOST>/v1/mcp",
"--header",
"Authorization: Bearer wn_YOUR_TOKEN"
]
}
}
}
}MCP Inspector
npx -y @modelcontextprotocol/inspector npx -y mcp-remote \
https://<MCP_HOST>/v1/mcp \
--header "Authorization: Bearer wn_YOUR_TOKEN"Docs-only MCP (no token)
For reading these documentation pages only:
{
"mcpServers": {
"weave-docs": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://<APP_HOST>/api/docs/mcp"]
}
}
}Details: Public docs server.