Skip to main content
Glama

toolbox

Ein werkzeugorientierter MCP-Server (nur Tools), der die vollständige Aufrufkette „AI-Host → MCP-Protokoll → mehrsprachiges Backend" demonstriert.

Drei-Schichten-Architektur:

Schicht

Sprache

Zuständigkeit

Klebeschicht (Protokoll + Prozessbrücke)

TypeScript / Node

MCP-Protokoll, Tool-Registrierung, Spawn von C++-Unterprozessen

Kernel (Berechnung)

C++

Reiner Berechnungskernel (z. B. twoSum – Summe zweier Zahlen)

Verzeichnisstruktur

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

Systemvoraussetzungen

  • Node.js ≥ 20

  • MinGW g++ (nur für die Kompilierung des C++-Kerns erforderlich, nur für das two_sum-Tool)

Installation

npm i

C++-Kernel kompilieren

native/001.exe ist ein Build-Artefakt und wird nicht eingecheckt. Nach dem Klonen muss selbst kompiliert werden:

g++ -O2 -std=c++20 -static-libgcc -static-libstdc++ native/001.cpp -o native/001.exe

-static-libgcc -static-libstdc++ sorgt dafür, dass die exe ihre Laufzeitbibliotheken mitbringt und nicht von libstdc++-6.dll abhängig ist.

Ausführung

npm run dev    # 开发(tsx watch)
npm start      # 运行
npm run typecheck   # 类型检查(tsc --noEmit)

Werkzeugliste

Werkzeug

Beschreibung

Schicht

echo

Nachricht zurückgeben

TS

add

Zwei Zahlen addieren

TS

reverse

Zeichenkette umkehren

TS

read_file

Dateien im Verzeichnis data/ lesen

TS

write_file

Dateien im Verzeichnis data/ schreiben

TS

two_sum

Summe zweier Zahlen (Spawn des C++-Kerns)

TS → C++

A
license - permissive license
Not graded
quality - not tested
C
maintenance

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

  • F
    license
    Not graded
    quality
    C
    maintenance
    A model-agnostic MCP server exposing example tools (add1, multiply2, greet) for learning purposes, working with any LLM through stdio transport.
  • F
    license
    Not graded
    quality
    C
    maintenance
    A learning-oriented MCP server that exposes basic tools (echo, add, reverse) over stdio transport to validate MCP handshake and tool calls.
  • A
    license
    A
    quality
    C
    maintenance
    Exposes 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.
    3
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Wraps 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.
    8
    Apache 2.0

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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