From c835dbad6b2c10bec78c1fe3678ef38642db61d0 Mon Sep 17 00:00:00 2001 From: Justin Dorfman Date: Tue, 11 Nov 2025 13:13:35 -0800 Subject: [PATCH 1/2] Add 'type' field to Claude MCP server configuration --- docs/api/mcp/index.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/mcp/index.mdx b/docs/api/mcp/index.mdx index cfa418b0d..05cb224a8 100644 --- a/docs/api/mcp/index.mdx +++ b/docs/api/mcp/index.mdx @@ -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" From 0d41160bd5778a9566ad4c5cf01e70d274e2b926 Mon Sep 17 00:00:00 2001 From: Justin Dorfman Date: Tue, 11 Nov 2025 16:09:46 -0800 Subject: [PATCH 2/2] Update MCP documentation to change transport method in command example --- docs/api/mcp/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/mcp/index.mdx b/docs/api/mcp/index.mdx index 05cb224a8..5c0a9a9fe 100644 --- a/docs/api/mcp/index.mdx +++ b/docs/api/mcp/index.mdx @@ -124,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" ```