MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports
Higher-order function that wraps a tool handler with logging.
Tool argument type
Tool result type
Name of the tool
The tool handler function
The logger to use
A wrapped handler with automatic logging
const wrappedHandler = withLogging( 'my_tool', async (args) => { ... }, logger); Copy
const wrappedHandler = withLogging( 'my_tool', async (args) => { ... }, logger);
MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports