Sourcegraph

Sourcegraph

Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.

114VIEWS
2258USERS

Install MCP Server

Paste and run this command in your terminal to set up Cursor with MCP

npx @composio/cli add cursor --app sourcegraphnpx @composio/cli add cursor --app sourcegraphnpx @composio/cli add cursor --app sourcegraphnpx @composio/cli add cursor --app sourcegraph

After running the command, restart Cursor to start using the MCP Server.

Available Tools

Check Site Settings Edit Permission

Tool to check whether site settings can be edited through the api. use when you need to confirm the api allows site settings edits before attempting configuration changes.

Compare Commits

Tool to compare two commits in a repository and retrieve their file diffs. use after confirming the repository name and commit shas to inspect differences.

Get Commit Details

Get detailed information about a specific commit in a repository.

Get Current User

Tool to retrieve information about the currently authenticated user. use when needing confirmation of identity via sourcegraph graphql api.

Get File Contents

Tool to fetch the contents of a specified file on the default branch. use when you need raw file text without cloning the repo or using a slower code-host api.

List Repositories

Tool to list repositories on the sourcegraph instance. use when you need to paginate through all available repositories.

List Repository Files

Tool to list all files and directories in a repository path. use when you need to enumerate files in a repository without cloning.

List Repository Languages

Tool to list languages used in a repository. use when you need to determine the primary and all languages of a given repository; call after you have the repository name.

8 actions available