Skip to content

Commit d28686b

Browse files
authored
Add 'type' field to Claude MCP server configuration (#1409)
`type: http` needs to be present in order to connect to Claude Code. ✅ Code block ✅ One-liner (Bash command) <img width="1318" height="1540" alt="CleanShot 2025-11-11 at 16 12 38@2x" src="https://github.com/user-attachments/assets/18b41c13-9582-44ef-846c-65f2deb18095" /> <!-- Explain the changes introduced in your PR --> ## Pull Request approval You will need to get your PR approved by at least one member of the Sourcegraph team. For reviews of docs formatting, styles, and component usage, please tag the docs team via the #docs Slack channel.
1 parent e6b4e04 commit d28686b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/api/mcp/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ You can add the Sourcegraph MCP server to [Claude Code](https://claude.ai/code)
100100
{
101101
"mcpServers": {
102102
"sourcegraph": {
103+
"type": "http",
103104
"url": "https://your-sourcegraph-instance.com/.api/mcp/v1",
104105
"headers": {
105106
"Authorization": "token YOUR_ACCESS_TOKEN"
@@ -123,7 +124,7 @@ You can also add the Sourcegraph MCP server as a locally-scoped server, which is
123124
1. Run the following command in your terminal:
124125

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

129130
<Callout type="info">

0 commit comments

Comments
 (0)