Terminal Command MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Terminal Command MCP Serverlist files in the workspace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Multi-Agent Orchestration with MCP and A2A
This repository contains a fully implemented, production-ready multi-agent orchestration system. The architecture seamlessly integrates the Model Context Protocol (MCP) with Agent-to-Agent (A2A) communication patterns. It features a central host orchestrator, specialized child agents, and direct integration with local and remote tool servers.
The system is fully operational and managed via a user-friendly interactive CLI console.
Architecture Overview
flowchart LR
User[User Input] --> CLI[Interactive CLI Client]
CLI --> Host[Host Agent / Orchestrator]
Host --> MCPConnector[MCP Connector]
MCPConnector --> MCPConfig[MCP config.json]
MCPConnector --> MCPServers[(MCP Servers)]
MCPServers --> MCPTools[(MCP Tools)]
Host --> AgentRegistry[Agent Registry]
AgentRegistry --> A2AClient[A2A Client Connector]
A2AClient --> A2AServer[(A2A FastAPI Server)]
A2AServer --> WebsiteBuilder[Website Builder Agent]Core Architecture Layers:
Interactive CLI Client (
app/cmd/cmd.py)The user-facing terminal interface that handles active command loops, prompts the user, and securely posts queries to the Host Agent.
Host Agent / Orchestrator (
agents/host_agent/)Built on the Google ADK
LlmAgentusing the stablegemini-2.0-flashmodel.Dynamically discovers all locally registered A2A agents.
Connects to MCP servers to list and dynamically call external tools.
Decomposes high-level requests and delegates sub-tasks to child agents.
A2A Client & Registry (
utilities/a2a/)Exposes
agent_registry.jsonfor agent discovery.Manages connections and parses the complex
StreamResponseevent stream, handling both direct message payloads and task status updates (TASK_STATE_WORKING,TASK_STATE_COMPLETED, etc.) with full error propagation.
Specialized A2A Agents (
agents/website_builder_simple/)Dedicated FastAPI-based microservices that receive delegated tasks from the Host Agent and carry out specialized operations (e.g., generating page mockups and layout designs).
Model Context Protocol (MCP) Servers (
mcp/servers/)Terminal Server: Securely runs local commands inside a predefined workspace on the Desktop (
Desktop\Test_folder).Arithmetic Server: Runs as a streamable HTTP server on port 3000, exposing calculations as tools.
Related MCP server: code-mcp
Project Structure
app/cmd/cmd.py— The interactive terminal interface.agents/host_agent/— The main orchestration agent package and uvicorn runner.agents/website_builder_simple/— A specialized HTML/CSS website generation agent.mcp/servers/terminal_server/— An MCP server to run local bash/terminal commands.mcp/servers/streamable_http_server.py— A remote HTTP MCP server for math functions.utilities/a2a/— Client connection modules, state handlers, and registry database.utilities/mcp/— Independent discovery and tool injection layers for the Google ADK runner.scripts/— Automation scripts to manage starting and orchestrating the system services.pyproject.toml— Project manifest and dependencies.
Setup & Initialization
1. Create and Activate the Virtual Environment
uv venv
.\.venv\Scripts\Activate.ps12. Configure Environment variables
Create a .env file in the root directory:
GEMINI_API_KEY=your_gemini_api_key_here(Note: .env is automatically ignored from git commits by the .gitignore rules).
3. Start the System
You can run the entire multi-agent system using the automated orchestration script or manually one-by-one.
Option A: Unified Automatic Startup (Recommended)
Run the combined PowerShell script. It automatically launches the servers in separate windows and waits until their ports are fully active before starting the interactive CLI in the current window:
.\scripts\start_all.ps1(If your execution policy blocks it, run powershell -ExecutionPolicy Bypass -File .\scripts\start_all.ps1)
Option B: Step-by-Step Manual Startup
Open four separate terminals, activate the virtual environment, and run the following in order:
Start MCP Server (Port 3000)
uv run .\mcp\servers\streamable_http_server.pyStart Website Builder Agent (Port 10000)
uv run python -m agents.website_builder_simpleStart Host Orchestrator Agent (Port 10001)
uv run python -m agents.host_agentLaunch Interactive CLI
uv run python -m app.cmd.cmd
Future Enhancements
GUI Dashboard: Build a modern web interface to track agent coordination visually.
Complex Agent Workflows: Add more specialized child agents (e.g., Database Schema Generator, Image Generator).
Robust Authentication: Implement secure JWT/mTLS token exchanges across all A2A boundaries.
This server cannot be deployed
Maintenance
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Related MCP Servers
- AlicenseAqualityAmaintenanceAllows Claude desktop app to execute terminal commands and edit files on your computer through MCP, with features including command execution, process management, and diff-based file editing.26158,647 npm9,749MIT
- AlicenseNot gradedqualityFmaintenanceEnables Claude AI to run terminal commands, perform file operations, and manage git in a project directory via the Model Context Protocol.38MIT
- FlicenseNot gradedqualityCmaintenanceEnables running interactive terminals inside Claude Code and Claude Desktop, supporting multiple sessions for different tasks.-
- FlicenseNot gradedqualityFmaintenanceEnables interactive terminal sessions within Claude Code and Desktop, allowing users and AI to execute commands and manage multiple tabs.2-