Minimal JS/TS tool runtime with a CLI and MCP wrapper. Tools are plain JavaScript modules that expose schemas and handlers.
src/tool-runtime.js- tool loader, schema builder, and invocationsrc/tool-cli.js- CLI for schema and tool callssrc/tool-mcp.js- MCP wrapper (tool listing only for now)src/tools/*.js- tool implementationstest/node/- Node test suite
- Node.js 18+
Until this package is published to npm, you can run it directly from GitHub:
Print multitool schema:
npx -y -p github:holiber/unitools#v0.1.0 unitools --tools=* schema
Call a tool method:
npx -y -p github:holiber/unitools#v0.1.0 unitools --tools=echo call echo.echo --input='{"message":"hi"}'
Print MCP-style tool list:
npx -y -p github:holiber/unitools#v0.1.0 unitools-mcp --tools=* --print-tools
Print multitool schema:
node src/tool-cli.js --tools=* schema
Call a tool method:
node src/tool-cli.js --tools=echo call echo.echo --input='{"message":"hi"}'
Print OpenAI-style tools (requires converters tool):
node src/tool-cli.js --tools=* openai-tools
Print MCP-style tools (requires converters tool):
node src/tool-cli.js --tools=* mcp-tools
For now, tool-mcp.js prints a stable MCP-like tool list:
node src/tool-mcp.js --tools=* --print-tools
args- parse argv into a structured objectconverters- schema converters + toolSchema2md + json2yaml + md2htmlcrypto- encrypt/decrypt text and JSON (AES-256-GCM + PBKDF2)echo- test tool for success/failure/timeout behavior
node --test test/node/tool-system.test.js test/node/tool-schema.test.js