What is MCP Server - A Node In Layers Package for building MCP Servers?
A Node In Layers package for building MCP servers that exposes domains, features, and model CRUDs as MCP tools so an AI can discover and call them. It is self-describing, automatically organizes tools into an optimized system, and includes built-in prompting and examples to improve AI tool selection and formatting accuracy.
How to use MCP Server - A Node In Layers Package for building MCP Servers?
Install with npm install @node-in-layers/mcp-server. Configure in /config.base.mts by adding the MCP server module to the apps list, including the mcp layer in the layer order, and setting server connection details. Run the server via a script that calls system.mcp[McpNamespace].start(context).
Key features of MCP Server - A Node In Layers Package for building MCP Servers
- Automatically exposes features and model CRUDs as MCP tools.
- Self-describing system with a configurable START_HERE navigation tool.
- Domain-organized tool surface with
list_domains, list_features, describe_feature, execute_feature, and model CRUD tools.
- Flat mode to expose feature functions as individual tools without navigation tools.
- Component hiding via
hideComponents to restrict visibility of domains, features, or models.
- Custom tool extension using
addTool() and addAnnotatedFunction().
Use cases of MCP Server - A Node In Layers Package for building MCP Servers
- Build an MCP server that exposes a business domain’s features and data models to an AI assistant.
- Create a self-documenting API surface where the AI can discover and execute operations without hardcoded tool names.
- Reduce tool selection errors in systems with hundreds of tools through automatic organization and prompting.
- Expose a minimal tool surface (flat mode) for systems with a single function or small tool set.
- Hide sensitive or experimental domains/features while keeping the rest of the system available.
Comments