This guide walks you through connecting Sourcegraph to Pydantic AI 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 Pydantic AI 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.


