Skip to main content

Module server

Module server 

Source
Expand description

Command line, shared state, HTTP router, stdio serving and the local health check.

Structs§

AppState
Shared by every request: the configuration and one lazy pool per database.

Functions§

build_router
The HTTP router: /health open, /mcp behind the guard, every other path 404.
build_router_with_request_timeout
The router with timeout as the limit for each /mcp request; a request past it gets 408.
run
Entry point of the binary: parses the command line and runs the chosen mode.