MCP.so
登录

Sourcegraph MCP Server

@E-Kuerschner

基本信息

分类

其他

传输方式

stdio

作者

E-Kuerschner

关于 Sourcegraph MCP Server

Local MCP Server that searches for React prop usage via Sourcegraph API

Sourcegraph MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Sourcegraph MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Sourcegraph MCP Server?

An MCP server that integrates with Sourcegraph to provide code search and analysis capabilities to LLMs. It requires a Sourcegraph access token and is built from TypeScript.

How to use Sourcegraph MCP Server?

Build the server from TypeScript with yarn run build, then configure your MCP client (e.g., Cursor or Claude Desktop) with the server. Set the SRC_ACCESS_TOKEN environment variable and optionally SRC_ENDPOINT. Verify installation by prompting the LLM to use the testSourcegraphConnection tool.

Key features of Sourcegraph MCP Server

  • Test connection to Sourcegraph and return version information.
  • Search code in Sourcegraph with a given query.
  • Retrieve specific file contents from a repository.
  • Search for usage of a specific prop of a React component.

Use cases of Sourcegraph MCP Server

  • Query codebases directly from an LLM to answer coding questions.
  • Retrieve file contents for analysis or context.
  • Verify connectivity to a Sourcegraph instance before deeper searches.
  • Find all usages of a React component prop across repositories.

常见问题

1

What do I need to use Sourcegraph MCP Server?

A valid Sourcegraph API access token and either a local environment or MCP server configuration. The token is set as the `SRC_ACCESS_TOKEN` environment variable.

2

Can I use Sourcegraph MCP Server with my own Sourcegraph instance?

Yes. Set the `SRC_ENDPOINT` environment variable to your instance URL. If omitted, it defaults to `https://sourcegraph.com`.

3

How do I verify that Sourcegraph MCP Server is working correctly?

Prompt your MCP client to use the `testSourcegraphConnection` tool. It will attempt to connect and return Sourcegraph version information.

4

What tools does Sourcegraph MCP Server expose to an LLM?

Four tools: `testSourcegraphConnection`, `search`, `getFileContent`, and `searchReactPropUsage`. Their names and descriptions are listed in the README.

5

How do I install Sourcegraph MCP Server for Cursor?

Run the optional `install_cursor.sh` script, which walks you through setting environment variables and configures Cursor automatically.

评论

其他 分类下的更多 MCP 服务器