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.

コメント

「その他」の他のコンテンツ