agentleFS
homeassistant-aihomeassistant-ai/ha-mcp/homeassistant-addon-webhook-proxy/AGENTS.md

ha-mcp / homeassistant-addon-webhook-proxy

AGENTS.md4.9k starsChanged 2 months agoMITView on GitHub

They are a hand-maintained duplicate — no codegen. The dev tree is the stable tree with every mcp_proxy token rewritten to mcp_proxy_dev (this also renames the /config/.mcp_proxy_* state files, /opt/mcp_proxy, the /api/mcp_proxy/oauth base, the HA config-entry domain, and /config/custom_components/mcp_proxy). /data/* files (webhook id, OAuth creds) are already isolated per app. CI test tests/src/unit/test_webhook_proxy_dev_isolation.py fails if any bare mcp_proxy token leaks into the dev tree. The only exception is this file (and its CLAUDE.md symlink): it is the contributor doc for…

Trending

More talk lately.about the whole repository

Dec 2025: 2 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 0 mentionsMay 2026: 2 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 9 mentionsSep 2026: 26 mentionsOct 2026: 4 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the homeassistant-ai/ha-mcp repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about homeassistant-ai/ha-mcp

The biggest 5 of 46 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 46

Talked about on GitHub, Bluesky and Hacker News (46 times).

On GitHub · 40

35 more on GitHub

On Hacker News · 1

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When the dev flavor is ready to become stable, run the Webhook Proxy — Promote Dev to Stable workflow (workflow_dispatch): it runs …

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Webhook Proxy App (add-on) (stable + dev)

What it is

A thin app that does NOT run an MCP server. It discovers a running ha-mcp server app (stable ha_mcp, then dev ha_mcp_dev), installs a custom component into HA Core, registers a webhook (/api/webhook/<id>) plus optional OAuth 2.1 views, and proxies remote MCP traffic to the server app's local port. Built locally by Supervisor from the Dockerfile (no prebuilt image) — a "release" is a version bump in config.yaml on the branch the app store points at.

Two flavors

  • Stable: dir homeassistant-addon-webhook-proxy/, slug ha_mcp_webhook_proxy, component domain mcp_proxy, boot: auto.
  • Dev: dir homeassistant-addon-webhook-proxy-dev/, slug ha_mcp_webhook_proxy_dev, component domain mcp_proxy_dev, boot: manual, stage: experimental.

They are a hand-maintained duplicate — no codegen. The dev tree is the stable tree with every mcp_proxy token rewritten to mcp_proxy_dev (this also renames the /config/.mcp_proxy_* state files, /opt/mcp_proxy, the /api/mcp_proxy/oauth base, the HA config-entry domain, and /config/custom_components/mcp_proxy). /data/* files (webhook id, OAuth creds) are already isolated per app. CI test tests/src/unit/test_webhook_proxy_dev_isolation.py fails if any bare mcp_proxy token leaks into the dev tree.

Dev-first, promote-only

A PR never edits the stable tree directly in regular operation. The webhook-proxy-stable-guard workflow blocks any PR touching homeassistant-addon-webhook-proxy/ unless it comes from a promote-webhook-proxy/* branch or carries the allow-stable-edit label for an exceptional direct repair. Every change (code and docs) lands on the dev flavor first — with the version bump webhook-proxy-dev-version-guard enforces — gets tested on the dev channel, and reaches stable through the promote workflow (see Promotion below).

The only exception is this file (and its CLAUDE.md symlink): it is the contributor doc for both flavors (the dev tree carries only a pointer stub to it), the promote transform never touches it, and the guard exempts it — edit it directly in a normal PR. The exemption is pinned to exactly these two paths in their doc shape (regular file + symlink to it); anything else at or under those names stays guarded. DOCS.md is part of the transform (token rename + flavor-banner swap) and follows the dev-first flow like code; CHANGELOG.md stays per-flavor and gets a manual entry on each promote PR.

Mutual exclusion

Both flavors install a webhook + OAuth views; the OAuth provider owns the root /authorize and /token routes, which two live integrations cannot share. (The scoped /api/mcp_proxy{,_dev}/oauth/* routes carry the domain, so those do not collide — the bare root pair is what forces the exclusion.) So only one flavor may run at a time. Each start.py checks the Supervisor /addons list on startup and refuses (logs + a self-clearing HA notification, then exits) if its sibling is started. start.py:_sibling_is_running matches the sibling by exact slug or _<base> suffix (Supervisor hash-prefixes third-party slugs).

Versioning

  • Dev: the version is BASED ON THE CURRENT STABLE version — the next stable patch with a .devN suffix (stable 2.0.2 → 2.0.3.dev1, 2.0.3.dev2, …), so dev always sorts ahead of the stable it will promote into. Bump homeassistant-addon-webhook-proxy-dev/config.yaml version AND mcp_proxy_dev/manifest.json version together (they must stay equal). The webhook-proxy-dev-version-guard workflow fails any PR that touches the dev app without an increase. Use the Webhook Proxy Dev — Bump Version workflow (workflow_dispatch, never scheduled) to do the bump and open a draft PR, or edit the two files by hand. Dev CHANGELOG entries below v2.0.3.dev1 follow an older, independent numbering.
  • Stable keeps its own version line and never inherits a .devN label; the promote workflow assigns the stable number.

Promotion (dev -> stable)

When the dev flavor is ready to become stable, run the Webhook Proxy — Promote Dev to Stable workflow (workflow_dispatch): it runs scripts/webhook_proxy_sync.py --direction promote, verifies the result with the drift guards (tests/src/unit/test_webhook_proxy_sync.py), bumps stable's own version, and opens a draft promote PR. The transform also carries DOCS.md across (component-token rename plus the flavor-banner swap; the canonical banners live in DOCS_BANNERS in the sync script, kept honest by test_docs_banners_match_canonical). AGENTS.md and CHANGELOG.md are left untouched — review them by hand on that PR (test_stable_docs_free_of_dev_identity backstops the banner swap so dev framing can never ship to stable users). What the transform does (also the manual fallback):

  1. Copy the changed dev files onto the stable dir.
  2. Reverse-rename mcp_proxy_dev -> mcp_proxy everywhere (the inverse of the dev transform): component dir mcp_proxy_dev/ -> mcp_proxy/, DOMAIN, /opt path, /config/.mcp_proxy_dev_* state files, /api/mcp_proxy_dev/oauth base, config-entry domain, and the app slug ha_mcp_webhook_proxy_dev -> ha_mcp_webhook_proxy.
  3. In start.py, the stable mutual-exclusion constants are SIBLING_SLUG_BASE = "ha_mcp_webhook_proxy_dev", MUTEX_NOTIFICATION_ID = "mcp_proxy_mutex", SIBLING_LABEL = "Webhook Proxy (Dev)" (do not copy the dev-side values).
  4. Set boot: auto, drop stage: experimental, remove the (Dev) display-name suffixes.
  5. Bump stable's own config.yaml + manifest.json version (its independent line).
  6. Rebase the dev flavor's version line onto the new stable in the SAME promote PR (next stable patch + .dev1, per the Versioning rule above — the transform's rebase_dev_version does this; only dev config.yaml + manifest.json change). Right after a promote the trees are code-identical, so no separate reset PR is needed; Reset Dev from Stable remains a manual tool after an exceptional direct stable repair.

Testing

tests/addon/test_webhook_proxy.py is parametrized over BOTH flavors — an autouse _webhook_proxy_variant fixture rebinds PROXY_ADDON_DIR/CURRENT, so every test runs once as [stable] and once as [dev]. CI runs tests/addon/, so the dev code is exercised on every PR — that is what makes it safe to develop on the dev flavor before promoting. When you add a variant-specific VALUE — a path, slug, domain, or route base — add it to the WEBHOOK_PROXY_VARIANTS table rather than hard-coding it in a test. A variant-specific CAPABILITY is the opposite: feature-detect it from the flavor's own source, the way _ha_auth_supported, _none_autoapprove_supported, and _rfc9207_iss_supported already do. The promote transform copies code but never edits this test file, so a capability recorded as a table boolean stays False for stable after the code arrives, and the promote PR then asserts the old surface against the new one. tests/src/unit/test_webhook_proxy_dev_isolation.py separately guards the rename (no bare mcp_proxy token in the dev tree) and the dev-side mutual-exclusion constants.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.