{
 "categories": [
  "developer-tools",
  "source-control"
 ],
 "deployment": "hybrid",
 "evidence": [
  {
   "date": "2026-09-05",
   "fact": "homepage",
   "note": "Sourcegraph presents a code-intelligence platform for search, Deep Search, MCP, and agent context over large codebases.",
   "source": "https://sourcegraph.com/",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "license",
   "note": "Sourcegraph publishes commercial pricing with credits for AI features and lists single-tenant cloud and self-hosted deployment. The opened page is a sales/demo motion, not a free self-serve plan.",
   "source": "https://sourcegraph.com/pricing",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "deployment",
   "note": "The pricing feature list includes both single-tenant cloud and self-hosted. Parity of API, CLI, and MCP across those deployments was not established beyond this listing.",
   "source": "https://sourcegraph.com/pricing",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "platforms",
   "note": "Official src CLI install instructions cover macOS, Linux, and Windows. The product UI is a web application on the instance.",
   "source": "https://sourcegraph.com/docs/cli/quickstart",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.api.exists",
   "note": "Sourcegraph documents a versioned external API from 7.0, plus streaming search, MCP, Analytics, webhooks, and a GraphQL debug API.",
   "source": "https://sourcegraph.com/docs/api",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.api.kinds[0]",
   "note": "GraphQL is served at /.api/graphql. Vendor docs call it a debug API without backwards-compatibility guarantees.",
   "source": "https://sourcegraph.com/docs/api/graphql",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.api.kinds[1]",
   "note": "From Sourcegraph 7.0, a versioned external API is advertised at /api-reference with an OpenAPI schema. The page states capabilities are still being ported.",
   "source": "https://sourcegraph.com/docs/api",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.api.kinds[2]",
   "note": "Streaming search is GET /.api/search/stream and returns a server-sent event stream of matches. Vendor docs recommend it for code-search integrations.",
   "source": "https://sourcegraph.com/docs/api/stream-api",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.api.auth[0]",
   "note": "Access tokens created under Settings > Access tokens authenticate as Authorization: token YOUR_TOKEN.",
   "source": "https://sourcegraph.com/docs/api/graphql",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.api.auth[1]",
   "note": "OAuth apps issue bearer tokens. GraphQL access with OAuth requires the user:all scope. MCP uses the mcp scope.",
   "source": "https://sourcegraph.com/docs/admin/oauth-apps",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.api.coverage",
   "note": "Search has a dedicated streaming API. GraphQL remains available without compatibility guarantees. The versioned REST API is explicitly a work in progress.",
   "source": "https://sourcegraph.com/docs/api",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.mcp.first_party",
   "note": "Vendor docs document first-party HTTP MCP on each instance at /.api/mcp, /.api/mcp/all, and /.api/mcp/deepsearch, supported on Enterprise plans.",
   "source": "https://sourcegraph.com/docs/api/mcp",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.mcp.verdict",
   "note": "Official MCP authentication is OAuth 2.0 (DCR or pre-registered clients) or access tokens. DCR clients are restricted to the mcp scope. Access tokens may also use the mcp scope.",
   "source": "https://sourcegraph.com/docs/api/mcp/authentication",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.cli.exists",
   "note": "Sourcegraph documents the official src CLI for search, batch changes, and instance administration.",
   "source": "https://sourcegraph.com/docs/cli",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.cli.exists",
   "note": "src authenticates with interactive src login OAuth or non-interactive SRC_ACCESS_TOKEN, and reads SRC_ENDPOINT.",
   "source": "https://sourcegraph.com/docs/cli/explanations/env",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.extensibility.webhooks",
   "note": "Site admins can create outgoing webhooks that POST Sourcegraph events (batch changes, changesets, user:create) to an external URL with a shared secret.",
   "source": "https://sourcegraph.com/docs/admin/config/webhooks/outgoing",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.data_access.export[0]",
   "note": "GraphQL responses are JSON objects. The page shows curl sending a JSON query body and receiving JSON data.",
   "source": "https://sourcegraph.com/docs/api/graphql",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "modalities.agent_docs.llms_txt",
   "note": "Opened https://sourcegraph.com/docs/llms.txt. The response is a Next.js 404 page, not agent documentation.",
   "source": "https://sourcegraph.com/docs/llms.txt",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "verdict.scores.api",
   "note": "APIs exist and are documented, but GraphQL has no compatibility guarantee and the versioned REST API is still being ported. That is useful coverage with material limits.",
   "source": "https://sourcegraph.com/docs/api",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "verdict.scores.mcp",
   "note": "Official instance MCP exposes a named search and navigation tool matrix, but vendor docs gate it to Enterprise and require mcp scope plus MCP#ACCESS.",
   "source": "https://sourcegraph.com/docs/api/mcp",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "verdict.scores.cli",
   "note": "Official src has installers, OAuth login, PAT/CI auth, and src search. That is a maintained production CLI with useful coverage, not a full structured-output matrix on the opened pages.",
   "source": "https://sourcegraph.com/docs/cli/quickstart",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "freshness.watch[0].url",
   "note": "Opened the Sourcegraph MCP API page. It documents endpoints, Enterprise support, RBAC, the mcp scope, and the tool matrix.",
   "source": "https://sourcegraph.com/docs/api/mcp",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "freshness.watch[1].url",
   "note": "Opened MCP authentication. It documents OAuth DCR, pre-registered clients, access tokens, and the mcp scope.",
   "source": "https://sourcegraph.com/docs/api/mcp/authentication",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "freshness.watch[2].url",
   "note": "Opened the Sourcegraph API overview, including the 7.0 versioned API, streaming search, MCP, webhooks, and GraphQL debug status.",
   "source": "https://sourcegraph.com/docs/api",
   "tier": "declared"
  },
  {
   "date": "2026-09-05",
   "fact": "freshness.watch[3].url",
   "note": "Opened the src CLI quickstart. It documents install, src login / SRC_ACCESS_TOKEN, and src search.",
   "source": "https://sourcegraph.com/docs/cli/quickstart",
   "tier": "declared"
  }
 ],
 "freshness": {
  "last_verified": "2026-09-05",
  "volatility": "high",
  "watch": [
   {
    "type": "mcp",
    "url": "https://sourcegraph.com/docs/api/mcp"
   },
   {
    "type": "mcp",
    "url": "https://sourcegraph.com/docs/api/mcp/authentication"
   },
   {
    "type": "docs",
    "url": "https://sourcegraph.com/docs/api"
   },
   {
    "type": "docs",
    "url": "https://sourcegraph.com/docs/cli/quickstart"
   }
  ]
 },
 "homepage": "https://sourcegraph.com/",
 "id": "sourcegraph",
 "license": "commercial",
 "modalities": {
  "agent_docs": {
   "llms_txt": false
  },
  "api": {
   "auth": [
    "access-token",
    "oauth2"
   ],
   "coverage": "partial",
   "docs": "https://sourcegraph.com/docs/api",
   "exists": true,
   "kinds": [
    "graphql",
    "rest",
    "streaming-search"
   ]
  },
  "cli": {
   "exists": true
  },
  "computer_use": {
   "issues": [],
   "viability": "unknown"
  },
  "data_access": {
   "export": [
    "api-json"
   ],
   "import": []
  },
  "extensibility": {
   "scripting": [],
   "webhooks": true
  },
  "integrations": {
   "make": "unknown",
   "n8n": "unknown",
   "power_automate": "unknown",
   "zapier": "unknown"
  },
  "mcp": {
   "first_party": true,
   "third_party": [],
   "verdict": "official"
  },
  "rpa": {
   "drivability": "unknown",
   "notes": "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.\n",
   "ui_stack": [
    "web-dom"
   ],
   "vendor_support": []
  },
  "sdk": {
   "exists": "unknown",
   "languages": [],
   "official": "unknown"
  }
 },
 "name": "Sourcegraph",
 "platforms": [
  "web",
  "windows",
  "macos",
  "linux"
 ],
 "related": {
  "alternatives": [
   "github",
   "gitlab"
  ],
  "our_products": []
 },
 "schema_version": 1,
 "score_version": 1,
 "status": "active",
 "vendor": "Sourcegraph",
 "verdict": {
  "best_path": "cli",
  "scores": {
   "api": 6,
   "cli": 7,
   "computer_use": null,
   "integrations": null,
   "mcp": 6,
   "overall": 7,
   "rpa": null
  },
  "summary": "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`.\n"
 }
}