CI/CD for any scale
## Buildkite MCP Server: Scalable CI/CD Platform The **Buildkite MCP Server** integrates the hybrid CI/CD platform into Google Antigravity, enabling developers to manage pipelines, trigger builds, and monitor agents across self-hosted infrastructure with enterprise scalability. ### Why Buildkite MCP? - **Hybrid architecture** - Run builds on your own infrastructure with cloud orchestration - **Pipeline management** - Create and manage CI/CD pipelines programmatically - **Build control** - Trigger, monitor, and cancel builds from your IDE - **Agent management** - Monitor and control build agents across clusters - **Artifact handling** - Access build artifacts and test results ### Key Features #### 1. Pipeline Management ```python # Create new pipeline pipeline = await mcp.call("buildkite", "create_pipeline", { "organization": "my-org", "name": "api-service", "repository": "git@github.com:org/api-service.git", "steps": [ {"command": "npm install && npm test", "label": "Test"}, {"command": "npm run build", "label": "Build"}, {"wait": True}, {"command": "./deploy.sh", "label": "Deploy", "branches": "main"} ] }) print(f"Pipeline created: {pipeline[\"web_url\"]}") ``` #### 2. Build Triggering ```python # Trigger a new build build = await mcp.call("buildkite", "create_build", { "organization": "my-org", "pipeline": "api-service", "commit": "HEAD", "branch": "main", "message": "Deploy to production", "env": {"DEPLOY_ENV": "production"} }) # Monitor build progress status = await mcp.call("buildkite", "get_build", { "organization": "my-org", "pipeline": "api-service", "build_number": build["number"] }) print(f"State: {status[\"state\"]}") ``` #### 3. Agent Management ```python # List agents in cluster agents = await mcp.call("buildkite", "list_agents", { "organization": "my-org", "cluster": "production" }) for agent in agents: print(f"{agent[\"name\"]}: {agent[\"connection_state\"]}") print(f" Tags: {agent[\"meta_data\"]}") # Stop specific agent await mcp.call("buildkite", "stop_agent", { "organization": "my-org", "agent_id": "agent_xxx" }) ``` #### 4. Artifacts and Logs ```python # Get build artifacts artifacts = await mcp.call("buildkite", "list_artifacts", { "organization": "my-org", "pipeline": "api-service", "build_number": 123 }) for artifact in artifacts: print(f"{artifact[\"filename\"]}: {artifact[\"file_size\"]} bytes") ``` ### Configuration ```json { "mcpServers": { "buildkite": { "command": "npx", "args": ["-y", "@anthropic/mcp-buildkite"], "env": { "BUILDKITE_API_TOKEN": "bkua_xxx", "BUILDKITE_ORG_SLUG": "my-organization" } } } } ``` ### Use Cases **CI/CD Automation**: Trigger builds based on events or schedules programmatically. **Fleet Management**: Monitor and manage build agents across multiple clusters. **Pipeline Templates**: Create reusable pipeline configurations for teams. **Build Analytics**: Track build performance and identify bottlenecks. The Buildkite MCP Server enables enterprise CI/CD management from your IDE.
{
"mcpServers": {
"buildkite": {
"mcpServers": {
"buildkite": {
"env": {
"BUILDKITE_TOKEN": "your-api-token"
},
"args": [
"-y",
"buildkite-mcp-server"
],
"command": "npx"
}
}
}
}
}