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

ModalityStatusDetail
APIyesgraphqlreststreaming-searchaccess-tokenoauth2
coverage: partial · docs
SDKunknown
official: unknown
MCPyes
verdict: official
Integrationsunknown
CLIyes
Extensibilityyes
webhooks: True
Data access
export: api-json · import: unknown
RPA / UI automationunknownweb-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 useunknown
measured verdicts only — "unknown" means not yet probed by us

Scores

apimcpintegrationsclirpacomputer useoverall
6677

Evidence

FactTierSourceDate
homepagedeclaredsource2026-09-05
licensedeclaredsource2026-09-05
deploymentdeclaredsource2026-09-05
platformsdeclaredsource2026-09-05
modalities.api.existsdeclaredsource2026-09-05
modalities.api.kinds[0]declaredsource2026-09-05
modalities.api.kinds[1]declaredsource2026-09-05
modalities.api.kinds[2]declaredsource2026-09-05
modalities.api.auth[0]declaredsource2026-09-05
modalities.api.auth[1]declaredsource2026-09-05
modalities.api.coveragedeclaredsource2026-09-05
modalities.mcp.first_partydeclaredsource2026-09-05
modalities.mcp.verdictdeclaredsource2026-09-05
modalities.cli.existsdeclaredsource2026-09-05
modalities.cli.existsdeclaredsource2026-09-05
modalities.extensibility.webhooksdeclaredsource2026-09-05
modalities.data_access.export[0]declaredsource2026-09-05
modalities.agent_docs.llms_txtdeclaredsource2026-09-05
verdict.scores.apideclaredsource2026-09-05
verdict.scores.mcpdeclaredsource2026-09-05
verdict.scores.clideclaredsource2026-09-05
freshness.watch[0].urldeclaredsource2026-09-05
freshness.watch[1].urldeclaredsource2026-09-05
freshness.watch[2].urldeclaredsource2026-09-05
freshness.watch[3].urldeclaredsource2026-09-05

Related tools

Other products in this database that share a category with Sourcegraph.

Last verified 2026-09-05 · volatility high · JSON record