Liking cljdoc? Tell your friends :D

vaelii.agents.mcp.http-transport

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.
raw docstring

body-limitclj

source

handlerclj

(handler request)
source

service-healthy?clj

(service-healthy? handle)

Check if the service is healthy (sweeper hasn't errored).

Check if the service is healthy (sweeper hasn't errored).
sourceraw docstring

start-http!clj

(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.
sourceraw docstring

stop!clj

(stop! handle)

Stop the service. G2: idempotent, joins sweeper.

Stop the service. G2: idempotent, joins sweeper.
sourceraw docstring

valid-accept?clj

(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.
sourceraw docstring

valid-content-type?clj

(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).
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close