Sourcegraph MCP Server
@E-Kuerschner
Sourcegraph MCP Server について
Local MCP Server that searches for React prop usage via Sourcegraph API
基本情報
設定
ツール
ツールは検出されませんでした
ツールは 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.
FAQ from Sourcegraph MCP Server
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.
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.
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.
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.
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.
「その他」の他のコンテンツ
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
コメント