v1.9 adds 12 new scenarios - ten more in the dr module and two in a new tiered-storage module - and brings the Kafka Simulator curriculum to 112 of 134. It also publishes something the simulator has relied on from the start: the format of its links.

What’s in v1.9

More disaster recovery (dr, 10 scenarios). Two platform answers to the problems v1.8 posed with MirrorMaker 2:

Tiered storage (tiered-storage, 2 scenarios). Old segments offloaded to object storage: the full lifecycle of offload, read-back and expiry, with localStartOffset and logStartOffset moving apart - and infinite retention, where aged segments leave local disk but a lagging consumer still reads every one of them back.

The playground keeps its whole state in the URL. A link can open a scripted scenario on a given step, replay a sequence of cluster operations, or stand up a custom free-play cluster - which is how every “share” button in the simulator works.

From v1.9 that format is public and documented: the query parameters, the action-log grammar, the cluster-shape encoding, and what the playground does with an entry it cannot parse. Every example in the specification is decoded by the simulator’s own test suite, so the document cannot drift from the code.

A documented format means links can come from somewhere other than the playground - a script, a CI job, or an AI agent. The first generator ships with this release.

Describing the cluster you actually care about by hand - broker by broker, topic by topic - is tedious and error-prone. monedula-sim-link is a small Go CLI that connects read-only to a real Kafka cluster and prints the playground link that visualizes it:

$ go install github.com/monedula-dev/monedula-sim-link/cmd/monedula-sim-link@latest
$ monedula-sim-link connect --brokers localhost:9092 --topics orders,payments
https://monedula.dev/kafka-simulator/playground?scenario=free&actions=…&size=…

The link opens the live cluster as a simulator: brokers, topics, partition placement, replication factor, offline brokers, ISR gaps, consumer groups with their members, topic configs, and a sample of data volume - a picture you can pause, step through, break without touching production, and send to a teammate mid-incident instead of a paragraph describing it.

Read-only, and auditable in one file. Pointing a tool at a production cluster is a trust decision, so the guarantee is narrow and explicit. connect issues only read requests - ApiVersions, Metadata, ListOffsets, and for groups and configs ListGroups, DescribeGroups, OffsetFetch and DescribeConfigs. Metadata sets AllowAutoTopicCreation=false, so even looking up a topic can never create one. No records are produced, no configs changed, no group joined, no offset committed. The whole client surface lives in one file, snapshot/kafka.go, with tests proving a failed lookup does not auto-create the topic and that reading a group’s offsets never changes them.

Fits how clusters are secured. TLS, mutual TLS and SASL/SCRAM are supported, with the password read from MONEDULA_SIM_LINK_PASSWORD so it stays out of shell history:

export MONEDULA_SIM_LINK_PASSWORD='…'
monedula-sim-link connect --brokers broker1:9093,broker2:9093 \
  --tls --ca-cert ./cluster-ca.pem \
  --sasl-mechanism scram-sha-512 --username viewer

Topics are selected by exact name, by regex, or both, and --dry-run prints the real-to-simulator name mappings and the derived cluster size before it hands you the URL. Everything the link encodes is a compact description of shape and a sample of volume; the simulator has no backend, so your data never leaves your machine.

An MCP server for AI agents

monedula-sim-link mcp speaks the Model Context Protocol over stdio, so Claude Code, Claude Desktop or any other MCP client can build links on request. Ask “show me a 6-broker cluster where the leader for orders dies” or “visualize our staging cluster”, and the agent returns a link that opens exactly that. It exposes four tools:

  • build_playground_url - a free-play session from a declarative description: a topology, a cluster shape (brokers; topics with partitions, RF, min.insync.replicas, cleanup policy; rack awareness) and an ordered list of timed actions - produce records, kill and restart brokers, add producers and consumer groups, config changes, reassignment, tiered-storage offload, throttling.
  • open_scenario - the link to one of the curated scripted scenarios, by its dotted id (e.g. 00.1.3).
  • validate_actions - what the playground would actually load from a raw actions string or a full URL: the surviving actions, every dropped entry with its reason, and the length and count against the codec caps.
  • cluster_to_url - the connect snapshot as a tool, with the same read-only guarantee.

Handing URL construction to an LLM is exactly where things go quietly wrong - a mangled separator, a config path the simulator does not accept, an actions value past the length cap - and the playground silently drops what it cannot parse. So every tool goes through the same fail-fast codec as the CLI, and no URL is returned unless its actions value decodes back to the identical log. When validation fails, the error names the offending field, separator or config path, so the agent can fix its input instead of shipping a truncated link.

Registering it takes one line in Claude Code:

claude mcp add monedula-sim-link -- monedula-sim-link mcp

For Claude Desktop, add it to claude_desktop_config.json:

{
  "mcpServers": {
    "monedula-sim-link": {
      "command": "monedula-sim-link",
      "args": ["mcp", "--base-url", "https://monedula.dev/kafka-simulator/playground"]
    }
  }
}

--base-url is optional; point it at http://localhost:4321/kafka-simulator/playground to generate links against a local dev server. The server is built on the official modelcontextprotocol/go-sdk.

monedula-sim-link lives in its own open-source repository, monedula-dev/monedula-sim-link on GitHub - a self-contained Go module under the Apache-2.0 license, installed with go install or as a prebuilt binary for Linux, macOS and Windows from the releases page. It sends no telemetry, and it is the reference generator for the URL format: a link it produces decodes in the playground to exactly the log it wrote.

Scaling a cluster the way Kafka does

Free play now changes broker count the way a real cluster does. Until v1.9, adding a broker quietly rebalanced partitions onto it - which, as a reader pointed out, is not what Kafka does. A broker you add now joins empty: no partition moves onto it by itself, and the cluster inspector says so, with a Rebalance partitions button beside it. In the terminal, kafka-reassign-partitions --generate proposes a plan from a topic list and a broker list, --execute starts it, and --verify confirms it. The other direction follows the same rule: a broker that still holds partitions has to be drained before it can be removed, in the same order you would decommission a real one.

Open the simulator, fail a region over with Cluster Linking, and share the link.