claude-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
claude-mcp-server
MCP server that builds Claude CLI commands with mode defaults resolved. Returns a shell command string for the calling agent to execute via Cursor's Shell tool.
Install
One command — no clone needed:
bash <(curl -fsSL https://raw.githubusercontent.com/tal-hason/claude-mcp-server/main/install.sh)Prerequisites: Node.js >= 20, jq, curl, Claude CLI
Install from source
git clone https://github.com/tal-hason/claude-mcp-server.git
cd claude-mcp-server
./setup.shCustom install location
CLAUDE_MCP_DIR=~/my-tools/claude-mcp bash <(curl -fsSL https://raw.githubusercontent.com/tal-hason/claude-mcp-server/main/install.sh)Uninstall
rm -rf ~/.local/share/claude-mcp-server
jq 'del(.mcpServers["claude-cli"])' ~/.cursor/mcp.json > /tmp/mcp.json && mv /tmp/mcp.json ~/.cursor/mcp.jsonRelated MCP server: claude-bridge
How it works
┌──────────────────────────────────────────────────────────────┐
│ 1. Agent calls claude_models to inspect available models │
│ 2. Agent calls claude_prompt via MCP │
│ → MCP server resolves mode defaults, builds command │
│ → Returns JSON { command, cwd } │
│ 3. Agent executes command via Shell tool │
│ 4. Formatted stream output renders in terminal │
└──────────────────────────────────────────────────────────────┘Agent queries
claude_modelsto verify available models for EnMaaS or Vertex AI projects.Agent calls
claude_promptwith prompt + chosen mode/model/effort.MCP server resolves mode defaults (effort, appended system prompt, gateway routing).
Returns
{ command, cwd }— a heredoc-based shell command with ANSI stream formatting.Agent executes via Shell tool (
block_until_ms: 0for long tasks).
No child process management, no WebSocket bridge, no timeouts — the MCP server is a pure function.
Usage
Two tools:
claude_models: Discovers available models for EnMaaS and Vertex AI projects before dispatching.claude_prompt: Builds the execution command with resolved mode defaults, routing, and failover.
Model discovery
CallMcpTool: user-claude-cli / claude_models
{ "provider": "all" }Returns real-time models for EnMaaS (e.g. rits/zai-org/glm-5-3, rits/deepseek-ai/DeepSeek-V4.1-Flash-1017) and supported Claude aliases (sonnet, opus, haiku) per Vertex AI project.
Quick exploration
CallMcpTool: user-claude-cli / claude_prompt
{ "prompt": "What dependencies does server.js import?", "mode": "explorer", "cwd": "/path/to/repo" }Parse the response JSON, then execute the command field via the Shell tool.
Long-running review (backgrounded)
CallMcpTool: user-claude-cli / claude_prompt
{ "prompt": "<full review prompt>", "mode": "reviewer", "model": "claude-opus-4-8" }Execute the returned command with block_until_ms: 0 to background it. Read the terminal file when done.
Modes
Mode | Default effort | Role |
| high | Architecture analysis — boundaries, coupling, gaps |
| high | Plan creation — incremental steps, acceptance criteria |
| max | Code review — multi-lens, severity-graded |
| low | Quick research — concise, evidence-cited |
| high | Implementation — hexagonal, small batches |
Without mode, the tool builds a raw command (caller controls everything).
Parameters
Param | Required | Description |
| Yes | The prompt to send |
| No | Dispatch mode (see table above) |
| No | Exact model name (e.g. |
| No | Fallback model name for cross-provider failover (defaults to Sonnet) |
| No |
|
| No | Inference provider: |
| No | Primary GCP project ID for Vertex AI execution |
| No | Secondary GCP project ID for Vertex failover |
| No | Path to primary GCP service account credentials JSON |
| No | Path to secondary GCP service account credentials JSON |
| No | System prompt override |
| No | Resume a previous session |
| No | Working directory for Claude CLI |
Files
File | Purpose |
| MCP entry point — thin wiring, delegates to command-builder |
| Pure logic — shellQuote, buildCommand, mode resolution |
| Failover logic — Vertex quota retry & EnMaaS-to-Vertex subshell failover |
| Provider routing & environment variables configuration |
| Dispatch mode definitions (effort + system prompt per role) |
| From-source setup: deps + MCP registration & |
| Curl-pipeable installer: download release + register |
Environment & Configuration
Variable | Default | Purpose |
|
| Path to Claude CLI binary |
|
| Install location (install.sh only) |
|
| Base URL for Red Hat EnMaaS AI Gateway |
| (empty) | API key / token for EnMaaS authentication |
| (empty) | Default primary GCP project ID |
| (empty) | Secondary GCP project ID for failover |
| (empty) | Primary GCP service account JSON credentials file |
| (empty) | Secondary GCP service account JSON credentials file |
Configuration CLI (setup.sh --configure)
Configure or update MCP credentials and failover settings:
./setup.sh --configure \
--primary-project "<PRIMARY_PROJECT_ID>" \
--failover-project "<SECONDARY_PROJECT_ID>" \
--primary-credentials "/path/to/primary-sa.json" \
--failover-credentials "/path/to/secondary-sa.json" \
--gateway-url "https://api.enmaas.example.com" \
--enmaas-key "secret-key"Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA server implementation for the Model Context Protocol (MCP) that allows Claude AI to execute commands through a command-line interface, enabling direct system interactions from within Claude.-
- AlicenseAqualityDmaintenanceAn MCP server that lets host-side Claude Cowork dispatch work into Claude Code running inside your devcontainer over stdio.1662 PyPIMIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server wrapping the Cursor CLI agent, enabling Claude Code and other MCP clients to delegate tasks to Cursor's AI agent for file writing, bash commands, and codebase queries.-
- AlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that provides a bridge to Anthropic's Claude CLI. It allows MCP-compliant clients like Claude Desktop or Gemini to start new chat sessions or continue existing ones.2100 npmISC