This guide walks you through connecting Sourcegraph to the Claude Agent SDK using the Composio tool router. By the end, you'll have a working Sourcegraph agent that can list repositories and files, read file contents, compare commits, check commit details, and see repository languages through natural language commands.
This guide will help you understand how to give your Claude Agent SDK agent real control over a Sourcegraph account through Composio's Sourcegraph MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.


