Gearset MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gearset MCP Server check the status of my CI job 12345"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gearset MCP Server
⚠️ Disclaimer: This is an unofficial, personal project and is not affiliated with, endorsed by, or supported by Gearset. This project provides a third-party integration with Gearset's public APIs using the Model Context Protocol. Use at your own risk.
A community-built Model Context Protocol server that provides tools for interacting with Gearset's CI/CD automation and DevOps workflows through their public APIs.
🚀 Version 2.0 Released!
v2.0 brings significant improvements while maintaining 100% backward compatibility:
Modern Architecture: Migrated from lower-level Server API to higher-level McpServer API
Cleaner Codebase: Significantly reduced boilerplate while maintaining all functionality
Better Type Safety: Enhanced parameter validation and error handling
Same Great Features: All 23 tools from v1.x preserved with identical behavior
Comprehensive Testing: New test suite ensuring feature parity
Migration from v1.x
No action required! v2.0 is a drop-in replacement:
All tool names and parameters remain identical
Same MCP protocol compliance
Same Gearset API integration
Same configuration and usage patterns
Simply update to v2.0 and enjoy the improved architecture under the hood.
Related MCP server: Create app hosting
Features
This MCP server enables AI assistants to:
🚀 Manage CI/CD Jobs: Start, cancel, and monitor Gearset continuous integration and unit testing jobs
📈 DevOps Metrics: Access comprehensive DevOps performance metrics (deployment frequency, lead time, change failure rate, time to restore)
🔍 Monitor Deployments: Track deployment progress, results, and audit trails
🧪 External Testing: Integrate external test runs with CI job workflows
📈 Analytics & Reporting: Query detailed deployment and performance analytics
⚡ Async Operations: Handle long-running operations with proper status tracking
🔧 Automate Workflows: Build AI-driven DevOps automation and monitoring
Tools Available
🚀 Continuous Integration Jobs
get_ci_job_status
Get the current status of a Gearset continuous integration job.
jobId(string): The CI job ID to check status for
start_ci_job
Start a Gearset continuous integration job.
jobId(string): The CI job ID to start
get_job_run_status / get_ci_job_run_status
Get the status of a specific CI job run.
jobId(string): The CI job IDrunRequestId(string): The run request ID to check status for
cancel_ci_job
Cancel a running CI job.
jobId(string): The CI job ID to cancel
list_ci_jobs
List all available Gearset CI jobs (placeholder - requires job IDs to be configured).
limit(number, optional): Maximum number of jobs to return
🧪 Unit Testing Jobs
get_unit_test_job_status
Get the current status of a unit testing job.
jobId(string): The unit testing job ID to check status for
start_unit_test_job
Start a unit testing job.
jobId(string): The unit testing job ID to start
get_unit_test_job_run_status
Get the status of a specific unit test job run.
jobId(string): The unit testing job IDrunRequestId(string): The run request ID to check status for
cancel_unit_test_job
Cancel a running unit testing job.
jobId(string): The unit testing job ID to cancel
🔬 External Test Integration
create_external_test_run
Create an external test run for a CI job run.
ciRunId(string): The CI job run IDprovider(string): The provider of the external testing datastatusClass(enum): Status class - 'Succeeded', 'Failed', 'Warning', 'InProgress', 'Scheduled', 'NotRun'providerRunId(string, optional): ID to identify the test run in the providerresultsUrl(string, optional): Link to the external test run resultsstatus(string, optional): Status from the providerstatusMessage(string, optional): Additional status informationstartTimeUtc(string, optional): UTC start time of the test runendTimeUtc(string, optional): UTC end time of the test run
update_external_test_run
Update an existing external test run.
ciRunId(string): The CI job run IDexternalTestRunId(string): The external test run ID to updateAll other parameters same as
create_external_test_run
📈 DevOps Metrics & Analytics
get_deployment_frequency
Get deployment frequency data (all deployments or aggregated metrics).
StartDate(string): Start date in UTC format (e.g., "2024-01-01T00:00:00Z")EndDate(string): End date in UTC formatPipelineId(string, optional): Filter by specific pipelineaggregate(boolean, optional): Return aggregate metricsInterval(enum, optional): 'Daily', 'Weekly', 'Monthly' (required if aggregate=true)GroupBy(enum, optional): Group by property (required if aggregate=true)
get_lead_time_for_changes
Get lead time for changes data.
pipelineId(string): Pipeline ID (required, passed as path parameter)StartDate(string): Start date in UTC formatEndDate(string): End date in UTC formataggregate(boolean, optional): Return aggregate metricsInterval(enum, optional): 'Daily', 'Weekly', 'Monthly' (required if aggregate=true)Exclude(array, optional): Fields to exclude from response
get_change_failure_rate
Get change failure rate data.
environmentId(string): Environment ID (required, passed as path parameter)StartDate(string): Start date in UTC formatEndDate(string): End date in UTC formataggregate(boolean, optional): Return aggregate metricsInterval(enum, optional): 'Daily', 'Weekly', 'Monthly' (required if aggregate=true)
get_time_to_restore
Get time to restore data.
environmentId(string): Environment ID (required, passed as path parameter)StartDate(string): Start date in UTC formatEndDate(string): End date in UTC formataggregate(boolean, optional): Return aggregate metricsInterval(enum, optional): 'Daily', 'Weekly', 'Monthly' (required if aggregate=true)
⚡ Async Operation Management
get_operation_status
Check the status of a long-running reporting operation.
operationId(string): The operation ID to check status for
get_operation_result
Get the result of a completed reporting operation.
operationId(string): The operation ID to get results for
📄 Audit & Compliance
get_deployment_audit
Get deployment audit data from the Audit API.
StartDate(string): Start date/time in UTC formatEndDate(string): End date/time in UTC formatOptionalParameters(array, optional): Additional data to include
get_all_ci_job_runs_via_reporting
Get ALL CI job runs data using the Reporting API (async operation) - includes manually triggered, scheduled, and webhook runs.
jobId(string): The CI job ID to get runs forStartDate(string): Start date/time in UTC formatEndDate(string): End date/time in UTC format
get_manual_ci_job_runs_via_audit
Get manually triggered CI job runs from the Audit API (requires Teams/Enterprise license) - only runs where user clicked "play" button.
jobId(string): The CI job ID to get manually triggered runs forStartDate(string): Start date/time in UTC formatEndDate(string): End date/time in UTC format
get_anonymous_apex_audit
Get anonymous Apex execution audit data.
StartDate(string): Start date/time in UTC formatEndDate(string): End date/time in UTC formatOrgUsername(string, optional): Salesforce org username filterUsername(string, optional): Gearset username filter
get_audit_events
Get audit events (legacy method for backward compatibility).
resourceId(string, optional): Resource ID filterlimit(number, optional): Maximum number of events to return
⚡ Async Operation Pattern
The Gearset Reporting API v2 uses an asynchronous operation pattern for long-running queries. Here's how it works:
Start Operation: Call a reporting tool (e.g.,
get_deployment_frequency)Get Operation ID: The tool returns an operation ID and status
Check Status: Use
get_operation_statuswith the operation ID to monitor progressRetrieve Results: Once status is "Succeeded", use
get_operation_resultto get data
Example Workflow:
// 1. Start the operation
const operation = await get_deployment_frequency({
StartDate: '2024-01-01T00:00:00Z',
EndDate: '2024-01-31T23:59:59Z',
});
// 2. Check status periodically
const status = await get_operation_status({ operationId: operation.OperationStatusId });
// 3. Get results when completed
if (status.Status === 'Succeeded') {
const results = await get_operation_result({ operationId: operation.OperationStatusId });
}Setup
Prerequisites
Node.js 18+
A Gearset account with API access
Gearset API token
Installation
Clone this repository:
git clone https://github.com/jaredbt/gearset-mcp-server.git
cd gearset-mcp-serverInstall dependencies:
npm installBuild the server:
npm run buildConfiguration
Get your Gearset API Token:
Log in to Gearset
Go to Team Management > Team Security > Access Token Management
Create a new API token
Copy the token for use in step 2
Set Environment Variable:
export GEARSET_API_TOKEN="your_gearset_api_token_here"Usage with Claude Desktop
Add this server to your Claude Desktop configuration file:
macOS
~/Library/Application Support/Claude/claude_desktop_config.json
Windows
%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"gearset": {
"command": "node",
"args": ["/path/to/gearset-mcp-server/dist/index.js"],
"env": {
"GEARSET_API_TOKEN": "your_gearset_api_token_here"
}
}
}
}Usage with Warp
If you're using this server with Warp (as mentioned in the development context), configure it in your Warp MCP settings following the same pattern.
Development
Running in Development Mode
npm run devBuilding
npm run buildRunning Tests
npm testLinting and Formatting
npm run lint
npm run formatAPI Rate Limits
This server respects Gearset's API rate limits across all three APIs:
Automation API v1
Job Actions: 100 POST requests/hour (start, cancel jobs)
Status Queries: 5 GET requests/5 seconds (job status, run status)
External Test Runs: Limited by general API quotas
Reporting API v2
Operation Start: Standard rate limits apply for POST requests
Status/Result Checks: Frequent polling allowed for monitoring
Large Data Sets: Operations may take several minutes to complete
Audit API v1
Data Queries: Rate limited based on your Gearset plan
Date Range: Larger date ranges may require longer processing time
Rate Limit Best Practices:
Use async operation pattern for reporting queries
Implement exponential backoff for status checks
Cache results when appropriate
Monitor for 429 (Too Many Requests) responses
Troubleshooting
Authentication Issues
Verify your
GEARSET_API_TOKENis correctCheck that your Gearset account has API access enabled
Ensure your token hasn't expired
Rate Limiting
If you encounter rate limit errors, wait before retrying
Consider implementing request queuing for high-volume usage
Job ID Issues
CI job IDs can be found in the Gearset web interface
Go to Continuous Integration > Your Job > Copy Job ID
Support
Important: This is a personal, open-source project maintained by community contributors.
For issues with this MCP server: Please open an issue on GitHub Issues
For Gearset product support: Contact Gearset directly through their official support channels
For API questions: Refer to Gearset's official API documentation
We welcome community contributions and will do our best to address issues, but please understand this is maintained on a volunteer basis.
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests for new functionality
Submit a pull request
License
MIT License - see LICENSE file for details.
Changelog
v2.0.0 (2025-01-07)
Major architecture improvements with 100% backward compatibility:
🎆 New Features
Modern McpServer API: Migrated from lower-level Server API to modern McpServer API
Enhanced Type Safety: Automatic parameter validation with Zod schemas
Comprehensive Testing: New test suite with 20+ tests ensuring feature parity
Improved Error Handling: Consistent error responses across all tools
🔧 Technical Improvements
Reduced Boilerplate: Significantly cleaner codebase while maintaining all functionality
Better Maintainability: Modern SDK patterns make future enhancements easier
Preserved Core: GearsetClient implementation unchanged and proven
🛡️ Breaking Changes
None! v2.0 is a drop-in replacement for v1.x
All tool names, parameters, and behaviors remain identical
Same MCP protocol compliance and Gearset API integration
📋 Migration Guide
Update to v2.0 - no configuration changes needed
Same usage patterns and tool parameters
Enjoy improved architecture and reliability
v1.1.1 (Previous Release)
Original Server API implementation
23 tools for comprehensive Gearset automation
Full MCP protocol compliance
Related
Available Tools
23 toolscancel_ci_jobCancel CI JobC
Cancel a running CI job
Inputs: jobId (required).
cancel_unit_test_jobCancel Unit Test JobC
Cancel a running unit testing job
Inputs: jobId (required).
create_external_test_runCreate External Test RunC
Create an external test run for a CI job run
Inputs: ciRunId (required), provider (required), statusClass (required), status, +5 more.
get_all_ci_job_runs_via_reportingGet All CI Job Runs (Reporting API)B
Get ALL CI job runs data using the Reporting API (async operation) - includes manually triggered, scheduled, and webhook runs
Inputs: jobId (required), EndDate (required), StartDate (required).
get_anonymous_apex_auditGet Anonymous Apex AuditC
Get anonymous Apex execution audit data from the Audit API
Inputs: EndDate (required), StartDate (required), Username, OrgUsername.
get_audit_eventsGet Audit EventsB
Get audit events for CI jobs using the Audit API (legacy method)
Inputs: limit, resourceId.
get_change_failure_rateGet Change Failure RateC
Get change failure rate data from the Reporting API
Inputs: EndDate (required), StartDate (required), environmentId (required), Interval, +1 more.
get_ci_job_statusGet CI Job StatusB
Get the current status of a Gearset continuous integration job
Inputs: jobId (required).
get_deployment_auditGet Deployment AuditC
Get deployment audit data from the Audit API
Inputs: EndDate (required), StartDate (required), OptionalParameters.
get_deployment_frequencyGet Deployment FrequencyC
Get deployment frequency data and metrics from the Reporting API
Inputs: EndDate (required), StartDate (required), GroupBy, Interval, +2 more.
get_job_run_statusGet Job Run StatusC
Get the status of a specific CI job run
Inputs: jobId (required), runRequestId (required).
get_lead_time_for_changesGet Lead Time for ChangesC
Get lead time for changes data and metrics from the Reporting API
Inputs: EndDate (required), StartDate (required), pipelineId (required), Exclude, +2 more.
get_manual_ci_job_runs_via_auditGet Manual CI Job Runs (Audit API)B
Get manually triggered CI job runs from the Audit API (requires Teams/Enterprise license) - only runs where user clicked "play" button
Inputs: jobId (required), EndDate (required), StartDate (required).
get_operation_resultGet Operation ResultC
Get the result of a completed reporting API operation
Inputs: operationId (required).
get_operation_statusGet Operation StatusC
Get the status of a reporting API operation
Inputs: operationId (required).
get_pipeline_edit_historyGet Pipeline Edit HistoryC
Get edit history for a specified pipeline from the Audit API
Inputs: EndDate (required), StartDate (required), pipelineId (required).
get_time_to_restoreGet Time to RestoreC
Get time to restore data from the Reporting API
Inputs: EndDate (required), StartDate (required), environmentId (required), Interval, +1 more.
get_unit_test_job_run_statusGet Unit Test Job Run StatusC
Get the status of a specific unit test job run
Inputs: jobId (required), runRequestId (required).
get_unit_test_job_statusGet Unit Test Job StatusC
Get the current status of a unit testing job
Inputs: jobId (required).
list_ci_jobsList CI JobsC
List all available Gearset CI jobs
Inputs: limit.
start_ci_jobStart CI JobC
Start a Gearset continuous integration job
Inputs: jobId (required).
start_unit_test_jobStart Unit Test JobC
Start a unit testing job
Inputs: jobId (required).
update_external_test_runUpdate External Test RunC
Update an external test run for a CI job run
Inputs: ciRunId (required), provider (required), statusClass (required), externalTestRunId (required), +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Most tools map cleanly to a distinct resource+action (audit, DORA metrics, CI lifecycle, unit-test lifecycle), and the parallel job/job_run pairs are reasonably clear. The weak spot is the CI run-read area, where get_all_ci_job_runs_via_reporting, get_manual_ci_job_runs_via_audit, get_audit_events, get_job_run_status, and get_ci_job_status all describe overlapping 'get CI run info' needs, forcing an agent to reason about license and API differences rather than intent.
Names follow a predictable snake_case verb_noun pattern (get_*, list_*, start_*, cancel_*, create_*, update_*), and the CI/unit-test families mirror each other exactly. Minor deviations: the '_via_reporting'/'_via_audit' qualifiers and the noun-shaped get_time_to_restore break the otherwise uniform scheme.
At 23 tools the surface is on the heavy side for a deployment/CI server, though the breadth (Audit API, Reporting API, CI jobs, unit tests, external test runs) explains most of it. The four separate DORA metric tools plus multiple near-duplicate audit/reporting read tools push it into borderline territory.
CI and unit-test lifecycles are well covered (list/start/cancel/status/run-status), and audit plus DORA reporting have solid read coverage. However external test runs only have create/update with no read/list/delete, unit-test jobs have no list operation, and the async reporting flow exposes get_operation_status/result without a corresponding start operation, leaving dead ends.
Maintenance
Related MCP Connectors
Plan Salesforce deploys, open pull requests and trigger pipelines from your AI client.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Give your AI agents trusted access to the full Postman platform.
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Salesforce orgs through natural language commands, supporting org management, SOQL queries, metadata operations, testing, and more.1MIT

Create app hostingofficial
AlicenseNot gradedqualityCmaintenanceEnables AI assistants to create projects, deploy files, container images, or Git repositories, attach domains, set write-only secrets, add Postgres, read logs, metrics, and failure summaries, and roll back.Apache 2.0- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to inspect, query, and diagnose an Octopus instance and, when write access is enabled, create releases, deploy releases, run runbooks, and adjust feature toggles.547 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to inspect, query, and diagnose problems in a continuous delivery platform, and to perform release, deployment, runbook, task, tenant, and related operational actions with configurable read-only or write access.547 npmMIT