r/Clojure • • 10h ago

Clojure Pulse - a Cursive-inspired VS Code extension for Clojure

Post image
14 Upvotes

r/Clojure • • 4h ago

Nippy security announcement (2026-12-02)

12 Upvotes

Hi folks-

Heads-up that I'll be releasing Nippy v3.10.0 at 15:00 UTC today (2 Dec) with fixes for a couple security vulnerabilities affecting folks that thaw untrusted bytes.

More preliminary info on Clojurians Slack at https://clojurians.slack.com/archives/C06MAR553/p1796188844426289, CC'ing here for maximum exposure.

Full details to follow after release.

Sincere apologies for the trouble.


r/Clojure • • 5h ago

We implemented the new MCP 2026-07-28 spec in Clojure — modern-first negotiation, Skills (SEP-2640), and multi round-trip requests

Thumbnail github.com
3 Upvotes

Hey all — I maintain clj-agent, a Clojure agent library. The clj-agent-mcp module is a standalone MCP client + server (it doesn't depend on any of the agent-side modules), and we just finished a full pass over the MCP 2026-07-28 spec (https://modelcontextprotocol.io/specification/2026-07-28) plus a second round of additions. Everything below ships in the current release.

What changed in the 2026-07-28 spec (and why it's a rewrite, not an upgrade)

The modern spec drops the initialize handshake entirely: server/discover is the new opener, every request carries protocol version / capabilities / identity in params._meta, HTTP is stateless (no Mcp-Session-Id, three mandatory headers instead), and there are new error codes (-32020/-32021/-32022). Roots, sampling and logging are deprecated. Legacy semantics are still fully supported — the same server answers both eras, routed by the shape of the request itself.

What's implemented

Protocol core

  • Modern-first negotiation: send server/discover first, fall back to initialize only on the right error codes (per spec PR #2844 — you can't just retry on any error, that masks real failures like -32021)
  • Per-request envelope validation: _meta protocol version, mandatory headers, extensions
  • Server identity (io.modelcontextprotocol/serverInfo)

Multi Round-Trip Requests (MRTR)

  • Handlers can return input_required; the client retries with inputResponses on a fresh JSON-RPC id Optional :auto-fulfill mode — your app handler decides the answers, the client runs the protocol state machine
  • URL-mode elicitation requests and HMAC-signed requestState codec
  • The capability gate: if a client didn't declare the capability an input_required needs, the server answers -32021 with data.requiredCapabilities instead of leaking the pause

Skills extension (io.modelcontextprotocol/skills, SEP-2640)

  • Server: declare :skills, get the extension + skills/list / skills/get, files served via standard resources/read
  • Client: list-skills / load-skill / read-skill-file with all the host-side verification the spec requires — digest, size, frontmatter field-by-field, unlisted files, size caps. Verification failures are content problems, not protocol errors (re-fetch the manifest and retry) Everything else from the two rounds
  • subscriptions/listen (POST + SSE, explicit close! — the 2026 spec deleted resume, so no silent auto-reconnect)
  • Cacheable results: server-side :cache-hints, client caches only the six spec-allowed read-only methods, :cache-mode :use/:refresh/:bypass, precise invalidation entry points
  • Parameter header mirroring (x-mcp-header → Mcp-Param-*, strict RFC-2231-style encoding for non-ASCII)
  • Extension methods (:methods + request-method!), completion/complete, display-only fields (title / annotations / icons / size / _meta), W3C Trace Context, client result-cache with a bounded default (512)

Honest notes

  • HTTP subscription has no auto-reconnect — deliberate; the 2026 spec removed resume and we don't want a silent reconnect hiding the gap
  • Frontmatter is a built-in YAML subset parser; anything outside the subset fails closed ("can't parse → don't load"), with {:parse-yaml f} to plug a real parser
  • Header mirroring covers scalar params only; objects/arrays can't be mirrored

r/Clojure • • 15h ago

Today is Giving Tuesday

23 Upvotes

Today we’re reminded that the Clojure ecosystem would not exist without all the work and generosity of those who have contributed.

Open source is made by real people spending their real time making useful things they share for free.

Would you consider sponsoring your favorite project or Clojurists Together?

If your business uses Clojure, would you consider becoming a corporate sponsor?

To sponsor Clojurists Together, visit clojuriststogether.org and look for the signup buttons.

To sponsor your favorite projects or developers, visit their GitHub profile page and tap the “Sponsor” button.


r/Clojure • • 16h ago

Materializing Production Traces into AI-Assisted REPL Flows - Juliana Prieto (Clojure/Conj 2026)

Thumbnail youtube.com
12 Upvotes

REPL-driven development is often treated as a local expression-evaluation mechanism. But when production incidents span complex business flows, we. abandon our flow state for slow, diagnostics. What if your architecture could automatically materialize individual production incident profiles directly into your local REPL? This talk explores an advanced debugging workflow that scales conversational programming across multi-service business states. We explore the architecture of an automated pipeline that queries a live, failing entity's history, attributes, and generates a local scratch namespace file populated with real parameters, commands, and events. Using state-flow monadic testing and local variable-capture macros, developers can interactively step through historical transitions and hot-patch code. Finally, we show how this single-entity precision unlocks a massive future: using AI assistants to safely execute and scale these REPL flows across dozens of edge cases simultaneously.

Speaker: Juliana Prieto, Software Engineer at Nubank

Juliana Prieto is a software engineer at Nu, working with Clojure on backend financial systems. She enjoys learning deeply, teaching others, and communicating technical ideas clearly. While she has a strong interest in frontend, product, and user experience, her current work is focused on backend systems, debugging workflows, and real-world business flows. She is especially curious about software architecture, feedback loops, and the way engineering practices shape how teams understand, change, and trust complex systems.