Hosted CI service
## Travis CI MCP Server: Continuous Integration Automation The **Travis CI MCP Server** integrates the popular CI platform into Google Antigravity, enabling developers to manage builds, configure pipelines, and monitor test results for open source and private projects. ### Why Travis CI MCP? - **Build management** - Trigger and monitor builds programmatically - **Configuration** - Manage .travis.yml settings through API - **Multi-language** - Support for dozens of programming languages - **Caching** - Control build caches for faster CI runs - **Deployment** - Configure deployments to various providers ### Key Features #### 1. Build Management ```python # Trigger a new build build = await mcp.call("travis", "trigger_build", { "repo": "owner/repository", "branch": "main", "message": "Manual trigger from Antigravity" }) print(f"Build started: {build[\"id\"]}") # Get build status status = await mcp.call("travis", "get_build", { "build_id": build["id"] }) print(f"State: {status[\"state\"]}, Duration: {status[\"duration\"]}s") ``` #### 2. Repository Configuration ```python # Get repository settings repo = await mcp.call("travis", "get_repo", { "repo": "owner/repository" }) print(f"Active: {repo[\"active\"]}") print(f"Last Build: {repo[\"last_build_state\"]}") # Update repository settings await mcp.call("travis", "update_repo_settings", { "repo": "owner/repository", "settings": { "build_pushes": True, "build_pull_requests": True } }) ``` #### 3. Environment Variables ```python # Set environment variables await mcp.call("travis", "set_env_var", { "repo": "owner/repository", "name": "DEPLOY_KEY", "value": "secret-value", "public": False }) # List environment variables env_vars = await mcp.call("travis", "list_env_vars", { "repo": "owner/repository" }) for var in env_vars: print(f"{var[\"name\"]}: [hidden]" if not var["public"] else f"{var[\"name\"]}: {var[\"value\"]}") ``` #### 4. Cache Management ```python # List build caches caches = await mcp.call("travis", "list_caches", { "repo": "owner/repository" }) for cache in caches: print(f"{cache[\"branch\"]}: {cache[\"size\"]} MB") # Clear caches await mcp.call("travis", "delete_caches", { "repo": "owner/repository", "branch": "main" }) ``` ### Configuration ```json { "mcpServers": { "travis": { "command": "npx", "args": ["-y", "@anthropic/mcp-travis"], "env": { "TRAVIS_API_TOKEN": "your-travis-token", "TRAVIS_API_URL": "https://api.travis-ci.com" } } } } ``` ### Use Cases **CI Automation**: Trigger builds based on external events or schedules. **Environment Management**: Securely manage build secrets and environment variables. **Build Optimization**: Manage caches to speed up CI runs. **Project Setup**: Configure new repositories for CI automatically. The Travis CI MCP Server streamlines continuous integration workflows.
{
"mcpServers": {
"travis-ci": {
"mcpServers": {
"travis-ci": {
"env": {
"TRAVIS_API_TOKEN": "your-api-token"
},
"args": [
"-y",
"travis-mcp-server"
],
"command": "npx"
}
}
}
}
}