Liking cljdoc? Tell your friends :D

Changelog

0.10.0 - 2026-11-24

What a client or a host will see differently:

  • A session is the same thing on every MCP revision: create-session mints it and every other tool takes it as session-id. Clients that open with initialize used to get their session from the handshake, in the Mcp-Session-Id header; they now call create-session like clients on the 2026-07-28 revision, and their tools require session-id. A call without one is answered with how to get one.
  • For those clients a session now survives a reconnect, since it lives in the conversation and not in the connection. After a server restart their old session is refused with instructions to create a new one, where it used to be silently replaced by an empty one.
  • Mcp-Session-Id remains as a connection id. DELETE forgets the connection and no longer ends a session; sessions end by a day of silence. A request without the header is served.
  • :by, on other sessions' entries and uploads, is the owner's whole session id.
  • A session id is not given out twice while the JVM runs, so nothing an ended session left running can reach a later one.
  • Session ids are five letters, where they were three, and task ids are longer by the same two: bfwkm-12. Three letters could not last a long-lived JVM once ids stopped being reused.
  • Behaviour change, 2026-07-28 clients: closing a held response stream now cancels the eval behind it, or ends the wait of an await. A client that timed out or lost its connection used to leave the eval running, its outcome announced on the next call; the eval is now cancelled when a write to the stream fails, which is how the server learns the stream is gone. Work whose task handle or running answer has already been sent is not affected. Clients that open with initialize are not affected: for them a disconnect still cancels nothing.
  • A cancellation notice stops only a request made on the connection it arrives on. It used to stop whatever waited under that request id, another client's request included. Changed with it: a notice from a client that sends no Mcp-Session-Id now does nothing, and a request id in flight twice on one connection is no longer stopped by a notice.
  • An eval passed background on a call that does not declare the tasks extension says so in its response, with how to wait for the result. The flag used to be dropped in silence. Only a client whose calls declare less than its tool listing did can send it.
  • init! and status report the address the server bound, in :url and in :opts' :port. With :port 0 they reported port 0, and with an IPv6 :bind a URL that could not be parsed. A :bind given as a name is now reported as the address it resolved to.

Fixes:

  • A cancellation that arrives while its request's answer is being written leaves the result unread, to be announced on the next response. It used to be marked delivered.
  • A session that ends while one of its evals is still running stays ended. The eval's finish used to write the session back, leaving its id live with nothing behind it. A scratch namespace such an eval asks for is refused, where it used to be created and never removed.
  • A session that makes a call at the instant another session's admission is expiring it stays live. It could be dropped after the call had been let in, leaving that call's eval running under an id the server then refused.
  • A session whose upload directory cannot be read or deleted still ends, and what can be deleted of it is. The failure used to surface as an error on whichever eval's admission happened to reap the session, with that eval left running and unregistered.
  • In a batch, each call's progress goes out under the progress token that call attached. It all went out under the first token in the batch, and a later call's first output lines were cut by as much as the call before it had printed.
  • Asking about a result no longer counts as reading it. (__r/failure id) on an entry that had not failed, and tasks/cancel on a task that had already settled, both marked the entry delivered, after which an unread result could be evicted. A failure that is rendered is still delivered, and so is a cancellation that ended its task.
  • An upload for a session that ends while the file is arriving is refused with 404 and leaves nothing on disk. It used to answer 201 and leave a file no session listed. An upload also refreshes its session when it arrives, not only once it is stored.
  • An upload's receipt reports the size that upload wrote. With two uploads to one name overlapping, one could be answered with the other's size.
  • A tools/list response that fails to reach its client no longer stops tools/list_changed from being announced to it.
  • An init! that fails leaves the host as it was. With the port taken it used to leave *out* and *err* wrapped, and the registry capacity and server description set to what the failed call asked for. With an :allowed-origins that was not a collection it used to keep the port, so that a corrected call could not bind.
  • init! and stop! no longer throw when the line they print cannot be written. init! used to throw with the endpoint started.

0.9.0 - 2026-11-20

  • An agent can send a file to the JVM without the file passing through its context. The endpoint answers PUT /upload/<session-id>/<name> beside /mcp, with the same exposure and origin policy: the body is staged in a directory of the session's own under the JVM's temp directory, and the response names the path. Staged files are deleted when their session ends; each is limited to 64 MiB. The route is always on.
  • (__r/upload-url) tells the agent where to send files, as a best guess from the address its client's latest request named. (__r/uploads) lists what is staged, across sessions, with :by on other sessions' files.
  • A new recipe namespace, co.multiply.remontoire.patterns.uploads: place! moves a staged source file to where its namespace lives on a directory classpath and returns the namespace to reload. Its walkthrough also shows sending many edited files as one zip and unpacking it over the host's checkout.
  • The manual says how to load code edited on disk: the project's own reload where it names one, otherwise (require 'some.ns :reload) or load-file, and what changes when the JVM runs on another host.

