Streamable HTTP transport for the Vaelii MCP server.
Implements MCP Streamable HTTP (POST/DELETE/GET on /mcp) and the POST /op raw-operation route. Service handle owns Jetty + lease sweeper; stop is idempotent.
Streamable HTTP transport for the Vaelii MCP server. Implements MCP Streamable HTTP (POST/DELETE/GET on /mcp) and the POST /op raw-operation route. Service handle owns Jetty + lease sweeper; stop is idempotent.
(service-healthy? handle)Check if the service is healthy (sweeper hasn't errored).
Check if the service is healthy (sweeper hasn't errored).
(start-http! {:keys [port host origins config join? sweep-interval
body-limit-bytes audit-sink authority-store]
:or {port 3000
host "localhost"
join? false
sweep-interval 60000
body-limit-bytes (* 1024 1024)}})Start the HTTP service. Returns a ServiceHandle owning Jetty + sweeper. G1: one handle owns everything. G3: partial startup cleanup.
Start the HTTP service. Returns a ServiceHandle owning Jetty + sweeper. G1: one handle owns everything. G3: partial startup cleanup.
(stop! handle)Stop the service. G2: idempotent, joins sweeper.
Stop the service. G2: idempotent, joins sweeper.
(valid-accept? request)Client must accept both application/json AND text/event-stream. Blank, wildcard-only, missing one type, or a required type with q=0 → false.
Client must accept both application/json AND text/event-stream. Blank, wildcard-only, missing one type, or a required type with q=0 → false.
(valid-content-type? request)POST body must be application/json (case-insensitive, with optional params).
POST body must be application/json (case-insensitive, with optional params).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |