@webblackbox/mcp-core
v0.2.0
Published
Small utility helpers and shared input schemas for WebBlackbox MCP integrations.
Maintainers
Readme
Small utility helpers and shared Zod input schemas for the WebBlackbox MCP (Model Context Protocol) server and related integrations.
Installation
npm install @webblackbox/mcp-coreUsage
Each utility exports a Zod-based input schema (for MCP tool registration) and a corresponding function:
import {
addNumbersInput,
addNumbers,
nowUtcInput,
nowUtcIsoString,
echoInput,
echo
} from "@webblackbox/mcp-core";
// Arithmetic helper
addNumbers({ a: 1, b: 2 }); // 3
// UTC timestamp
nowUtcIsoString(); // "2026-03-14T12:00:00.000Z"
// Echo
echo({ text: "hello" }); // "hello"Exported Utilities
| Function | Input Schema | Description |
| ---------------------- | ----------------- | ------------------------------------------------- |
| addNumbers({ a, b }) | addNumbersInput | Add two finite numbers |
| nowUtcIsoString() | nowUtcInput | Return the current UTC time as an ISO 8601 string |
| echo({ text }) | echoInput | Echo back the provided text (1–10,000 chars) |
Each *Input export is a plain object of Zod schemas, ready to pass as the inputSchema when registering an MCP tool.
