toolbox-mcp
toolbox-mcp
一个工具型 MCP Server(Tools-only),演示「AI Host → MCP 协议 → 多语言后端」的完整调用链。
三层架构:
层 | 语言 | 职责 |
胶水(协议 + 进程桥) | TypeScript / Node | MCP 协议、工具注册、spawn C++ 子进程 |
内核(计算) | C++ | 纯计算内核(如 twoSum 两数之和) |
目录结构
toolbox-mcp
├── src/ TS 胶水层
│ ├── server.ts 主入口(serveStdio + 6 个 register)
│ ├── pathGuard.ts 路径守卫(限制读写 data/)
│ └── tools/ 6 个工具
├── native/ C++ 内核
│ ├── 001.cpp twoSum 源码
│ └── 001.exe 编译产物(不提交,见下)
├── data/ 读写文件工具的操作目录
└── TODO.md 开发计划(#8 Web 面板待办)Related MCP server: MPC-PoC-1-EchoServerToolsbasicas
环境要求
Node.js ≥ 20
MinGW
g++(编译 C++ 内核用,仅two_sum工具需要)
安装
npm i编译 C++ 内核
native/001.exe 是编译产物,不入库。克隆后需自行编译:
g++ -O2 -std=c++20 -static-libgcc -static-libstdc++ native/001.cpp -o native/001.exe-static-libgcc -static-libstdc++ 让 exe 自带运行时,避免依赖 libstdc++-6.dll。
运行
npm run dev # 开发(tsx watch)
npm start # 运行
npm run typecheck # 类型检查(tsc --noEmit)工具列表
工具 | 说明 | 层 |
| 回显消息 | TS |
| 两数相加 | TS |
| 反转字符串 | TS |
| 读取 | TS |
| 写入 | TS |
| 两数之和(spawn C++ 内核) | TS → C++ |
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA model-agnostic MCP server exposing example tools (add1, multiply2, greet) for learning purposes, working with any LLM through stdio transport.
- FlicenseNot gradedqualityCmaintenanceA learning-oriented MCP server that exposes basic tools (echo, add, reverse) over stdio transport to validate MCP handshake and tool calls.
- AlicenseAqualityCmaintenanceExposes a verified tool registry (calculator, sandboxed file read, web fetch) over MCP stdio, enabling any MCP-capable client to reuse the same tools from the inspectable ReAct loop.3MIT
- AlicenseNot gradedqualityCmaintenanceWraps Oh My Pi built-in tools (read, write, edit, bash, grep, etc.) as MCP tools, enabling file operations, shell commands, web search, and agent coordination.8Apache 2.0
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Blooming-cherry/test_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server