MCP Thin Client for Orchestrator - delegates to REST API
npm install @orchestrator-claude/mcp-server> MCP server for Orchestrator - thin client forwarding to REST API
This package provides an MCP (Model Context Protocol) server that exposes Orchestrator functionality to Claude Code and other MCP-compatible clients.
Architecture: This is a thin client that forwards all requests to the Orchestrator REST API. It contains NO business logic, only request transformation and error handling.
``bash`
npm install -g @orchestrator/mcp-server
`bash`
npm install @orchestrator/mcp-server
1. REST API Server Running: The MCP server requires the Orchestrator REST API to be running.
`bash`
# Start API server (in main orchestrator project)
docker-compose up -d
# OR
npm start
2. API Key: Generate an API key using the CLI:
`bash`
orchestrator auth generate
This creates ~/.orchestrator/config.json with your API key.
Add to your Claude Code config (.mcp.json or Claude settings):
`json`
{
"mcpServers": {
"orchestrator": {
"command": "orchestrator-mcp-server"
}
}
}
- MCP_DEBUG=true - Enable debug loggingORCHESTRATOR_API_URL
- - Override API URL (default: http://localhost:3000)
- getStatus - Get workflow statusadvancePhase
- - Advance workflow to next phaseapproveAction
- - Approve pending actiongetContext
- (v2) - Get workflow context and available actionsexecuteAction
- (v2) - Execute deterministic action
- detectWorkflow - Detect workflow type from promptvalidateArtifact
- - Validate generated artifactscreateCheckpoint
- - Create git checkpoint
- getNextAction - Get next pending actionsetPendingAction
- - Set pending action for agent invocationclearPendingAction
- - Clear pending actionapproveAction
- - Approve action requiring human approval
``
Claude Code
↓
MCP Server (thin client)
↓
REST API (business logic)
↓
Domain/Application/Infrastructure Layers
Key Principles:
1. No Business Logic: All logic resides in REST API
2. Stateless: No state stored in MCP server
3. Simple Transformation: Request → API Call → Response
4. Error Forwarding: API errors forwarded to Claude
`bash`
npm run build
`bash`
npm test
`bash`With debug logging
MCP_DEBUG=true npm start
1. Check if REST API is running:
`bash`
curl http://localhost:3000/api/v1/health
2. Check if API key is configured:
`bash`
cat ~/.orchestrator/config.json
3. Regenerate API key if needed:
`bash`
orchestrator auth generate
Run:
`bash`
orchestrator auth generate
1. Ensure global installation:
`bash``
npm list -g @orchestrator/mcp-server
2. Restart Claude Code after installing
3. Check Claude Code logs for MCP connection errors
| MCP Server | Orchestrator CLI | REST API |
|------------|------------------|----------|
| 0.9.x | >= 0.9.0 | >= 0.9.0 |
| 1.0.x | >= 1.0.0 | >= 1.0.0 |
MIT