@orchestrator-claude/mcp-server
v1.24.0
Published
MCP Thin Client for Orchestrator - delegates to REST API
Maintainers
Readme
@orchestrator/mcp-server
MCP server for Orchestrator - thin client forwarding to REST API
Overview
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.
Installation
Global Installation (Recommended)
npm install -g @orchestrator/mcp-serverLocal Installation
npm install @orchestrator/mcp-serverConfiguration
Prerequisites
REST API Server Running: The MCP server requires the Orchestrator REST API to be running.
# Start API server (in main orchestrator project) docker-compose up -d # OR npm startAPI Key: Generate an API key using the CLI:
orchestrator auth generateThis creates
~/.orchestrator/config.jsonwith your API key.
Claude Code Integration
Add to your Claude Code config (.mcp.json or Claude settings):
{
"mcpServers": {
"orchestrator": {
"command": "orchestrator-mcp-server"
}
}
}Environment Variables
MCP_DEBUG=true- Enable debug loggingORCHESTRATOR_API_URL- Override API URL (default:http://localhost:3000)
Available Tools
Workflow Management
getStatus- Get workflow statusadvancePhase- Advance workflow to next phaseapproveAction- Approve pending actiongetContext(v2) - Get workflow context and available actionsexecuteAction(v2) - Execute deterministic action
Project Management
detectWorkflow- Detect workflow type from promptvalidateArtifact- Validate generated artifactscreateCheckpoint- Create git checkpoint
Ping-Pong Pattern (LIM-001 Solution)
getNextAction- Get next pending actionsetPendingAction- Set pending action for agent invocationclearPendingAction- Clear pending actionapproveAction- Approve action requiring human approval
Architecture
Claude Code
↓
MCP Server (thin client)
↓
REST API (business logic)
↓
Domain/Application/Infrastructure LayersKey Principles:
- No Business Logic: All logic resides in REST API
- Stateless: No state stored in MCP server
- Simple Transformation: Request → API Call → Response
- Error Forwarding: API errors forwarded to Claude
Development
Building
npm run buildTesting
npm testRunning Locally
# With debug logging
MCP_DEBUG=true npm startTroubleshooting
"API server unavailable"
Check if REST API is running:
curl http://localhost:3000/api/v1/healthCheck if API key is configured:
cat ~/.orchestrator/config.jsonRegenerate API key if needed:
orchestrator auth generate
"API key not configured"
Run:
orchestrator auth generateMCP Server Not Found in Claude
Ensure global installation:
npm list -g @orchestrator/mcp-serverRestart Claude Code after installing
Check Claude Code logs for MCP connection errors
Version Compatibility
| MCP Server | Orchestrator CLI | REST API | |------------|------------------|----------| | 0.9.x | >= 0.9.0 | >= 0.9.0 | | 1.0.x | >= 1.0.0 | >= 1.0.0 |
License
MIT
