Skip to main content
Glama
ProxiBlue

pb-hypernode-mcp

by ProxiBlue

pb-hypernode-mcp

Client-side Claude Code plugin for Hypernode Brancher — spin up disposable, prod-clone preview environments, drive AI-assisted changes over SSH, view via your existing browser MCP.

Why

Brancher gives you a mutable, temporary copy of your production Hypernode (≤24h-old data, full toolchain, real infra — not a Docker approximation). The catch: it clones production wholesale, meaning live customer PII and real payment/API credentials come along by default, and the node gets a public URL. This plugin closes that gap — every node it creates is anonymized and sandboxed automatically, before it's ever reported ready, so "let the client's AI poke at a real prod clone" doesn't also mean "expose real customer data on the internet."

Related MCP server: DDEV MCP

Setup

Three steps: install the plugin, tell it your Hypernode token, restart Claude Code.

1. Install the plugin

Type this directly into Claude Code (no terminal needed):

/plugin marketplace add ProxiBlue/pb-hypernode-mcp
/plugin install pb-hypernode-mcp@pb-hypernode-mcp

Claude Code fetches everything straight from GitHub — no downloading, no separate server to run, nothing to clone by hand.

(If you'd rather run it from a terminal instead, the same commands work as claude plugin marketplace add ... / claude plugin install ....)

2. Add your Hypernode API token

This plugin needs your Hypernode API token to talk to your Hypernode account on your behalf. It never gets stored anywhere by the plugin — you set it as an environment variable, the same way you'd set any password-like value.

Find your token in your Hypernode's Control Panel, then in your terminal (before opening Claude Code):

export HYPERNODE_API_TOKEN="your-token-here"

Optional but recommended — restrict which Hypernode apps this plugin is allowed to touch, so a typo can never hit the wrong site:

export HYPERNODE_APP_ALLOWLIST="myapp"

(Comma-separate multiple app names, e.g. "myapp,myapp2", if you manage more than one.)

Tip: add both lines to your shell's startup file (~/.zshrc or ~/.bashrc) so you don't have to re-type them every time.

3. Restart Claude Code

Close and reopen Claude Code so it picks up the token and connects to the plugin. You're ready to go.

Quick start

Just ask, in plain English:

"Spin up a Brancher preview for myapp so I can show the client the new category page layout."

Claude creates the node, waits for it to come online, sanitizes it (see Safety guardrails), and reports back:

node_name:     myapp-eph482913
access_url:    https://myapp-eph482913.hypernode.io/
minutes_remaining: 387

From there, ask it to make a change and show you the result, or just say "clean up any leftover preview nodes" when you're done — Brancher bills by the minute whether or not anyone's looking at it.

What's in the plugin

skills/
├── brancher-spinup/      create a sanitized preview node, report access details
├── brancher-preview/     full loop: spin up -> change -> build -> screenshot
└── brancher-cleanup/     list/flag/delete leftover nodes
src/pb_hypernode_mcp/     the MCP server (6 tools) — see MCP tools below
tests/                    automated test suite

Requirements

  • A Hypernode account on a Falcons plan, with an API token from the Control Panel (Brancher is a Falcons-only feature).

  • The SSH key you already use to reach your Hypernode — nothing extra to set up, Brancher preview nodes inherit access automatically.

  • Python 3.11+ and uv installed on the machine running Claude Code (Claude Code plugins are just code — this is the runtime they need).

MCP tools

All 6 tools are registered on the pb-hypernode-mcp server (src/pb_hypernode_mcp/server.py). brancher_exec and brancher_put shell out to the system ssh/rsync binaries using your already-configured local SSH agent/key — this plugin never holds or stores key material itself.

Tool

Purpose

Key arguments

brancher_create

The sole node-creation tool: enforces a mandatory label, the app allowlist, and Falcons-plan eligibility, then wraps create -> wait-until-SSH-reachable -> run mandatory sanitization -> report ready as one non-bypassable call. There is no separate "raw create" tool — it is structurally impossible to create a Brancher node through this plugin without sanitization running first. Never returns an access_url for a node that has not finished sanitizing. Raises NodeUnreachableTimeoutError if the node never becomes SSH-reachable within 300s, or SanitizationFailedError (access URL withheld) if a sanitization command fails partway through.

appname (str), labels (list[str], required, at least one), clear_services (list[str], optional, defaults to ["cron"])

brancher_list

List active Brancher nodes for appname. Returns each node's name, host, and minutes (wall-clock uptime since creation, not idle-aware). Rejects any appname not on the allowlist.

appname (str)

brancher_delete

Delete a Brancher node. Gated behind a confirm=True re-call: the first call (default confirm=False) looks up and returns the target node's details plus a confirmation prompt without deleting anything; only a second call with confirm=True issues the actual DELETE. Validates the node name against the -eph<id> pattern first.

node_name (str, <appname>-eph<id>), confirm (bool, default False)

brancher_ssh_info

Return SSH connection details (host, user, port) for a node, without opening a connection itself. Raises NodeNotReadyError if the node has no IP assigned yet.

node_name (str)

brancher_exec

Run a shell command on a Brancher node over SSH (shells out to the system ssh binary). The single safety-critical chokepoint of the "change-it" layer: refuses any node_name that doesn't match the -eph<id> pattern, before spawning any subprocess — structurally impossible to point this tool at a production host. Returns stdout/stderr/exit_code; raises SshConnectionError on ssh's own exit code 255, SshCommandTimeoutError on timeout.

node_name (str), command (str), timeout (float, default 30s)

brancher_put

Sync a local file/directory to a Brancher node via rsync -az --protect-args over SSH. Same -eph-only guard and local-SSH-agent connection model as brancher_exec. Raises SyncError on non-zero rsync exit.

node_name (str), local_path (str), remote_path (str), port (int, default 22)

Skills

  • brancher-spinup — spin up a disposable Brancher preview node cloned from production, with mandatory automatic sanitization, and report its access URL. Use when a client asks to preview a change on a real prod-clone environment before it ships. Wraps the single brancher_create tool call — never reproduces the create/wait/sanitize sequence by hand.

  • brancher-preview — the full loop: spin up a node (via the brancher-spinup skill), apply a code change (push a local diff with brancher_put, or edit in place with brancher_exec), run only the Magento build commands the change actually needs (decide_build_commands() in src/pb_hypernode_mcp/preview_logic.py), view the result through whatever browser MCP tool is already in the session, then explicitly remind the user the node is still billing Brancher minutes. Use when a client wants an end-to-end look at a change on a disposable environment. Never deletes the node itself.

  • brancher-cleanup — list active nodes with brancher_list, flag any at or past an age threshold (minutes >= threshold_minutes, default 240 minutes / 4 hours, via flag_stale_nodes() in src/pb_hypernode_mcp/cleanup_logic.py), and delete flagged nodes (single or bulk) only after explicit user confirmation. Use when a client wants to check for or remove leftover Brancher nodes to stop minute accrual. Brancher bills wall-clock minutes from creation regardless of whether anyone is actively using the node.

Safety guardrails

  • Mandatory sanitization — cannot be disabled. Every brancher_create call runs the full sanitization sequence (src/pb_hypernode_mcp/sanitization/) against the node before it is ever reported "ready" or returns an access_url. There is no flag, config option, or bypass path — brancher_create is the ONLY node-creation MCP tool this plugin registers (there is no separate, unsanitized create tool), and spinup_sanitized_brancher_node() in src/pb_hypernode_mcp/tools/brancher_spinup_flow.py (the function behind it) structurally cannot return an access URL without every sanitization command having exited 0 first. If a sanitization command fails partway through, the tool raises SanitizationFailedError and deliberately withholds the access URL — the exception does not even carry it, so a catching caller has no way to accidentally surface it.

    The sequence (config-driven, Magento-shaped default in sanitization/config.py::DEFAULT_MAGENTO_SANITIZATION_CONFIG):

    1. PII anonymizationUPDATE statements (via n98-magerun2 db:query) against customer_entity, customer_address_entity, sales_order, sales_order_address (names/emails/phones/street replaced with anonymized placeholders), and stored card data (quote_payment, sales_order_payment: cc_number_enc, cc_cid_enc, cc_owner, additional_data nulled).

    2. Admin credential resetadmin_user username/email reset to placeholder values and password overwritten with a hash that is deliberately invalid for any real password (locks form-based login until an operator sets a real one via bin/magento admin:user:create).

    3. Payment gateway sandbox-forcingbin/magento config:set forces e.g. payment/braintree/environment=sandbox, paypal/general/sandbox_flag=1.

    4. Third-party API key stubbingbin/magento config:set replaces live keys (e.g. ShipperHQ, AvaTax) with dummy sandbox values so no preview node can make a real charge or a real third-party API call under production credentials.

    A real client app's exact table shape and installed integrations should override/extend SanitizationConfig, not rely on the shipped default in production — it exists as a safe-by-default starting point, not a promise it matches every schema.

  • App allowlist (HYPERNODE_APP_ALLOWLIST) — when set, brancher_create, brancher_list, and brancher_delete refuse any appname not on the list.

  • Falcons-plan eligibility checkbrancher_create rejects apps not on a Brancher-eligible plan before creating anything.

  • -eph-only guardbrancher_exec and brancher_put validate node_name against the <appname>-eph<id> pattern (tools/_guards.py::validate_eph_node_name, .fullmatch() — no partial-match or trailing-character gaps) before opening any SSH connection or subprocess. It is structurally impossible to point either tool at a production hostname.

  • Confirm-before-deletebrancher_delete never deletes on the first call. It requires an explicit confirm=True re-call after showing the target node's details; a threshold being configured or a node being flagged as stale is never itself confirmation.

  • Mandatory labelbrancher_create rejects calls with no labels, so every node is traceable to a reason/ticket.

  • Token handlingHYPERNODE_API_TOKEN is read from the environment only and is never written to disk or plugin config by this plugin.

  • brancher_put argument hardeningremote_path/local_path are shell-quoted and rsync runs with --protect-args, so the remote host's shell never re-parses a path argument, closing off metacharacter injection via a crafted path.

This design was checked by a 3-specialist security review before release (static analysis, adversarial testing, defensive audit). It caught a real critical gap in an earlier draft — the sanitized flow had been built as a second tool alongside a still-exposed raw, unsanitized create path — which is why "one creation tool, no exceptions" is called out so insistently above. Found a security issue? Open an issue rather than a PR with the exploit details.

Limitations (v1)

  • Magento/Mage-OS only. The sanitization layer's default config (DEFAULT_MAGENTO_SANITIZATION_CONFIG) and the brancher-preview skill's build-command decision logic (decide_build_commands()) are both Magento-shaped. This is not a generic multi-platform tool — WooCommerce, Shopware, Laravel, and other Hypernode-hosted platforms are out of scope for v1. A non-Magento app would need a hand-written SanitizationConfig at minimum, and the preview skill's build sequence would not apply.

  • No MCP-managed SSH keys. brancher_exec/brancher_put shell out to the system ssh/rsync binaries and rely entirely on your own local SSH agent/key already having access to Brancher nodes (which inherit access automatically via Brancher's full-filesystem clone from production). This plugin never provisions, stores, or transmits key material.

  • stdio transport only. No remote/HTTP MCP transport in v1 — this is a local Claude Code plugin, run per-developer against their own HYPERNODE_API_TOKEN. There is no hosted/managed version of this MCP. Token and SSH access are both entirely client-owned.

  • REST API only. No Hypernode Deploy (deploy.php) integration in v1.

  • Wall-clock, not idle-aware, minute accounting. brancher-cleanup's staleness check uses minutes as reported by the Hypernode API (uptime since creation) — it cannot tell an idle node from an actively used one.

  • Unverified API response shapes. brancher_list's expected response shape ({"nodes": [{"name", "host", "minutes"}, ...]}) and brancher_create's plan/minutes field names (plan_type, brancher_minutes_remaining) are documented assumptions, not yet confirmed against the live Hypernode API contract — see the module docstrings in src/pb_hypernode_mcp/tools/brancher_list.py and src/pb_hypernode_mcp/tools/brancher_create.py if API responses don't match at runtime. Run a real create -> brancher_exec whoami smoke test against a Falcons-plan account before pointing this at a client.

  • Playwright test offloading not yet built. Running the functional test suite against a Brancher node instead of local/CI is tracked separately — see ProxiBlue/pb-hypernode-mcp#1 or the originating design ticket.

Development

git clone https://github.com/ProxiBlue/pb-hypernode-mcp
cd pb-hypernode-mcp
uv sync --extra dev

uv run pytest -v                     # 84 tests, mocked HTTP/SSH — no real Hypernode account touched
uv run ruff check src tests          # lint
uv run ruff format --check src tests # format check
uv run pyright src tests             # type check

No integration tests run automatically against a real Hypernode account. If you're changing tools/brancher_exec.py or the reachability-polling logic in tools/brancher_spinup_flow.py, do a manual smoke test against a real Falcons-plan node before merging — mocks can't catch a wrong SSH-user assumption or a shape mismatch in the real API response.

To install your own clone for local development instead of the published version, point Claude Code at the folder directly:

claude plugin marketplace add pb-hypernode-mcp /path/to/your/clone
claude plugin install pb-hypernode-mcp@pb-hypernode-mcp

After editing skills or server code, run claude plugin update pb-hypernode-mcp@pb-hypernode-mcp to pick up the change without re-adding the marketplace.

If the plugin doesn't show up after installing, check: claude plugin list shows pb-hypernode-mcp as enabled; a fresh Claude Code session lists the brancher_* tools and the three brancher-* skills; HYPERNODE_API_TOKEN is set in the same shell you launched Claude Code from.

License

Apache-2.0. See LICENSE and NOTICE for third-party dependency/service attribution (Hypernode Brancher API, system ssh/rsync, MCP Python SDK).

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • -
    license
    -
    quality
    -
    maintenance
    Enables AI assistants to automatically analyze GitHub repositories and set up development environments by detecting tech stacks, installing dependencies, and verifying project builds. Provides safe tools for repository cloning, file system operations, package installation, and build verification through an allowlisted command system.
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI assistants to automate DDEV development environments, including project management, database operations, and executing commands for various CMS frameworks.
    14
    49
    13
    GPL 2.0
  • F
    license
    -
    quality
    D
    maintenance
    Provisions Docker-based development environments on demand, allowing AI agents to create, manage, and inspect containerized dev environments without manual setup.

View all related MCP servers

Related MCP Connectors

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Build, validate, and deploy multi-agent AI solutions from any AI environment.

  • Your AI builds, deploys, and runs full-stack apps on a hosted workspace created at first sign-in.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ProxiBlue/pb-hypernode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server