Optional ReadonlyadditionalAdditional routes to mount on the Express app.
Optional ReadonlyafterOptional callback invoked after every route handler completes. Useful for post-request instrumentation or cleanup.
Optional ReadonlyjsonFine-grained options passed directly to bodyParser.json().
Optionallimit?: stringMaximum request body size (e.g. '1mb').
Optionalstrict?: booleanWhen false, allows non-object/array JSON at the top level.
Optional ReadonlylimitBody-size limit forwarded to body-parser (e.g. '10mb').
Optional ReadonlypreMiddleware to run before the MCP route handler.
Full Express configuration accepted when building the HTTP app via
getApp()orstart().See
McpServerMcp.getApp