0.8.2 - 2026-11-03

  • Clients that follow MCP tasks get a boolean background on eval: work known to be long, like a polling loop, answers as a task at once instead of holding the call through the 10 s grace.

0.8.1 - 2026-11-03

  • The manual is clearer on four points that came up in use:
    • Runaway work never costs you the REPL, but cancellation is cooperative. Work involving other systems unwinds cleanly when its cleanup handles it: try/finally around a synchronous body, q/finally on a task.
    • Deref and other blocking calls are safe in an eval, which runs on a virtual thread. Leave q/throw-on-platform-park! alone; it is a JVM-wide switch.
    • Clients that follow MCP tasks may track a task under an id of their own, and stopping it there cancels the eval.
    • A result you have read is already absorbed, so release! matters only for unread results and running work you abandon.

0.8.0 - 2026-11-03

  • Serve the stateless 2026-07-28 MCP revision beside the earlier ones, on the same endpoint. Clients that open with initialize keep working exactly as before.
  • In the stateless revision the session is a tool: call create-session first and pass its id as session-id to every other tool. An unknown or expired id is refused with an error that says to create a new session; every response footer shows the id.
  • Clients that support MCP tasks get long evals as tasks. An eval still running after 10 s moves to the background, and the client delivers its result when it settles; stopping the task cancels the eval. These clients are offered only create-session and eval, since their own task handling replaces await and cancel. Task bfw-12 is registry entry 12, so (__r/res 12) still composes on the work while it runs.
  • (__r/manual) describes the async model that matches the session's client.
  • Update Quiescent to 0.11.6. An eval cancelled because a task it depended on failed now reports that failure, not a bare cancellation.

0.7.4 - 2026-10-01

  • Scratch namespaces follow host reloads. A reloader that replaces namespace objects (clj-reload, tools.namespace) never touches scratch, so its aliases, refers and imports kept naming the replaced namespaces, vars and classes. A def or macro evaluated through them after the reload used the old generation: for example, an instance of a replaced deftype that host code then rejected as X cannot be cast to X. Before each form, a scratch's stale mappings are now re-pointed at their replacements, atomically and without ever dropping one. The eval's output says when this happens, since defs made before the reload may still hold the old code and values. Host namespaces are untouched.
  • The __r alias is now reasserted in one atomic step, so a concurrent eval never finds it missing.
  • Update Quiescent to 0.11.5, which fixes by-name class lookups on its executor threads returning a stale generation of a redefined deftype or defrecord.

0.7.3 - 2026-09-11

  • Update Quiescent to 0.11.3.

0.7.2 - 2026-09-10

  • Update Quiescent to 0.11.2, bringing its gate fixes and retaining Scoped 0.1.17's lazy ask defaults. Rely on Quiescent's transitive Scoped dependency instead of maintaining a separate version pin.

0.7.1 - 2026-09-10

  • Update Scoped to 0.1.17: (ask *var* default) evaluates the default expression only when needed.

0.7.0 - 2026-08-14

  • Quiescent 0.10.0: gates leave the cancellation tree. A gate is now a pure coordinator, like semaphore — off the tree, immortal, (q/cancel gate) a type error — so a top-level (def gate (q/gate n)) re-created through an eval-driven reload no longer dies with the eval, and the silent-dead-gate mode (gate-task on a cancelled gate returning an already-cancelled task whose then/catch/handle never ran) is no longer representable. Gated tasks are unchanged: structured under their creator, so cancelling an eval still tears down exactly the work it enqueued — running or queued — while the gate, and other work sharing it, run on.
  • The manual teaches the def boundary: orphanhood is decided by the dynamic extent at creation — def lifts nothing out of the tree, and any load path an eval drives (require :reload, a sweeping reloader) re-evaluates top-level forms inside the eval, so the tasks those defs re-create die with the call. Compel at creation or capture the settled value for tasks; coordinators are exempt by design. The gated recipe's docstring now attributes its cancel-the-eval guarantee to the tasks' own parenthood, where it always lived.

