Can AI agents automate Sourcegraph?
Sourcegraph · hybrid · developer-toolssource-control
Sourcegraph is automatable today through the official `src` CLI. This record is Sourcegraph instance code search, navigation, and Deep Search. It is not GitHub or GitLab. `src` installs as a standalone binary on macOS, Linux, and Windows. Interactive use is `src login` OAuth against `SRC_ENDPOINT`. CI and scripts use `SRC_ACCESS_TOKEN`. Documented commands include `src search` (optional `-stream`) and `src api` for GraphQL. Pricing lists single-tenant cloud and self-hosted; this pass did not open pages that establish feature parity between those deployments. HTTP APIs on an instance include GraphQL at `/.api/graphql`, streaming search at `/.api/search/stream`, and a versioned REST surface advertised from Sourcegraph 7.0 at `/api-reference`. GraphQL is documented as a debug API without compatibility guarantees. The new REST API is a work in progress. Auth is an access token (`Authorization: token`) or an OAuth bearer token. GraphQL OAuth needs the `user:all` scope. First-party MCP is HTTP on the instance at `/.api/mcp`, `/.api/mcp/all`, and `/.api/mcp/deepsearch`. Vendor docs state MCP is supported on Enterprise plans. MCP auth is OAuth 2.0 (DCR or pre-registered clients) or access tokens; MCP endpoints require the `mcp` scope and the `MCP#ACCESS` permission. Named tools include `read_file`, `list_files`, `list_repos`, `keyword_search`, `code_finder`, and `deepsearch`. Outgoing webhooks exist for batch-change, changeset, and user events. iPaaS connector catalogs were not opened. Computer-use viability is unassessed. The CLI scores 7 and is the best path because it is official, works with token or OAuth auth, and does not depend on the Enterprise MCP gate documented for `/.api/mcp`.
Best path today: cli · Overall automatability: 7/10
Modalities
| Modality | Status | Detail |
|---|---|---|
| API | yes | graphqlreststreaming-searchaccess-tokenoauth2 coverage: partial · docs |
| SDK | unknown | official: unknown |
| MCP | yes | verdict: official |
| Integrations | unknown | |
| CLI | yes | |
| Extensibility | yes | webhooks: True |
| Data access | export: api-json · import: unknown | |
| RPA / UI automation | unknown | web-dom No repeatable UI probe was run. Sourcegraph's GraphQL, streaming search, versioned REST, official src CLI, outgoing webhooks, and instance MCP cover practical code-intelligence automation without browser control.
|
| Computer use | unknown | measured verdicts only — "unknown" means not yet probed by us |
Scores
| api | mcp | integrations | cli | rpa | computer use | overall |
|---|---|---|---|---|---|---|
| 6 | 6 | — | 7 | — | — | 7 |
Evidence
| Fact | Tier | Source | Date |
|---|---|---|---|
homepage | declared | source | 2026-09-05 |
license | declared | source | 2026-09-05 |
deployment | declared | source | 2026-09-05 |
platforms | declared | source | 2026-09-05 |
modalities.api.exists | declared | source | 2026-09-05 |
modalities.api.kinds[0] | declared | source | 2026-09-05 |
modalities.api.kinds[1] | declared | source | 2026-09-05 |
modalities.api.kinds[2] | declared | source | 2026-09-05 |
modalities.api.auth[0] | declared | source | 2026-09-05 |
modalities.api.auth[1] | declared | source | 2026-09-05 |
modalities.api.coverage | declared | source | 2026-09-05 |
modalities.mcp.first_party | declared | source | 2026-09-05 |
modalities.mcp.verdict | declared | source | 2026-09-05 |
modalities.cli.exists | declared | source | 2026-09-05 |
modalities.cli.exists | declared | source | 2026-09-05 |
modalities.extensibility.webhooks | declared | source | 2026-09-05 |
modalities.data_access.export[0] | declared | source | 2026-09-05 |
modalities.agent_docs.llms_txt | declared | source | 2026-09-05 |
verdict.scores.api | declared | source | 2026-09-05 |
verdict.scores.mcp | declared | source | 2026-09-05 |
verdict.scores.cli | declared | source | 2026-09-05 |
freshness.watch[0].url | declared | source | 2026-09-05 |
freshness.watch[1].url | declared | source | 2026-09-05 |
freshness.watch[2].url | declared | source | 2026-09-05 |
freshness.watch[3].url | declared | source | 2026-09-05 |
Related tools
Other products in this database that share a category with Sourcegraph.
Last verified 2026-09-05 · volatility high · JSON record