{"slug": "muru-graham-dumpleton-s-rust-python-app-server-with-mcp-for-coding-agents", "title": "Muru: Graham Dumpleton's Rust Python App Server With MCP for Coding Agents", "summary": "Graham Dumpleton, longtime maintainer of mod_wsgi, released Muru in alpha on PyPI as the packages muructl and muru, a Python application server stack pairing a Rust HTTP edge with a Python worker runtime that supports WSGI and ASGI in one deployment. Muru treats blue/green deploys, weighted canaries, A/B splits and rollbacks as traffic policies on immutable releases rather than full restarts, and its `muructl mcp serve` command exposes MCP tools so coding agents can cut a release, probe it, read stack traces and roll back. Simon Willison highlighted the project on November 21, 2026, after Dumpleton published three weeks of daily build notes; the release is at 0.1.0 pre-releases and APIs may shift.", "body_md": "**Muru is a new Python application server stack from Graham Dumpleton, the longtime maintainer of mod_wsgi.** Released in **alpha on PyPI** as **muructl** and **muru**, it pairs a **Rust HTTP edge** with a **Python worker runtime**, supports **WSGI and ASGI in one deployment**, and treats **blue/green deploys, canaries, and rollbacks** as **traffic policies** instead of full restarts. Simon Willison [highlighted the project on November 21, 2026](https://simonwillison.net/2026/Nov/21/muru/?ref=explainx) after Dumpleton published **three weeks of daily build notes** — part documentation, part diary of **AI-assisted systems programming**.\n\nIf you ship **FastAPI, Django, or Flask** and you are wiring **[coding agents](https://explainx.ai/blog/poki-open-source-iphone-gui-agent-claude-code-install-2026)** into deploy loops, Muru's **`muructl mcp serve`** path is the headline: agents get **MCP tools** to **cut a release, probe it, read stack traces, and roll back** without inventing a bespoke CI script every sprint.\n\n## TL;DR: what Muru promises\n\n| Piece | Role (per docs and README) | \n|---|---|\n| **Rust edge** | Terminates HTTP/1.1, HTTP/2, TLS; static files, uploads, compression | \n| **Controller / daemon** | Chooses releases, worker counts, routing; not on the request hot path | \n| **Python workers** | Run your app; **preload once, fork many** with import checks | \n| **Releases** | Immutable artifacts; new code runs **beside** the old release until traffic moves | \n| **muructl** | CLI for `run` ,`daemon start` ,`serve` (containers), and**MCP** | \n| **Status** | **Alpha** — 0.1.0 pre-releases; APIs may shift | \n\n## Why Dumpleton started over after mod_wsgi\n\nmod_wsgi embedded Python inside **Apache httpd** for a generation of deployments. Dumpleton's **Twenty years of mod_wsgi, and what comes next** post (November 4, 2026 in the Muru build diary linked from [Simon Willison](https://simonwillison.net/2026/Nov/21/muru/?ref=explainx)) frames the next step as **one coherent runtime** from **laptop to production**, not a chain of **nginx + gunicorn + supervisor + custom reload scripts**.\n\nMuru's [architecture page](https://muru.readthedocs.io/en/latest/explanation/architecture.html?ref=explainx) separates three concerns:\n\n1. **Edge** — client-facing protocol work in Rust.\n2. **Host and workers** — Python interpreters running your application code.\n3. **Controller** — release inventory, scaling decisions, and traffic policies.\n\nThat split matters when you compare Muru to **\"just run uvicorn behind Caddy\"**: Muru wants **release objects**, **worker groups**, and **observability hooks** to be first-class, not bolted on after the fact.\n\nLocal on-device development stack, illustrating running Muru with muructl run on a laptop before production\n\n## Deploys as traffic changes, not restarts\n\nThe feature set that will feel familiar to platform engineers — and unfamiliar to solo devs — is **immutable releases**:\n\n- A deploy **creates a new release** next to the current one.\n- **Blue/green** ,**weighted canaries** ,**A/B splits** , and**preview URLs** are**configuration changes** on the controller.\n- A release that **fails health checks never receives traffic** .\n- **Rollback** is flipping traffic back, not redeploying artifacts in a panic.\n\nThe [canary tutorial](https://muru.readthedocs.io/en/latest/tutorials/first-canary.html?ref=explainx) and **conditions** docs (PromQL-shaped expressions over Muru's own metrics) describe **gates** that decide when a canary earns more share. That is closer to **service-mesh style traffic management** than to sending `SIGHUP` to gunicorn — without requiring a mesh sidecar.\n\nFor teams already sketching **[multi-agent web apps](https://explainx.ai/blog/aws-quick-flows-multi-agent-web-app-meta-amplitude-november-2026)**, Muru offers a **self-hosted** place to practice **safe rollout discipline** before you trust agents to push container images prod-wide.\n\n## Python-aware process management\n\nMuru advertises behaviors that generic WSGI servers hand-wave:\n\n| Mechanism | What Muru claims | \n|---|---|\n| **Preload** | Import application code once; fork workers; **import check** before fork | \n| **Worker groups** | Different process pools for different mounts or apps | \n| **Timeouts** | Soft and hard request limits | \n| **Memory limits** | Per-worker caps with recycling | \n| **Scaling** | Scale from worker-reported load signals | \n| **Free-threaded Python** | Designed with **no-GIL** builds in mind (ADR 0013) | \n\nThe docs also support **handing a request between WSGI and ASGI inside a worker**, which is how a legacy WSGI stack can still pick up **WebSockets** without standing up a parallel Starlette process.\n\nIf your mental model today is **Gunicorn + Uvicorn workers + nginx**, Muru is arguing those three roles collapse into **muructl** — at the cost of adopting a **young** control plane.\n\n## No separate nginx in the happy path\n\nOn a single node, Muru wants to terminate **TLS**, serve **virtual hosts**, handle **static assets**, **compress** responses, and return **custom error pages** at the edge so Python threads spend time in your code.\n\nThat does **not** forbid **external load balancers** — the how-to guides cover **running behind a proxy** and **PROXY protocol** as future scope. It does mean Muru targets teams tired of maintaining **three config files** that must reload in the right order.\n\n## Built for coding agents: MCP on muructl\n\nThe builder-facing differentiator in November 2026 is **agent operations**:\n\n- **`muructl mcp serve`** exposes**MCP tools** that wrap muructl commands.\n- Agents can **deploy a change as a release** ,**run checks** , pull**events, logs, tracebacks, and worker stacks** , and**roll back** when a gate fails.\n- The repo ships a **skill** file teaching agents the workflow; CLI commands that report state can emit**JSON** for shell-driven agents.\n\nThat lines up with how teams already use **[Claude Code](https://explainx.ai/blog/claude-code-team-code-review-process-ai-reviewer-risk-tiers-reverts-down-40-percent-2026)** and **[MCP hosts](https://explainx.ai/blog/mozilla-webbrain-local-first-browser-agent-spotlight-november-2026)** — but aimed at **deployment** rather than **browser automation**.\n\nSimon Willison quoted Dumpleton's **AI as a lifestyle choice** post (November 11, 2026 in the same Muru diary series): the model may write a lot of code, but **judging what is not good enough yet** still sits with the maintainer — and **twenty years of mod_wsgi mistakes** are the training data for those judgments.\n\n## How to try Muru in five minutes\n\nFrom the [Getting started](https://muru.readthedocs.io/en/latest/?ref=explainx) page:\n\n```\nuv tool install muructl\nmuructl run app:application\n```\n\nOpen **[http://127.0.0.1:8080](http://127.0.0.1:8080/?ref=explainx)**. Muructl supplies the **muru** runtime package to the interpreter; your application's `pyproject.toml` does not need a `muru` dependency line.\n\nSupported platforms per docs: **Linux and macOS**, **CPython 3.11–3.15**. Production ADRs emphasize **Linux**; macOS is the comfortable dev path.\n\n**Workshops** on [Binder or GitHub Codespaces](https://muru.readthedocs.io/en/latest/workshops.html?ref=explainx) run Muru in the browser if you want a guided tour before installing locally.\n\n## Muru vs gunicorn, uvicorn, and Cloudflare Workers\n\n| Approach | Best when | Muru angle | \n|---|---|---|\n| **gunicorn + nginx** | Battle-tested, huge community | Muru collapses edge + workers + deploy policy; younger ecosystem | \n| **uvicorn/hypercorn alone** | Simple ASGI dev | Muru adds release management and Rust edge features | \n| **[Cloudflare Python Workers](https://explainx.ai/blog/cloudflare-python-workers-ga-quick-tunnels-2026)** | Global edge, no servers to patch | Muru is **self-hosted** ; you own the daemon and data path | \n| **Kubernetes + Helm** | Large org standard | Muru offers **`muructl serve`** and K8s how-tos but is not a full PaaS | \n\nNone of these are drop-in replacements: Muru asks you to learn **releases, overlays, and muructl** verbs. The payoff is **one toolchain** from **`muructl run` on a laptop** to **`muructl daemon start` under systemd**.\n\n## AI-assisted development without hiding the maintainer\n\nThe [muruhq/muru](https://github.com/muruhq/muru?ref=explainx) repository is **Apache-2.0**, hosted under **muruhq**, with **742 commits** visible when explainx.ai checked on November 22, 2026. **CONTRIBUTING.md** states contributions arrive as **requirements and issues**, not drive-by pull requests — the maintainer implements accepted work, consistent with a heavily agent-assisted workflow.\n\n**AGENTS.md** and **CLAUDE.md** in the repo signal how Dumpleton expects agents to behave in-tree. For readers evaluating **agent-written infrastructure**, Muru is a live case study: public **changelog entries**, **ADR numbers into the seventies**, and a **design specification** document set that reads like a textbook.\n\n## Risks and limits to respect in alpha\n\n| Risk | Mitigation | \n|---|---|\n| **API churn** | Pin muructl version; read CHANGELOG before upgrades | \n| **Alpha stability** | No production SLAs; run staging drills first | \n| **Operational learning curve** | Releases, overlays, and conditions are more complex than `gunicorn -w 4` | \n| **Agent-driven deploys** | Treat MCP deploy rights like CI keys; scope tokens and require human approval on production daemons | \n\nMuru does **not** solve **model security** or **prompt leakage** on its own. If agents deploy both **app code** and **inference routes**, pair Muru experiments with the checklist from [Dragos canary research](https://explainx.ai/blog/dragos-hd-moore-two-million-canary-prompts-three-provider-breaches-zdr-ignored-ai-routers-2026) and sane **[router hygiene](https://explainx.ai/blog/what-is-openrouter-enterprise-guide-2026)**.\n\n## systemd, containers, and Kubernetes paths\n\nMuru's docs draw a straight line from **`muructl run`** to **` muructl daemon start`** under **systemd** to **` muructl serve`** as **PID 1 inside a container**. ADR 0010 and ADR 0035 describe splitting **host and workers inside the image** while **daemon and edge stay outside** in some layouts — worth reading before you dockerize a Django monolith.\n\nThe Muru [how-to guides index](https://muru.readthedocs.io/en/latest/howto/index.html?ref=explainx) includes **A Kubernetes Deployment** and **overlays on a schedule** material for running releases under orchestrators: you are not re-teaching Kubernetes about blue/green; you are teaching **Muru's controller** while K8s supplies replicas and disks.\n\nFor builders comparing Muru to **[Soduwork-style agent workspaces](https://explainx.ai/blog/soduwork-self-hosted-multi-harness-agent-workspace-2026)**, Muru is narrower: **HTTP application serving**, not a full multi-harness IDE. Pair them when agents write Python APIs in Soduwork and Muru handles **how those APIs roll out**.\n\n## Observability: dashboard, toolbar, and wrapture tracing\n\nMuru ships a **server-rendered dashboard** (ADR 0011: htmx, SSE, uPlot) that **shows but never mutates** production state in every mode — a safety choice for on-call engineers who do not want a stray click to shift canary weight.\n\nIn development, the **toolbar** injects panels for **request inspection** and ties into **wrapture tracing**, Dumpleton's earlier tracing project referenced in the docs. That matters when an agent deploys a release via MCP and you need **one URL** that explains **which worker served a 500** without SSH grep.\n\nEvents and **webhooks** can fan out to your existing incident stack. None of this replaces **OpenTelemetry** everywhere, but it is more opinionated than stock gunicorn logs.\n\n## Where to read next\n\nDumpleton's daily posts (linked from Willison's roundup) walk through **HTTPS in development**, **import-once fork-many**, **canaries without a service mesh**, **Kubernetes overlays**, and **toolbar tracing** — unusually transparent for a pre-1.0 server.\n\nOfficial sources to bookmark:\n\nCoding assistant on a laptop, illustrating AI-assisted infrastructure work on the Muru server project\n\n## Related reading\n\n- [Poki: on-iPhone agent install with Claude Code](https://explainx.ai/blog/poki-open-source-iphone-gui-agent-claude-code-install-2026) — another November 2026 open tool aimed at agent workflows.\n- [Mozilla WebBrain: local-first browser agent](https://explainx.ai/blog/mozilla-webbrain-local-first-browser-agent-spotlight-november-2026) — MCP-shaped automation on the client side.\n- [AWS Quick Flows multi-agent web apps](https://explainx.ai/blog/aws-quick-flows-multi-agent-web-app-meta-amplitude-november-2026) — managed agents in production web stacks.\n- [Cloudflare Python Workers GA](https://explainx.ai/blog/cloudflare-python-workers-ga-quick-tunnels-2026) — contrasting edge-hosted Python.\n- [What is OpenRouter: enterprise router guide](https://explainx.ai/blog/what-is-openrouter-enterprise-guide-2026) — routing inference, while Muru routes HTTP to your Python app.\n\n*explainx.ai covers models, agents, and the infrastructure builders run locally. For live AI workshops, see [/workshops](https://explainx.ai/workshops).*", "url": "https://wpnews.pro/news/muru-graham-dumpleton-s-rust-python-app-server-with-mcp-for-coding-agents", "canonical_source": "https://explainx.ai/blog/muru-graham-dumpleton-rust-python-wsgi-asgi-server-mcp-agents-2026?utm_source=rss&utm_medium=feed&utm_campaign=blog", "published_at": "2026-11-22 00:00:00+00:00", "updated_at": "2026-11-22 04:42:04.800940+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "agent-protocols", "ai-tools"], "entities": ["Graham Dumpleton", "Muru", "muructl", "mod_wsgi", "Simon Willison", "PyPI", "WSGI", "ASGI"], "also_reported_by": [], "takeaway": "Muru's `muructl mcp serve` gives coding agents MCP tools to cut a release, probe it, read stack traces and roll back, while deploys become traffic-policy changes on immutable releases that never receive traffic if health checks fail.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/muru-graham-dumpleton-s-rust-python-app-server-with-mcp-for-coding-agents", "markdown": "https://wpnews.pro/news/muru-graham-dumpleton-s-rust-python-app-server-with-mcp-for-coding-agents.md", "text": "https://wpnews.pro/news/muru-graham-dumpleton-s-rust-python-app-server-with-mcp-for-coding-agents.txt", "jsonld": "https://wpnews.pro/news/muru-graham-dumpleton-s-rust-python-app-server-with-mcp-for-coding-agents.jsonld"}}