@day2-ai/mcp-server
v1.1.0
Published
MCP Server for Agent Hub — connects AI-powered IDEs (Claude Code, Cursor, Copilot, Cline, Windsurf) to CI/CD monitoring, compliance scanning, and deployment automation
Maintainers
Readme
@day2-ai/mcp-server
MCP (Model Context Protocol) server for Agent Hub — connects AI-powered IDEs to CI/CD monitoring, compliance scanning, and deployment automation.
Supported IDEs
- Claude Code (recommended) — native MCP support
- Cursor — MCP via settings
- GitHub Copilot — MCP via VS Code settings
- Cline — MCP via extension
- Windsurf — built-in MCP
- Any IDE supporting the MCP protocol
Quick Start
1. Get your token
Visit Agent Hub → Settings → IDE Integration and generate an MCP token.
2. Configure your IDE
Claude Code (CLI):
claude mcp add agent-hub -- npx -y @day2-ai/mcp-server@latestThen set the env vars in ~/.claude/settings.json:
{
"mcpServers": {
"agent-hub": {
"command": "npx",
"args": ["-y", "@day2-ai/mcp-server@latest"],
"env": {
"AGENT_HUB_URL": "https://hub.day2-ai.com",
"AGENT_HUB_TOKEN": "YOUR_TOKEN_HERE"
}
}
}
}Other IDEs — add the same JSON block to your IDE's MCP config file.
Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| AGENT_HUB_TOKEN | Yes | Your MCP authentication token (get from Agent Hub settings) |
| AGENT_HUB_URL | No | Agent Hub URL (default: https://hub.day2-ai.com) |
| GITHUB_TOKEN | No | GitHub PAT for CI/CD monitoring (enables workflow error extraction) |
| REDIS_URL | No | Redis URL for persistent sessions (falls back to in-memory) |
Available Tools
CI/CD Monitoring
cicd_start_monitoring— Monitor GitHub Actions workflowscicd_check_status— Check workflow statuscicd_get_errors— Extract errors from failed runscicd_mark_fixed— Signal a fix was pushedcicd_list_workflows— List repo workflowscicd_get_run_errors— Get errors from a specific run
Auto-Fix Loop
cicd_auto_fix_start— Start automated fix sessioncicd_commit_and_push— Commit and push a fixcicd_abort_session— Stop a fix sessioncicd_get_session_status— Get session detailscicd_list_auto_fix_sessions— List all sessions
Compliance Scanning
compliance_scan— Scan repo for deployment compliancecompliance_get_fixes— Get fix instructionscompliance_apply_fix— Report a fix was appliedcompliance_report_push— Report push for re-scancompliance_get_status— Get scan statuscompliance_create_fix_branch— Create isolated fix branchcompliance_get_deployment_standards— Get all requirementscompliance_check_deployment_ready— Quick readiness check
Deployment Management
deployment_get_errors— Get deployment failure details with fix guidancedeployment_retry— Retry failed deploymentsdeployment_get_progress— Monitor deployment progress (0-100%)deployment_list_failed— List recent failures
Repository Integration Scanning
scan_repository_integrations— Detect required APIs, databases, and services
n8n Workflow Automation
n8n_create_workflow— Create workflows from natural languagen8n_deploy_workflow— Deploy to n8n instancen8n_execute_workflow— Trigger executionn8n_list_workflows— List all workflowsn8n_get_template— Get pre-built templatesn8n_search_nodes— Search available nodes
Usage Example
You: Monitor the CI/CD for my-org/my-repo
Agent: Started monitoring my-org/my-repo (main branch)
❌ Workflow failed with 3 errors.
You: What are the errors?
Agent: Error 1: Type error in src/Button.tsx:15
Type 'string' is not assignable to type 'number'
[Agent fixes the code and pushes]
Agent: ✅ All checks passed! Ready for deployment.Architecture
┌──────────────┐ ┌────────────────┐ ┌──────────────┐
│ Your IDE │────▶│ MCP Server │────▶│ Agent Hub │
│ (any IDE) │◀────│ (stdio/npx) │◀────│ API │
└──────────────┘ └────────────────┘ └──────────────┘
│
┌──────┴──────┐
▼ ▼
┌───────────┐ ┌──────────┐
│ GitHub │ │ Redis │
│ Actions │ │(optional)│
└───────────┘ └──────────┘Security
- Tokens authenticate against Agent Hub — never stored locally
- GitHub token requires minimal
repo+actionsscopes - Sessions expire after 24 hours
- Redis is optional — in-memory fallback for local use
License
MIT
