@undisk-mcp/mcp-schema
v0.51.3
Published
Machine-readable MCP tool schemas for Undisk — enables IDE autocompletion and code generation for any language
Maintainers
Readme
@undisk-mcp/mcp-schema
Machine-readable JSON schema for all 25 Undisk MCP tools. Provides typed accessors and an UndiskToolName union type for IDE autocompletion and multi-language code generation.
Installation
npm install @undisk-mcp/mcp-schemaUsage
import { TOOL_NAMES, loadToolSchemas, getToolSchema } from "@undisk-mcp/mcp-schema";
import type { UndiskToolName } from "@undisk-mcp/mcp-schema";
import rawSchemas from "@undisk-mcp/mcp-schema/tools.json";
// Validate and load schemas from the bundled JSON
const schemas = loadToolSchemas(rawSchemas);
// Get schema for a specific tool
const writeFile = getToolSchema(schemas, "write_file");
console.log(writeFile?.inputSchema);
// Iterate all tool names (typed)
for (const name of TOOL_NAMES) {
console.log(name);
}
// Check tool count
console.log(`${schemas.length} tools available`);Documentation
See mcp.undisk.app for full documentation.
License
MIT
