Skip to main content
idapt
HomeAI ModelsExploreResourcesPricing
Sign inUse for Free
All integrations

Sourcegraph

Code search across repositories and organisations.

Developer
Web data
Connect SourcegraphSourcegraph docs

How an agent reaches it

MCPREST APICLI

How you authenticate

API key
Get an API key
  1. Create an access token in user settings.
  2. Sourcegraph expects `Authorization: token <value>`, not Bearer.

Connection details

Base URL
https://sourcegraph.com/.api/graphql
Pagination
cursor

Common endpoints

search codePOST /

Worth knowing

  • GraphQL only, and the `Authorization` scheme word is `token` rather than `Bearer`.
  • Self-hosted instances use their own host.
  • Home
  • Pricing
  • AI Models
  • Skills
  • Image models
  • Voice models
  • Video models
  • Rankings
  • Multi-Model Chat
  • Agents
  • Computers
  • Drive
  • Automations
  • AI Gateway
  • All features →
  • Blog
  • About
  • Comparisons
  • Benchmarks
  • Model Match
  • Demos
  • Help center
  • FAQ
  • Privacy
  • Support
  • Developers
  • Quickstarts
  • API reference
  • API pricing
  • CLI
  • MCP
  • Migrate
  • Downloads
  • Desktop
© idapt[email protected]TermsPrivacy PolicyLegal noticeReport content
X (Twitter)Discord