An automation framework for MCP servers. Write a YAML script, replay it deterministically, no LLM in the loop.
A rondo driving blender-mcp: lay down a plane, drop a cube, stack a sphere, add a cone, then verify the scene. Same YAML, same result, every run. No model involved. (Click for video.)
The MCP ecosystem is already enormous: thousands of servers exposing real services through typed tools, readable resources, and schema-checked contracts, deployed and ready to call. Ocarina is an automation framework for all of it. Write a YAML script that drives tools across one or more servers, pipes values between steps, branches, loops, and retries, and runs the same way every time. No LLM in the loop, so every run is reproducible and costs nothing.
These tools were built to be read by language models, and language models are trained on human language, so the tools read cleanly to people too. A server exposes named contracts like get_issues or query_database, not endpoints you wire up in code. Every server someone built for an AI assistant is one you can drive.
What you write is a playbook: a portable artifact that captures an automation workflow over those servers, with MCP as the wire protocol. You can read it, review it in a pull request, version it, and run it anywhere the servers are reachable. Write it by hand or have an agent generate it. Either way it runs the same on every execution, with no sampling, no tokens, and nothing inferring between the file and the result.
Design principles
Deterministic. The same rondo produces the same result on every run. No sampling, no randomness.
Protocol-native. Talks MCP directly via tools/call, resources/read, and resources/list. Works with any compliant server.
Assertions are first-class.play exits non-zero if any expect: check fails. Rondos work as CI health checks out of the box.
No credentials in scripts. Server connection and environment variables stay outside the rondo file.
One rondo, any machine. If the MCP server is available, the rondo runs.
Install
go install github.com/msradam/ocarina@latest
Binaries are available on the releases page. Building from source requires Go 1.26+.
Which server to run this step against (a key in the servers: map); defaults to the only/first server
tool
Tool name to call
resource
Resource URI to read (resources/read)
list_resources
Server prefix to list resources from; output is a JSON URI array
args
Tool arguments. {{key}} interpolates from keys or prior echo captures
echo
Store this step's output under a key for later steps
grab
Dot-path into JSON output before storing: .0.sha, .name, .items.0.id
loop
Expand a JSON array key into repeated iterations; sets {{item}} each time
expect.contains
Assert output contains this string
expect.matches
Assert output matches this regex
expect.equals
Assert output equals this string (whitespace-trimmed)
expect.is_error
Assert whether the tool returned isError: true
ignore_errors
Continue past failures instead of halting
tags
Tag this step for --tags / --skip-tags filtering
{{env.NAME}} resolves from the process environment and works anywhere {{key}} does.
Coming from Ansible? tasks: is accepted as an alias for rondo:, and register: as an alias for echo:.
Multiple servers
A single rondo can talk to more than one server. Declare them under servers: and set server: on each step. Steps that omit server: use the first entry.
See mcp.json.example for a starter template. Ocarina also discovers servers from the Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json).
Examples
Working rondos for 50+ MCP servers are in examples/. A selection: