32 Generated server commands
| (require mcp/cli) | package: racket-mcp |
procedure
(serve-interface-command interface) → void?
interface : interface-descriptor?
For example, racket examples/approval.rkt –state approval.sqlite runs the durable example over stdio. The state path remains mandatory for durable workflows and upstream bridges. Application definitions and imports are not instantiated a second time by the command handler.
Serving owns its SQLite connection and runtime/transport workers from startup through shutdown. If runtime construction fails, startup is interrupted, or stdio reaches EOF, those resources are released without shutting down the caller’s custodian. Runtime workers stop before the state store closes. Cleanup attempts each owned resource and preserves an existing failure or escape; a cleanup failure on ordinary return is raised to the caller.
Captured loading cannot be retroactively applied to an already-instantiated module. Supplying –runtime-build-id here produces a diagnostic directing the caller to raco mcp –runtime-build-id ID [options] serve MODULE; it does not silently ignore the identity or reload application definitions. Use –build-id for the declared application/runtime identity contract with this direct entry point.