Integration
Code search across repositories. Your client pastes their Sourcegraph key once, and your agent or your code works with their access.
Developer tools
Sourcegraph searches code across repositories.
With your client's Sourcegraph connected, your agent can search their code.
Sourcegraph · Developer tools
Code search across repositories
The client pastes their access token from Sourcegraph's settings. We store it encrypted.
Tested against Sourcegraph's live API.
Building with Sourcegraph? The docs have setup steps and code for every tool.
Your agent calls any endpoint of Sourcegraph's API with the request tool, with the client's access attached.
Base URL for request
https://sourcegraph.com/.api
request
HTTPS ANY /v1/clients/{clientId}/sourcegraph/{path}
Any endpoint of Sourcegraph's own API, with the client's access attached.
Over MCP every tool also takes client_id, from list_clients. Over HTTPS send it as clientId to https://api.operate.as/v1.
Related
Get started
Add a client, select the services, copy the link. You'll get an email the moment their access is ready. Start free, no card required. Paid plans are one flat monthly price, and a busy month never takes your agents offline.