Creates and configures the Express application.
The returned app is fully configured with security middleware and route handlers. MCP protocol validation (Content-Type, Accept, JSON-RPC) is delegated to the SDK transport via StreamableHttpTransport.
Factory to create McpSession instances
Unified session manager (owned by McpServer)
Optional
Application configuration options
Configured Express application
Creates and configures the Express application.
The returned app is fully configured with security middleware and route handlers. MCP protocol validation (Content-Type, Accept, JSON-RPC) is delegated to the SDK transport via StreamableHttpTransport.