Sourcegraph
Overview
SLUG: SOURCEGRAPH
Description
Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.
Authentication Details
API Key
Connecting to Sourcegraph
Create an auth config
Use the dashboard to create an auth config for the Sourcegraph toolkit. This allows you to connect multiple Sourcegraph accounts to Composio for agents to use.
Create and Get auth config ID
Click “Create Integration”. After creation, copy the displayed ID starting with ac_
. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database.
This ID will be used to create connections to the toolkit for a given user.
Connect Your Account
Using API Key
Tools
Executing tools
To prototype you can execute some tools to see the responses and working on the Sourcegraph toolkit’s playground
OpenAI (Python)
Anthropic (TypeScript)
Google (Python)
Vercel (TypeScript)
Tool List
SOURCEGRAPH_CHECK_SITE_SETTINGS_EDIT_PERMISSION
Tool Name: Check Site Settings Edit Permission
Description
Action Parameters
Action Response
SOURCEGRAPH_COMPARE_COMMITS
Tool Name: Compare Commits
Description
Action Parameters
Action Response
SOURCEGRAPH_GET_COMMIT_DETAILS
Tool Name: Get Commit Details
Description
Action Parameters
Action Response
SOURCEGRAPH_GET_CURRENT_USER
Tool Name: Get Current User
Description
Action Parameters
Action Response
SOURCEGRAPH_GET_FILE_CONTENTS
Tool Name: Get File Contents
Description
Action Parameters
Action Response
SOURCEGRAPH_LIST_REPOSITORIES
Tool Name: List Repositories
Description
Action Parameters
Action Response
SOURCEGRAPH_LIST_REPOSITORY_FILES
Tool Name: List Repository Files
Description
Action Parameters
Action Response
SOURCEGRAPH_LIST_REPOSITORY_LANGUAGES
Tool Name: List repository languages
Description
Action Parameters
Action Response