Sourcegraph MCP Server for VS Code
io.github.sourcegraph/mcp
Sourcegraph code search, semantic search, go-to-definition, find-references, and diff search.
client:VS Code
transport:streamable-http
Install Sourcegraph MCP Server in VS Code
.vscode/mcp.json
{
"servers": {
"mcp": {
"type": "http",
"url": "https://{sourcegraph_hostname}/.api/mcp"
}
}
}
Requires agent mode. MCP: Open User Configuration puts the same block in every workspace. VS Code docs