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:
/healthopen,/mcpbehind the guard, every other path 404. - build_
router_ with_ request_ timeout - The router with
timeoutas 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.