Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/api/mcp/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ You can add the Sourcegraph MCP server to [Claude Code](https://claude.ai/code)
{
"mcpServers": {
"sourcegraph": {
"type": "http",
"url": "https://your-sourcegraph-instance.com/.api/mcp/v1",
"headers": {
"Authorization": "token YOUR_ACCESS_TOKEN"
Expand All @@ -123,7 +124,7 @@ You can also add the Sourcegraph MCP server as a locally-scoped server, which is
1. Run the following command in your terminal:

```bash
claude mcp add sourcegraph -s local --url https://your-sourcegraph-instance.com/.api/mcp/v1 --header "Authorization: token YOUR_ACCESS_TOKEN"
claude mcp add sourcegraph -s local --transport http https://your-sourcegraph-instance.com/.api/mcp/v1 --header "Authorization: token YOUR_ACCESS_TOKEN"
```

<Callout type="info">
Expand Down