Scan your whole stack
Are you using hanary-mcp?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.49.0
hanary-mcp was last scanned on 24 Nov 2026 at version 0.49.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.49.0 LATEST | 24 Nov 2026 | No rules fired |
| 0.48.0 | 23 Nov 2026 | No rules fired |
| 0.47.3 | 13 Nov 2026 | No rules fired |
| 0.47.2 | 13 Nov 2026 | Not shown |
| 0.47.1 | 12 Nov 2026 | Not shown |
Findings for v0.49.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.49.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Hanary MCP Server for Claude Code & OpenCode - task management that keeps new work outside the priority list until the user decides.
Hanary MCP is an operating layer for AI coding assistants. It lets agents read, start, update, and complete work from Hanary while preserving the user's priority decisions.
The key rule is: agents may capture and organize new work, but they should not silently insert it into the active priority order. New tasks default to needs_decision, staying outside top-task, start, and complete candidates until the user explicitly chooses to prioritize them or enables saved AI priority delegation for that scope.
Use Hanary MCP when you want Claude Code, OpenCode, or Codex to work from your confirmed Hanary task structure instead of inventing its own task order.
Mental model:
needs_decision.executor_type: "ai" means user-approved execution delegation, not AI-owned priority judgment.planning_status answers when work belongs in priority; executor_type answers who can execute it.Hanary web settings store two independent switches for each authenticated user's project or personal scope: delegate priority decisions and delegate task completion criteria decisions. Both default to OFF. The connected Codex or Claude AI reads live context, makes the permitted decision itself and saves it through MCP without asking for the same approval again:
| Priority delegation | Completion criteria delegation | Result |
|---|---|---|
| OFF | OFF | Capture work; the user decides priority and task completion criteria. |
| OFF | ON | AI defines or revises task completion criteria; new work stays needs_decision. |
| ON | OFF | AI defines the comparison rubric and decides priority for new or existing unfinished tasks; task completion criteria require separate user authority. |
| ON | ON | AI decides priority and task completion criteria independently. |
The assistant reads get_priority_delegation before capture or a delegated
decision, using priority_delegated and completion_criteria_delegated separately.
The deprecated criteria_delegated field concerned the priority comparison
rubric; it never grants task completion criteria permission. Only authenticated
web settings can enable or revoke either switch. Keep existing MCP connection
configuration; there is no local mode flag. With priority delegation ON there is no
record-only exception: every captured task is placed in the turn that captures it. Personal consent never grants squad
changes; use the matching project-bound connection for squad tasks.
With priority delegation ON, the host AI reads prepare_priority_criteria and
uses save_priority_criteria when the comparison rubric is absent or changed
project goals/evidence warrant revision. The rubric answers which work comes
first; it is distinct from the standard for when a task is done. Then use
prepare_priority_placement(task_id) and finalize_priority_placement for new
or existing unfinished tasks, including already prioritized tasks. The AI chooses
a rank within the same parent while preserving all other siblings' relative
order, and records a concrete reason. Prepare placement afresh after a rubric
save changes the policy version. New tasks are first captured as needs_decision.
With completion criteria delegation ON, the host AI reads
prepare_task_completion_criteria(task_id) and judges a concrete, verifiable
completion standard from task purpose and live context. It directly saves or
revises that standard with save_task_completion_criteria, passing the task ID,
prepared policy version and snapshot, completion_criteria (at most 2000
characters), reason and retained idempotency key. The result sets
completion_criteria_source="explicit". Reuse suitable existing criteria; do
not weaken them just to claim completion. Missing essential intent still needs
clarification. Defining what counts as done does not grant authority to execute
or mark work done, change its executor or track time; existing completion evidence
and review requirements remain in force.
Creation, comparison-rubric saving, priority placement and task completion
criteria saving are separate outcomes. priority_workflow can report
pending_ai_criteria or pending_ai_priority; independent
completion_criteria_workflow can report pending_ai_completion_criteria.
Only criteria_saved=true, planning_status="prioritized" or
completion_criteria_saved=true, each with its receipt, confirms the relevant
save. Failed continuation remains resumable from the captured task ID.
The server checks live authority and context atomically at saving. A stale snapshot requires fresh preparation and a new decision/key. Revocation stops future decisions without undoing saved order or criteria. Never bypass refusal through ordinary update, completion or priority tools. After response loss, keep all original arguments and the key; retry only the identical request to retrieve its receipt, including after revocation while access remains valid. The bridge never retries automatically, invokes a model or continues after the host stops. Separate explicit one-off user instructions still use existing task tools.
Hanary's REST API remains the canonical product API. Use it for first-party apps, mobile or desktop clients, custom integrations, and any workflow where you control the application code that calls Hanary.
MCP is the AI-assistant integration surface on top of that API. Use it when you want tools like Claude Code, OpenCode, or Codex to discover Hanary actions automatically through tools/list, call them through tools/call, and receive the priority-boundary guidance directly in tool schemas and server instructions.
In practice:
hanary-mcp is the installable stdio bridge plus commands, skills, and agent guidance for local coding assistants.MCP is not required to perform Hanary operations, but it avoids rebuilding the same tool wrapper for every AI host and keeps the assistant's behavior aligned with Hanary's user-owned priority model.
/hanary-status, /hanary-start, /hanary-done# Using uvx (recommended)
uvx --from hanary-mcp hanary-mcp --squad my-project
# Or install globally
uv tool install hanary-mcp
Use project-scoped setup when different repositories should bind to different Hanary squads. Run this from the project root:
uvx --from hanary-mcp hanary-mcp init --squad your-squad-slug .
This creates project-local integration files:
.mcp.json for Claude Codeopencode.json for OpenCode.codex/config.toml for OpenAI CodexRepeat the command in each project with that project's squad slug. This keeps AI assistants working inside the right Hanary squad without sharing one global --squad value across all projects.
The value after --squad is the squad slug, not the display name. For example,
if Hanary shows FutureGate (futuregate), use futuregate:
uvx --from hanary-mcp hanary-mcp init --squad futuregate .
After setup, verify the local binding:
uvx --from hanary-mcp hanary-mcp doctor --squad your-squad-slug
--squad can appear before or after doctor, init, or sync. For doctor,
the same applies to --api-url and --token: explicit CLI values take precedence
over environment defaults. If an option is explicitly given on both sides of
the command, the later value wins.
Doctor prints the requested scope and checks project files against that scope;
it does not infer the requested scope from those files. It reports project
configuration and remote diagnostics separately. A successful squad-list lookup
is not a membership check: Requested squad access check verifies access to the
named squad, or explicitly shows SKIPPED in personal mode. The tool contract
check compares the advertised tool catalog; it does not execute every tool or
verify the MCP process already running in your assistant.
The printed package version belongs to the newly launched CLI. Doctor compares
the configured API's /mcp catalog with that CLI's generated bridge catalog;
it does not inspect an external app/session's exposed tools or an existing host
process. --version has the same process boundary. A successful doctor result
does not establish that an external app exposes the execution tools.
An actual project scope mismatch still exits with status 1, even when remote
diagnostics succeed. Review the listed configuration arguments or rerun doctor
with the intended scope; doctor never rewrites project files. Missing project
files and a client without tools/list diagnostic support are reported as
skipped, not failed; a skipped catalog leaves the remote summary INCOMPLETE
rather than OK. A catalog request that fails still causes a failed result.
Inside an AI assistant, use get_current_scope when the active project or squad is unclear before creating, starting, completing, or reordering tasks.
In project-scoped squad mode, the MCP server exposes the squad as the working boundary: use get_top_task for "what should I do next" inside that project. get_overall_top_task is intentionally not exposed in squad mode; use a separate personal/global Hanary MCP only when the user explicitly asks to leave the project scope.
Use hanary-mcp sync after upgrading hanary-mcp when an existing project should
receive updated commands, skills, agents, or generated MCP config.
Start with a status check:
uvx --from hanary-mcp hanary-mcp sync --squad your-squad-slug .
Review diffs before writing:
uvx --from hanary-mcp hanary-mcp sync --squad your-squad-slug --dry-run .
Write only safe changes:
uvx --from hanary-mcp hanary-mcp sync --squad your-squad-slug --write .
sync --write creates missing files and updates files that still match the last
managed template hash. It does not overwrite user-modified files. Local config
files such as .mcp.json, opencode.json, and .codex/config.toml are marked
for review instead of being overwritten, because they may contain squad slugs,
tokens, uv cache settings, or other project-specific choices.
Use init --force only when you intentionally want to overwrite existing
generated files. It can replace local edits in .codex/config.toml,
.mcp.json, and opencode.json; after using it, re-check any OS-specific
command, token, and cache settings.
The sync manifest is stored in .hanary-mcp-sync.json. It records template
hashes for files managed by hanary-mcp, so future upgrades can distinguish
safe generated-file updates from user edits. AI guidance changes are listed
separately in sync output because they affect assistant judgment boundaries.
export HANARY_API_TOKEN='your-token-here'
On Windows PowerShell, set a persistent user environment variable:
[Environment]::SetEnvironmentVariable("HANARY_API_TOKEN", "your-token-here", "User")
Or set it only for the current PowerShell session:
$env:HANARY_API_TOKEN = "your-token-here"
Restart your AI coding assistant after changing environment variables. Existing
Codex, Claude Code, or OpenCode processes do not inherit newly saved user
environment variables; if they start the MCP server without the token, you may
see an initialize/handshake failure such as connection closed.
hanary-mcp init above, or add this to your project's .mcp.json manually:{
"mcpServers": {
"hanary": {
"command": "uvx",
"args": ["--refresh-package", "hanary-mcp", "--from", "hanary-mcp", "hanary-mcp", "--squad", "your-squad-slug"]
}
}
}
Global CLI registration is useful only when one Hanary squad should be used everywhere:
claude mcp add hanary -- uvx --refresh-package hanary-mcp --from hanary-mcp hanary-mcp --squad your-squad-slug
Do not use global CLI registration with --squad when you need project-by-project squad separation. In that case, keep the --squad binding in each project's .mcp.json or .codex/config.toml instead.
hanary-mcp init generates .codex/config.toml for the current operating
system. On macOS/Linux it uses zsh -lc so shell profile environment variables
can load. On native Windows it runs uvx directly because zsh is not available
by default:
[mcp_servers.hanary]
command = "uvx"
args = ["--refresh-package", "hanary-mcp", "--from", "hanary-mcp", "hanary-mcp", "--squad", "your-squad-slug"]
[mcp_servers.hanary.env]
UV_CACHE_DIR = ".uv-cache"
Keep UV_CACHE_DIR in the project root, such as .uv-cache, so Codex sandboxed
runs can write to it. If you edit the Codex config manually on Windows, avoid
copying a macOS/Linux zsh -lc command into that file.
Set these in your shell profile (.bashrc, .zshrc, etc.) or OS user
environment:
| Variable | Required | Description |
|---|---|---|
HANARY_API_TOKEN |
Yes | Your Hanary API token |
HANARY_API_URL |
No | API URL (default: https://hanary.org) |
create_task and update_task accept an optional idempotency_key. Generate and
retain a nonsecret unique key before sending one intended write. If its response
is lost, call get_mutation_result(idempotency_key="the-original-key") in the
same scope, or resend the original tool with exactly the same key and arguments.
The bridge performs no automatic write retries.
An applied receipt confirms the write committed. A replay returns the same task
ID and its current state, preserving later edits. not_recorded does not prove
failure: the request might still be running. Different arguments with a used key
are rejected. Never generate a new key merely to retry. Deleted, moved, or
inaccessible tasks are not recreated or exposed by recovery.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.