toolbox-mcp
toolbox-mcp
툴형 MCP Server(Tools-only)로, 'AI Host → MCP 프로토콜 → 다국어 백엔드'의 전체 호출 체인을 시연합니다.
3계층 아키텍처:
계층 | 언어 | 역할 |
글루(프로토콜 + 프로세스 브리지) | TypeScript / Node | MCP 프로토콜, 도구 등록, C++ 하위 프로세스 spawn |
커널(계산) | 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: mini-mcp-demo
환경 요구사항
Node.js ≥ 20
MinGW
g++(C++ 커널 컴파일용,two_sum도구에만 필요)
설치
npm iC++ 커널 컴파일
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++ |
Available Tools
6 toolsaddC
Add two numbers
Inputs: a (required), b (required).
echoD
this is a tool test the function of all the kits
Inputs: message (required).
read_fileD
read the files
Inputs: file (required).
reverseC
reverse a string
Inputs: pattern (required).
two_sumC
求两数之和(spawn C++ 内核 native/001.exe)
Inputs: nums (required), target (required).
write_fileC
write the message into the files
Inputs: path (required), content (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
add and two_sum are functionally identical (both sum two numbers), so an agent has no basis to choose between them. echo's description ('test the function of all the kits') is vague enough that it could be mistaken for a general test/util tool overlapping with everything else.
Names are all lowercase with snake_case used where multi-word (read_file, write_file, two_sum), which is readable. However conventions are mixed: bare verbs (echo, add, reverse) alongside verb_noun pairs and a noun-style name (two_sum).
Six tools is a compact, reasonable size for a utility/demo server. The only waste is two_sum, which duplicates add and earns no independent place.
The file surface only offers read and write, with no list, delete, append, or directory operations, leaving obvious dead ends. The remainder is an incoherent grab bag (echo, add, reverse, two_sum) with no clear domain to cover.
Maintenance
Related MCP Connectors
Hosted MCP runtime where your agent publishes its own tools by tool call and keeps working.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Email inboxes, webhook URLs, mock APIs and 170+ tools for coding agents over one MCP connection.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Related MCP Servers
- AlicenseAqualityDmaintenanceExposes 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 gradedqualityDmaintenanceEnables local tool calling over Model Context Protocol via stdio, providing deterministic tools such as calc.add, text.word_count, and text.summarize_naive after JSON-RPC handshake and discovery.MIT
- AlicenseBqualityDmaintenanceEnables AI agents to run shell commands, execute Python code, read and write files, search text, and create or delete folders through MCP stdio tools.9MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to discover and execute operational tools such as database mutations and system diagnostics over stdio, with deterministic structured outputs and Langfuse observability.ISC