zuar-portal-mcp: Command for Claude Code

.claude/commands/portal-setup.md

portal-setup is a command for Claude Code from patrickdeanfox/zuar-portal-mcp. It costs 18 tokens per session (790 once invoked), scanned A, original, MIT.

A first-time setup command for connecting a project folder to a Zuar Portal, a service for working with business data. It checks the connection, saves project settings, and records what the user, business, portal, and data are about.

In plain words
What is it for?
Use it when preparing a folder for work against a Zuar Portal, confirming an existing connection, or reconnecting and documenting the project context.
Why use it?
It avoids repeating connection checks and project-alignment questions across later work. It also helps distinguish an unconfigured folder from credentials that no longer work.

Command for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md.

This is patrickdeanfox/zuar-portal-mcp's own configuration. It tells Claude Code how to work on zuar-portal-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything zuar-portal-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to patrickdeanfox/zuar-portal-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/patrickdeanfox/zuar-portal-mcp/main/.claude/commands/portal-setup.md
Clone the repo
git clone --depth 1 https://github.com/patrickdeanfox/zuar-portal-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for portal-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/patrickdeanfox/zuar-portal-mcp/portal-setup/github.svg)](https://agentmods.dev/commands/patrickdeanfox/zuar-portal-mcp/portal-setup)
Your own site
<a href="https://agentmods.dev/commands/patrickdeanfox/zuar-portal-mcp/portal-setup"><img src="https://agentmods.dev/badge/commands/patrickdeanfox/zuar-portal-mcp/portal-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for portal-setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/patrickdeanfox/zuar-portal-mcp/portal-setup"><img src="https://agentmods.dev/badge/commands/patrickdeanfox/zuar-portal-mcp/portal-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 790 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.00790
Opus 5 $0.00009 $0.00395
Sonnet 5 $0.00004 $0.00158
Haiku 4.5 $0.00002 $0.00079

Measured 10d ago against content hash ab2233618687, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

portal-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/portal-setup.md · 28 lines

What it actually says

Set this project up to work against a Zuar Portal. One-time, per folder.

  1. Check current state. Call check_connection — it reports the portal, the binding state, and whether the credentials actually work. If it comes back connected, report which portal it points at and its binding (host + identity only — never print secrets), then confirm with the user whether to keep it or reconfigure. If binding is already bound and a .zuar-portal/brief.md exists, there is nothing to do — say so and stop. If it reports connected:false, its fix says whether this is an unconfigured folder (→ set it up below) or working credentials gone bad (→ reconfigure).

  2. If not configured (or the user wants to reconfigure): launch the portal-onboarding agent (via the Task tool) to:

    • collect the portal credentials and write them with configure_project to ./.zuar-portal/config.json,
    • then run the alignment Q&A — learn the user, their business, their portal, and their data — and write ./.zuar-portal/brief.md (the brief every other agent reads).

    configure_project's guided elicitation flow (the interactive flag: true = require prompts, false = headless, omit = auto) collects, in order:

    • the portal credentials (URL, API key, user ID) and a name for the portal ("Acme Production") — the name is what later wrong-portal warnings say, so it's worth setting;
    • GitHub version control (optional) — every content change mirrored to a repo you can roll back;
    • Claude for Chrome — recorded as browser.claudeInChrome. With it, the build pipeline can see a rendered block (screenshot, console) for visual debugging and a final visual sign-off, not just review code. Mention the payoff, and the one caveat: visual checks need the user signed into the portal in Chrome (the MCP's API key doesn't authenticate the browser session). It degrades gracefully when the extension isn't present;
    • the design intake — brand accent, which theme modes to support, layout density. These are rendered into ./.zuar-portal/design.md, which every block built in this folder then inherits.

    It writes four things: the gitignored config + credentials, ./.zuar-portal/design.md, and a managed block in the repo-root CLAUDE.md naming the bound portal. It also pins the folder to the portal's live identity.

  3. Confirm the binding. After onboarding returns, verify the connection is live (identity/version) and report success: which portal this folder is now bound to, that it is bound (pinned) rather than merely declared, and that the brief was written. Do not echo passwords, tokens, or any secret value at any point.

Why the binding matters. One install serves many portals, so this folder is pinned to the one it was onboarded against and re-checks the portal's identity before every write. If a write is ever refused as a wrong-portal mismatch, that is the guardrail working — never resolve it by pointing the credentials somewhere else. Re-run configure_project with overwrite=true to rebind deliberately.

No arguments. After this, /portal-build, /portal-theme, /portal-bulk, and /portal-audit are ready to use.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 28 lines · 18 tokens per session scan A ab2233618687

Subscribe to this mod's changes

portal-setup is a command published in the GitHub repository patrickdeanfox/zuar-portal-mcp (1 stars, last pushed 1mo ago), licensed MIT. It adds 18 tokens to every session and 790 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.