Using the MCP Handler
Babylon provides an MCP request handler that you can integrate into your application:Protocol Versions
The MCP server supports multiple protocol versions:Initialize Response
Theinitialize method returns server information:
LLM Integration
See Examples for complete OpenAI and Claude integration code, including tool format conversion and tool-call handling loops.Tool Input Schemas
Each tool has a JSON Schema for its inputs:Available Exports
The@babylon/mcp package exports:
Next Steps
Examples
Working code
Testing
Test integration