Terminal Command MCP Server

Terminal Command MCP Server

Enables Claude Desktop to execute terminal commands in a controlled workspace via the Model Context Protocol.

Category
访问服务器

README

Multi Agent Orchestration with MCP and A2A

This project is an early-stage implementation of a multi-agent orchestration system built around the Model Context Protocol (MCP) and A2A-style coordination.

The system is organized into a few layers:

  • a frontend where the user submits input
  • a host agent / orchestrator layer
  • an MCP connector that reads mcp config.json and lists available servers
  • an agent registry that can list agents and delegate tasks
  • remote A2A agents
  • multiple MCP servers with reusable tools
  • a standalone utilities-side MCP connector that can load the same servers for Google ADK experiments

Architecture Overview

flowchart LR
	User[User Input] --> Frontend[App Frontend]
	Frontend --> A2AClient[A2A Client]
	A2AClient --> Host[Host Agent / Orchestrator]

	Host --> MCPConnector[MCP Connector]
	MCPConnector --> MCPConfig[MCP config.json]
	MCPConnector --> MCPServers[(MCP Servers)]

	Host --> AgentRegistry[Agent Registry]
	AgentRegistry --> Delegate[Delegate Task]
	Delegate --> AgentConnectors[Agent Connectors]
	AgentConnectors --> A2AServer[(A2A Server)]
	A2AServer --> RemoteAgents[Remote A2A Agents]

	MCPServers --> Tools[(MCP Tools)]

Project Status

Status: Early development
Phase: Architecture foundation and connector prototypes
Current focus: Wiring the terminal MCP server, the arithmetic HTTP MCP server, and Claude Desktop connectors into a larger A2A/MCP workflow

What This Project Is About

This repository is a practical build of that architecture. The goal is to grow from a small set of working MCP connectors into a fuller multi-agent orchestration system.

Current work includes:

  • Model Context Protocol for tool integration
  • Claude Desktop as the local frontend
  • A terminal MCP server for controlled command execution
  • A streamable HTTP arithmetic MCP server for remote connector testing
  • The first pieces of the broader A2A orchestration flow
  • A separate utilities/mcp config and connector path for local discovery/loading experiments
  • A website builder A2A agent that was updated to match the current A2A SDK layout

Current Highlights

  • FastMCP-based terminal server is working locally
  • Streamable HTTP arithmetic server is running on http://localhost:3000
  • Claude Desktop config includes both local and remote connector entries
  • Standalone utilities MCP config is separated from the Claude Desktop config
  • MCPDiscovery and MCPConnector are wired for the utilities-side config
  • The website builder agent entrypoint now runs with the current A2A route-based FastAPI bootstrap
  • uvicorn is declared in the project dependencies so the A2A server entrypoint imports cleanly
  • Desktop workspace issues were fixed for the terminal server
  • Project progress and fixes are tracked in dedicated Markdown files

Architecture In Progress

The current repository covers the first working slices of the system:

  • MCP Servers: terminal server and arithmetic server
  • MCP Connector: Claude Desktop remote connector entry for mcp-remote
  • MCP Client flow: server discovery through Claude Desktop config
  • Utilities MCP flow: local config discovery and connector loading for Google ADK
  • A2A agent entrypoint flow for the website builder agent

Planned next layers are:

  • App frontend
  • A2A client
  • Host agent / orchestrator
  • Agent registry
  • Task delegation to remote A2A agents

Project Structure

  • mcp/servers/terminal_server/terminal_server.py - MCP server for running terminal commands
  • mcp/servers/streamable_http_server.py - Streamable HTTP MCP server for arithmetic testing
  • utilities/mcp/mcp_config.json - Standalone MCP config for the utilities-side connector
  • utilities/mcp/mcp_discovery.py - Reads and validates the standalone MCP config
  • utilities/mcp/mcp_connect.py - Loads MCP servers into Google ADK toolsets
  • FIXES.md - Detailed log of fixes, file changes, and reasoning
  • PROJECT_STATUS.md - Progress tracker and GitHub push history
  • main.py - Project entry point or placeholder script
  • pyproject.toml - Python project configuration
  • uv.lock - Locked dependency state for uv

MCP Server Overview

The terminal MCP server exposes a command tool that:

  • accepts a command string
  • runs it through subprocess
  • returns command output or errors
  • uses a stable default workspace on the Desktop

This lets Claude Desktop interact with local commands without depending on a fragile working directory.

The arithmetic MCP server exposes an add_numbers tool and runs as a streamable HTTP service on http://localhost:3000 for remote connector testing.

The utilities/mcp layer reads the standalone config, discovers both server entries, and prepares tool connections for the Google ADK side of the project.

The website builder agent was updated to use the current A2A SDK imports and FastAPI route mounting so it runs cleanly under uv run python -m agents.website_builder_simple.

Setup

1. Create the virtual environment

uv venv

2. Activate it on Windows PowerShell

.\.venv\Scripts\Activate.ps1

3. Install dependencies

uv add "mcp[cli]"

If you are running the website builder agent, uvicorn is also required and is already declared in pyproject.toml.

4. Configure Claude Desktop

Add the MCP server entries in claude_desktop_config.json.

{
	"mcpServers": {
		"terminal_server": {
			"command": "C:/Users/saad0/.local/bin/uv.exe",
			"args": [
				"--directory",
				"D:/Work/A_Self/AAProjects/Multi_Agent_Orchestration_with_MCP_and_A2A/mcp/servers/terminal_server",
				"run",
				"terminal_server.py"
			]
		},
		"arithmetic_server": {
			"command": "npx",
			"args": [
				"-y",
				"mcp-remote",
				"http://localhost:3000/mcp/"
			]
		}
	}
}

Roadmap

Planned improvements include:

  • building the app frontend
  • adding the host agent / orchestrator layer
  • implementing agent registry and delegation flows
  • adding more MCP servers and tools
  • connecting remote A2A agents
  • expanding the utilities-side Google ADK connector flow
  • finishing the website builder agent tutorial flow with the current A2A SDK
  • documenting the full end-to-end orchestration flow more clearly

Notes

This repository is intentionally being built incrementally. The README will evolve as the architecture becomes more complete.

License

No license has been added yet.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选