packages/tools/mcp-server-core/README.md
Shared internal utilities for the Babylon.js MCP server packages.
This package is not a standalone MCP server. It provides the common infrastructure used by the server entrypoints under packages/tools/*-mcp-server.
The server packages consume this package from their entrypoints to avoid repeating the same MCP boilerplate:
import { CreateJsonExportResponse, CreateJsonImportResponse, CreateOutputFileSchema, CreateJsonFileSchema } from "../../mcp-server-core/dist/index.js";
That keeps repeated handler logic centralized while preserving clear, package-local tool definitions.
npm run build -w @tools/mcp-server-core
npx jest packages/tools/mcp-server-core/test/unit --runInBand
textHandoff.ts: inline-vs-file input resolution and file writingjsonValidation.ts: shared JSON parsinginputValidation.ts: shared argument presence and alias helpersresponse.ts: shared MCP text responsesjsonToolResponses.ts: shared import/export/snippet response builderstoolSchemas.ts: shared field-level Zod schema fragmentssceneToolSchemas.ts: Scene-specific grouped field fragmentssceneAttachmentValidation.ts: shared scene attachment contract validationThis package is currently consumed by the Babylon.js MCP server packages for Node Material, Flow Graph, GUI, Node Geometry, Node Render Graph, Node Particle, and Scene workflows.