0.6.0 - 2026-08-13

  • Scratch compartments: (__r/scratch! "kbtest") switches to a named scratch of the session's own, nested under its main scratch — …scratch.s<tag>.kbtest — so uniqueness across sessions comes from the session tag and the label stays what the caller chose. Minted and wired like scratch itself on first use (q and the q* macros, res/evals, __r); within a session the same label is the same compartment thereafter — the label is the compartment's identity, so re-entry after a lost context is the same call as creation. The switch is a real in-ns — it sticks across calls — and announces itself on the eval's output. (__r/scratch!) returns to the main scratch, (__r/scratches) lists the family (the namespace tree is the tracking; no ledger), and (__r/retire-scratch! "kbtest") removes a compartment — retiring the ground you stand on lands you back in the main scratch first, and neither the main scratch nor another session's compartment is retirable. Compartments die with the session, like all conversational state.

0.5.1 - 2026-08-11

  • The manual note appears once per session — on the first eval response, then never again — and its wording turned from imperative to fact: ;; new session — (__r/manual) unless this conversation has. The server knows only session truth: a conversation may have read the manual through another server of the same build, or before a restart, so a repeating note is usually wrong exactly where fleets and restarts are the deployment shape — and a footer that cries wolf spends the credibility evictions and truncations are announced on. The note is burned only when its response actually goes out, the same discipline as every delivery mark: a client that timed out was never nudged.

0.5.0 - 2026-08-11

  • vars exactness reads through conventional decoration: claim?, ->Claim and *claim* are exact matches for "claim". The affix set is closed idiom — one leading map->/->/-, one trailing ?/!/*, earmuffs as a pair — and exactness as spelled still leads the tier: claim itself, or a query spelling the sigil, ranks above the decorated family.
  • Within each tier, publics rank before privates — the API is usually the quarry, and the private sibling follows one row down, still flagged. A bare scope listing ("helpers/") keeps whole-namespace source order: a listing, not a ranking.

0.4.0 - 2026-08-11

  • Breaking: vars speaks qualified matches; :ns-match is gone. A / in the match qualifies it, spelling the search the way Clojure spells the target: (vars "helpers/await") — string or symbol — scopes to namespaces whose name matches the ns side (docstrings not consulted, as :ns-match scoped) and matches the name side within them, docstrings included as ever. Either side may be empty: "helpers/" lists a scope whole, "/await" degenerates to the bare search. "/" and strings with more than one / throw — the var named / is reached as 'clojure.core//, split by the reader. A regex containing / matches whole qualified names — the one spelling that mixes forms — where a slashless regex matches bare names, unchanged. The qualified spelling was previously a silent []: the natural first query, answered as "no such var".
  • vars takes {:search-docstrings false} — nses' word — restricting the name side to names alone.
  • * in a string or symbol match is a wildcard matching any run, in nses, vars and outline's :match alike — "q*/await", "co.*.helpers/". A starless match stays a plain substring; a literal * (earmuffed names) is a regex away: #"\*out\*".

0.3.0 - 2026-08-11

  • Breaking: file returns the vector of lines, like out before it — composition is the window. The 1-indexed :line an outline or vars entry carries indexes it directly: (drop (dec line) (file ns)) starts reading at the var, which is precisely the drilldown models were observed reconstructing by hand from the string. String consumers str/join with a newline.
  • The api docstrings move to a terse contract template: an Accepts: section with exact match and option semantics (absent on nullary functions — absence is the clearer signal), and an Output shape: section always present, even when trivial, so a caller can compose on a result — or slice it into the first call — without a probe eval to learn its keys. Special capabilities stay with the docstring; general composition advice lives in the manual; adjacent functions cross-reference instead of repeating.
  • vars takes {:ns-match m} — the forms match takes — scoping the search to namespaces whose name matches: a docstring mention is no reason to widen a scope. An unmatched scope is an empty answer, not the whole system.
  • nses takes {:search-docstrings false}, restricting the search to names — the docstring tier vanishes; it is the name-only form :ns-match scopes through.
  • outline's :match takes a symbol, matched as its name — the capacity nses and vars already had, now defined once in the shared matcher, so all three agree.

