sourcegraph-automation

Automate Sourcegraph tasks via Rube MCP (Composio). Always search tools first for current schemas.

Install

Hot:31

Download and extract to your skills directory

Copy command and send to AI Agent for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=composiohq-composio-skills-sourcegraph-automation&locale=en&source=copy

Sourcegraph Automation - Automate Code Search and Analysis with Rube MCP

Skill Overview


The Sourcegraph Automation skill uses Composio’s Rube MCP service to let you automatically run Sourcegraph code search, repository queries, and analysis tasks without writing code. It supports dynamic tool discovery and bulk operations.

Use Cases

1. DevOps and CI/CD Automation


In continuous integration and deployment workflows, automatically query code quality, security vulnerabilities, or specific patterns without manually writing API call code. With Rube MCP’s workflow mode, Sourcegraph checks can be seamlessly integrated into your existing automation pipelines.

2. Large-Scale Codebase Analysis


When you need to run bulk queries across multiple repositories or a large monorepo, this skill provides a unified interface to discover available tools, manage connection status, and execute operations. It’s especially suitable for code migration, dependency analysis, or technical debt assessment.

3. Team Collaboration and Code Review


Automate repetitive query tasks in code review workflows, such as finding specific API usage, checking compliance with code standards, or tracking cross-repository dependencies. With session reuse and memory management, multi-step analysis tasks can be handled efficiently.

Core Features

1. Dynamic Tool Discovery and Schema Retrieval


Use RUBE_SEARCH_TOOLS to automatically discover the currently available Sourcegraph tools and their input schemas, avoiding hardcoded failures caused by tool updates. The system returns tool slugs, recommended execution plans, and known pitfalls to ensure you always follow the latest API specifications.

2. Connection Management and Status Verification


Use RUBE_MANAGE_CONNECTIONS to manage Sourcegraph connection status and automatically verify whether the connection is ACTIVE before performing any operation. No need to manually configure API keys—just add the Rube MCP server endpoint to get started.

3. Multi-Tool Execution and Bulk Operations


Use RUBE_MULTI_EXECUTE_TOOL to execute multiple Sourcegraph tools within a single session, supporting session ID reuse and passing memory. For complex bulk operations, you can use the run_composio_tool() function of RUBE_REMOTE_WORKBENCH for remote orchestration.

FAQs

What is Rube MCP? How do I configure it?


Rube MCP is an MCP (Model Context Protocol) server provided by Composio. You can use it without an API key. Configuration: add https://rube.app/mcp as the MCP server in your client configuration. After saving, you can use all tools provided by Rube.

Why do I need to call RUBE_SEARCH_TOOLS every time?


Sourcegraph tool schemas (field names, types, structures) change over time. Hardcoding tool slugs and parameters directly often leads to call failures. RUBE_SEARCH_TOOLS returns the latest tool schemas and recommended execution plans to ensure your calls always work—this is the best practice for the Composio tool ecosystem.

How can I verify whether the Sourcegraph connection is available?


Call RUBE_MANAGE_CONNECTIONS and pass toolkits: ["sourcegraph"] and the session ID. If the returned connection status is not ACTIVE, follow the authentication link returned to complete authorization setup. Only when the connection status is ACTIVE can tool operations succeed.