eco-mcp-app
An MCP server that provides live status updates for the Eco via Sirens game server, displaying meteor countdowns, player statistics, and world information directly within Claude Desktop. It also serves as a minimal reference implementation for building MCP Apps in Python without complex tooling.
Ask AI about eco-mcp-app
Powered by Claude ยท Grounded in docs
I know everything about eco-mcp-app. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
Banner: Steam header for Eco by Strange Loop Games. Used here for attribution; not my artwork.
eco-mcp-app
An inline Claude Desktop widget for any public Eco game server 1 โ point it at the "Eco via Sirens" 2 server (the default) or any other Eco server by IP or hostname. Ask Claude "what's the Eco server doing?" and you get a live card back: meteor countdown, online/total players, world size, laws, economy, Discord CTA, a link to Eco on Steam. No screenshots, no tab-switching. Cards you don't have data for just aren't rendered.
It's also a tech demo โ a minimal, hand-rolled MCP Apps implementation 3 without a bundler or React, so the whole iframe is one 300-line HTML file. Useful as a reference for anyone else building an MCP App in Python rather than the default TypeScript/ext-apps 4 stack.
Live at eco-mcp.coilysiren.me/preview โ the same HTML Claude Desktop renders inline via the MCP Apps spec.
What it renders
โโ Eco via Sirens โโโโโโโโโโโ Established ยท day 2 ยท HighCollaboration ยท Slow โ โ online โโ
โ โ
โ DAYS UNTIL METEOR โ โโโโโโโ โ
โ 57 days โ 57 โ (cycle ring, โ
โ Server running for 2 days ยท 5% through the cycle โ leftโ fills as days โ
โ โโโโโโโ tick down) โ
โ โ
โ โ Players online โ โ World โ โ Cycle progress โ โ Economy & culture โ โ
โ โ 7 / 67 โ โ 0.52 kmยฒ โ โ day 2 โ โ 473 trades, โ โ
โ โ peak 38 โ โ 96k plants โ โ 57d until โ โ โ 0 contracts โ โ
โ โ โโโโโโโโโโโโโโ โ โ 0 animals โ โ โโโโโโโโโโโโโโโ โ โ 171.0 culture โ โ
โ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโ โ
โ โ
โ [v 0.13.0.2] [English] [open] [admin online] Fetched 4:12 PM ยท [Join Discord]โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ยท ยท ยท . ยท . . ยท
. ยท . * . ยท . (animated starfield, twinkling)
* . * ยท
โ (meteor, floats)
โ
โ
How it works
The server (src/eco_mcp_app/server.py) exposes one tool,
get_eco_server_status, which hits http://eco.coilysiren.me:3001/info (the
public /info endpoint Eco 1 servers expose by default), redacts player
names, and returns two content blocks: a markdown fallback for text-only
hosts, and a JSON payload for the iframe. The tool's _meta.ui.resourceUri
points at ui://eco/status.html, which is the iframe HTML registered as a
resource.
The iframe (src/eco_mcp_app/ui/eco.html) is plain HTML/CSS/JS โ no build
step, no bundler, no React. It hand-rolls the MCP Apps initialization
handshake per the spec 5:
- Iframe โ host:
ui/initialize(request, withprotocolVersion: 2026-01-26) - Host โ iframe: initialize result
- Iframe โ host:
ui/notifications/initialized(notification) - Host โ iframe:
ui/notifications/tool-resultwhenever a matching tool fires
The handshake is ~30 lines. The ext-apps SDK 4 does more (auto-resize, capability negotiation), but for a read-only dashboard we don't need any of it โ and writing it out makes the spec readable.
See also
This repo sits next to a small Eco ecosystem: eco-spec-tracker 6 is the
direct sibling read-only dashboard (same FastAPI + Jinja2 + HTMX stack, paired
with a C# mod that publishes per-player job specs); eco-cycle-prep 7 runs
per-cycle setup (worldgen, Discord announcements, mod sync); eco-mods-public 8
is where the gameplay mods live. The deploy pattern (Dockerfile, Makefile,
k8s manifest, GH Actions) is cloned from coilysiren/backend 9, which is
the canonical template for the homelab k3s + GHCR + Tailscale + cert-manager
stack. Eco itself is by Strange Loop Games;
canonical references: ModKit 10, modding docs 11, Eco wiki modding page 12,
the Discord bridge plugin 13, and mod catalog 14.
Available tools
-
get_eco_server_statusโ live status of any public Eco server. Returns three content blocks: a markdown summary (for text-only hosts), a JSON payload with every field the UI consumes, and an HTMX fragment that Claude Desktop swaps into the iframe via the MCP Apps protocol.- Optional argument:
server(string) โ a bare host (eco.example.com),host:port(10.0.0.5:4001), or a full/infoURL. Omit to use the server configured via theECO_INFO_URLenv var (defaults to Kai's server,http://eco.coilysiren.me:3001/info).
- Optional argument:
-
list_public_eco_serversโ returns the curated set of public Eco servers bundled with this MCP (label, host:port, notes). Feed anyhostback intoget_eco_server_statusas theserverargument. Useful for LLMs that want to discover what's queryable without calling the tool blind. No arguments.
Installation
The fastest path is the hosted instance โ no install, no Python, just point your client at a URL. For offline work or custom Eco server defaults, pick one of the stdio options.
Option 1 โ Hosted HTTP (no install)
A public instance is live at https://eco-mcp.coilysiren.me/mcp/, speaking
MCP over Streamable-HTTP (stateless, CORS open). Any client that can connect
to a remote MCP server works. Supports get_eco_server_status against any
public Eco server you pass via the server argument โ you don't need to run
your own instance to query a different server.
Option 2 โ Stdio via uvx (recommended for local use)
uvx fetches + runs the package
in a one-shot venv. No install step, no Python version management.
uvx --from git+https://github.com/coilysiren/eco-mcp-app eco-mcp-app
Option 3 โ Stdio via local checkout
git clone https://github.com/coilysiren/eco-mcp-app
cd eco-mcp-app
uv sync
uv run eco-mcp-app
Option 4 โ Docker (HTTP transport)
The published image runs the Streamable-HTTP transport on port 4000:
docker run --rm -p 4000:4000 \
ghcr.io/coilysiren/eco-mcp-app/coilysiren-eco-mcp-app:latest
# MCP endpoint at http://localhost:4000/mcp/
Configuration
Every MCP client takes a slightly different config shape. Pick your client
below. The ECO_INFO_URL env var is always optional โ omit it to use Kai's
server as the default.
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json on macOS,
%APPDATA%\Claude\claude_desktop_config.json on Windows. Fully quit + relaunch
Claude Desktop after editing โ it only loads MCPs at startup.
Stdio via uvx (recommended)
{
"mcpServers": {
"eco-mcp-app": {
"command": "uvx",
"args": ["--from", "git+https://github.com/coilysiren/eco-mcp-app", "eco-mcp-app"]
}
}
}
Stdio via local checkout
{
"mcpServers": {
"eco-mcp-app": {
"command": "uv",
"args": ["run", "--directory", "/path/to/eco-mcp-app", "eco-mcp-app"]
}
}
}
Or run python scripts/install-desktop-config.py from a local checkout to
splice this block in automatically.
Remote HTTP (hosted)
Claude Desktop supports remote MCP servers via the Settings โ Connectors
UI โ add https://eco-mcp.coilysiren.me/mcp/ there. The visual MCP Apps card
only renders inside Claude Desktop's chat UI for remote servers when the host
advertises the io.modelcontextprotocol/ui extension capability.
Claude Code
Project-scoped .mcp.json at the repo root (picked up automatically), or
merge into your user-wide MCP config:
Stdio via uvx
{
"mcpServers": {
"eco-mcp-app": {
"command": "uvx",
"args": ["--from", "git+https://github.com/coilysiren/eco-mcp-app", "eco-mcp-app"]
}
}
}
Remote HTTP (hosted)
claude mcp add --transport http eco-mcp-app https://eco-mcp.coilysiren.me/mcp/
Cursor / Windsurf / Continue / Cline
These all read an mcpServers map โ same shape as Claude Desktop. Path:
- Cursor โ
~/.cursor/mcp.json(user) or.cursor/mcp.json(project) - Windsurf โ
~/.codeium/windsurf/mcp_config.json - Continue โ
~/.continue/config.jsonunderexperimental.modelContextProtocolServers - Cline โ VS Code settings,
cline.mcpServers
{
"mcpServers": {
"eco-mcp-app": {
"command": "uvx",
"args": ["--from", "git+https://github.com/coilysiren/eco-mcp-app", "eco-mcp-app"]
}
}
}
Zed
~/.config/zed/settings.json:
{
"context_servers": {
"eco-mcp-app": {
"command": {
"path": "uvx",
"args": ["--from", "git+https://github.com/coilysiren/eco-mcp-app", "eco-mcp-app"]
}
}
}
}
Generic (pinning a specific Eco server as default)
Set ECO_INFO_URL to point the default query at your own Eco server:
{
"mcpServers": {
"eco-mcp-app": {
"command": "uvx",
"args": ["--from", "git+https://github.com/coilysiren/eco-mcp-app", "eco-mcp-app"],
"env": {
"ECO_INFO_URL": "http://my-eco-server.example.com:3001/info"
}
}
}
}
Callers can still pass a server argument per-tool-call to override.
Try it
In a fresh chat, after any install method:
Use eco-mcp-app to show me the Eco server status.
You should get the meteor card inline in Claude Desktop, or a markdown summary everywhere else.
Try it on other public Eco servers
The tool and the /preview dev route both accept a server argument โ host,
host:port, or a full /info URL โ so the same card UI works against any
public Eco server. Useful for eyeballing rendering against real-world titles
(TextMeshPro color markup, missing cards, stale meteor cycles, etc.). Server
list is from eco-servers.org.
| Server | Live | Local |
|---|---|---|
| Eco via Sirens (default, this repo) | preview | preview |
| AWLGaming โ hex + named color mix, meteor imminent | preview | preview |
GreenLeaf Prime โ <#RRGGBB> shorthand rainbow | preview | preview |
| GreenLeaf Vanilla โ same host, vanilla ruleset | preview | preview |
The Dao Kingdom โ short-form hex + explicit </color> closes | preview | preview |
| Peaceful Utopia โ no markup, meteor already passed | preview | preview |
Local variants expect inv http (or the project's SessionStart hook) to be
running on :4000. /info is served on game_port + 1, so :3000 game
servers advertise /info on :3001 โ the links above use the /info port.
Deploy (homelab)
Target: eco-mcp.coilysiren.me on the k3s cluster, following the template in
coilysiren/backend 9 (same Dockerfile/Makefile/deploy shape). The server
speaks MCP over Streamable-HTTP at /mcp/ via src/eco_mcp_app/http_app.py
(Starlette + StreamableHTTPSessionManager in stateless mode). Health probe
at /healthz.
Pipeline: .github/workflows/build-and-publish.yml builds the image and
pushes to ghcr.io/coilysiren/eco-mcp-app/... on every push to main, then a
second job uses Tailscale to reach the cluster and applies deploy/main.yml
via make .deploy. The manifest is self-bootstrapping โ the Namespace lives
at the top of deploy/main.yml so the first deploy creates it alongside the
Deployment / Service / Ingress in a single kubectl apply. No manual cluster
prep needed.
After the first git push publishes the image to GHCR, make the package
public at
https://github.com/users/coilysiren/packages/container/eco-mcp-app%2Fcoilysiren-eco-mcp-app/settings
(Package settings โ Change visibility โ Public). Packages inherit from the
repo but only on first push; they default to private. With a public image, no
imagePullSecrets is needed. If you flip the package back to private later,
run make deploy-secrets-docker-repo once (pulls the GHCR PAT from
aws ssm /github/pat without reading it into your shell) and add the pull-secret
line back to deploy/main.yml.
Runtime has no secrets โ the /info endpoint of the upstream Eco server is
public, and the tool accepts the target server as an argument so a single
deployment can query any public Eco server.
Smoke test
The whole MCP โ iframe โ render flow is testable via stdio without Claude:
inv smoke
Look for: _meta.ui.resourceUri in both forms on id=2, a real-sized HTML
resource on id=3, and a JSON payload with "view":"eco_status" on id=4.
Dev harness (iterate on the iframe without restarting Claude)
static/harness.html is a minimal HTML page that mimics Claude Desktop's MCP Apps
host so the iframe can be developed in a normal browser โ no โQ / relaunch
cycle per change. The harness:
- Loads
src/eco_mcp_app/ui/eco.htmlas an iframe (visibility: hidden). - Listens for
ui/initializefrom the iframe and responds with a validMcpUiInitializeResult(protocolVersion, hostInfo, hostCapabilities, hostContext). - On
ui/notifications/initialized, reveals the iframe. - Listens for
ui/notifications/size-changedand applies the reported{width, height}toiframe.style.height. This is the mechanism Claude Desktop actually uses โ not thedocumentElement.heightread that claude-ai-mcp#69 describes. - After reveal, pushes a canned
ui/notifications/tool-resultwith a mock Eco/infopayload sorender()runs.
Run it with:
inv harness
# then open http://localhost:8765/static/harness.html
The status bar at the top of the harness shows the last size-changed value
so you can see whether the iframe is telling the host to resize. If it says
"Loadingโฆ" forever, either the handshake failed or the iframe's script threw
before reaching connect() โ check DevTools console.
The harness is also usable from Claude Code's Preview panel via the
eco-harness entry in .claude/launch.json.
MCP Apps โ non-obvious things I learned building this
_meta.ui.resourceUrimust be set in both nested (ui.resourceUri) and flat (ui/resourceUri) forms โ some hosts only honor one 15.- The MIME type has to be exactly
text/html;profile=mcp-app; plaintext/htmldoes not trigger MCP Apps rendering. - With no client-side JS running the handshake, Claude Desktop correctly
leaves the iframe container at
visibility: hidden. This means a no-script test HTML is not a valid isolation โ it will look identical to a broken app 16. - Claude Desktop's sandbox iframe enforces a hardcoded CSP that ignores
_meta.ui.cspextensions 17. External image origins get blocked. If you need thumbnails, inline them server-side asdata:image/...;base64,...URIs โ those are always permitted. - Only Claude Desktop chat UI (
clientInfo.name = "claude-ai") advertises theio.modelcontextprotocol/uiextension capability. Claude Code Desktop's agent harness (clientInfo.name = "local-agent-mode-*") does not, so iframes never render there โ use its Launch preview panel (triggered by aWriteorEdittool call on a local HTML file) as the fallback inline-visualization path.
License
MIT.
References
- https://play.eco/
- https://www.coilysiren.me/
- https://modelcontextprotocol.io/docs/concepts/apps
- https://github.com/modelcontextprotocol/ext-apps
- https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx
- https://github.com/coilysiren/eco-spec-tracker
- https://github.com/coilysiren/eco-cycle-prep
- https://github.com/coilysiren/eco-mods-public
- https://github.com/coilysiren/backend
- https://github.com/StrangeLoopGames/EcoModKit
- https://docs.play.eco/
- https://wiki.play.eco/en/Modding
- https://github.com/Eco-DiscordLink/EcoDiscordPlugin
- https://mod.io/g/eco
- https://github.com/anthropics/claude-ai-mcp/issues/71
- https://github.com/anthropics/claude-ai-mcp/issues/61#issuecomment-4283640203
- https://github.com/anthropics/claude-ai-mcp/issues/40