0.2.0 - 2026-08-10

  • Breaking: the __q alias is retired. Scratch namespaces are pre-wired with Quiescent exactly as committed source spells it — the q alias plus the bare-referred macros (q, qdo, qlet, qfor, …) — and nothing but __r follows an eval into other namespaces, so idioms copy verbatim between evals, the Quiescent skill and source files. Eval code written against __q/… becomes q/… in scratch; in any other namespace, aliasing Quiescent is the model's own act — and __q is the collision-proof spelling for a namespace you don't own, since requiring into it rewires its alias map. The upside of the loud failure: q/task in a foreign namespace now either means what the host's own alias says, or fails self-diagnosingly, instead of silently meaning something injected.
  • nses ranks the way vars ranks, adapted to dotted names: names with a whole dot-segment matching exactly first — "outline" puts x.outline above x.outline-test — then remaining name hits, then docstring-only hits, alphabetical within each tier. Namespace docstrings are searched for the first time; the result stays a flat vector of symbols, so a docstring hit carries no quoted evidence — outline the namespace to see it.
  • outline takes :include-private: the glance keeps privates by default, {:include-private false} keeps the public surface alone, for when the API is exactly the question.
  • The manual restructured principles-first — the conceptual model and frame of mind before tools and specifics — and trimmed: mechanics the API docstrings already carry are no longer restated, so the prose half holds the contracts, doctrine and silent-failure modes alone.

0.1.3 - 2026-08-07

  • __r/vars — global var search, the top-ranked wish from the first in-situ smoke test: every loaded var whose name or docstring matches, as outline entries with :ns attached — scored, so vars named exactly what you asked for lead, then name hits, then docstring-only mentions, in namespace and source order within each tier; docstring hits quote their matching lines as :matched. Takes what nses takes — a string (case-insensitive substring), a regex, or a symbol matched as its name — so "where does that function live?" no longer takes guessing namespaces.
  • Truncation announces its size: when the value renderer's caps cut a result, the response footer says how much was elided — exactly for counted collections (;; truncated — 9872 elided), a floor when a lazy tail keeps the total unknowable — and points at (res id) for the whole value. Same doctrine as eviction: announced, never silent.
  • The manual and the eval description name the infinite-lazy-return trap: grounding walks each form's whole value, so a returned infinite seq never settles. Infinite seqs are fine to work with — (def nat-ints (range)) returns the var, (take 5 nat-ints) a bounded value; it is only the returned value that cannot be unbounded.
  • __r/out returns the printed output as a vector of lines — the pending unterminated line last (it is the progress line), chars the cap dropped announced as the first element. Reading back is composing, per the core invariant: (take-last 5 (out id)) peeks at a chatty eval, drop-last then take-last pages further back, filter searches, and (run! println (out id)) is the verbatim reading form. Underneath, output banks retain completed lines rather than one string, so the cap trims whole entries oldest-first and a chatty eval no longer pays a full-bank copy per write.

0.1.2 - 2026-08-06

  • GET /probe — a sessionless identity endpoint beside /mcp, for discovery tooling, health checks and post-deploy sanity: plain JSON ({"server": "remontoire", "version": …, "describe": …}), no session minted, no registry or session state touched. server is the fixed discriminator to key on; describe is the init!-time self-description, null when unset; more fields may accrete — consumers should key on field presence. Same exposure and origin policy as /mcp.

0.1.1 - 2026-08-06

Documentation amendments from the first in-situ smoke test (a real 1900-namespace JVM, the jar from Clojars).

  • The eval tool description states last-value-only up front — batch independent probes in a vector or labeled map — and its orphan-cancellation sentence now matches the manual: cancelled by the time the eval settles, not at the form border.
  • The manual's async section names deep grounding as the idiomatic single-eval fan-out: a returned vector of tasks runs in parallel and the eval waits for all.

0.1.0 - 2026-08-06

Initial release.

  • MCP over HTTP served from inside the host JVM (com.sun.net.httpserver, Streamable HTTP) — no separate server process, no REPL wire protocol. Inert until init!; loopback binding, Origin validation, and no CORS by default.
  • Three tools: eval — namespace-aware, every eval a Quiescent task under a registry id, with per-eval output capture attributed across the whole task tree and the latest printed line as live progress; await — deadline-bound waiting on ids; cancel — cooperative cancellation with a settled report.
  • The __r API, aliased into every namespace evals touch: nses, outline, doc, source, file for navigation; res, evals, out, failure for the registry; sessions, introduce!, release! for sharing the JVM; manual — the self-teaching surface, prose printed and the API reference returned as live data.
  • Retention with guarantees: running work and unread results are never evicted; settled, delivered entries live in a bounded LRU pool, and eviction is always announced in a response footer.
  • Sessions with scratch namespaces pre-wired with Quiescent (__q), a shared registry across sessions with :by attribution, and a connect-time intro the server composes about itself (:describe).

Can you improve this documentation?Edit on GitHub

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