mcp-rancher: Agent for Claude Code

.claude/agents/rancher-tool-author.md

rancher-tool-author is an agent for Claude Code from rex/mcp-rancher. It costs 76 tokens per session (1,036 once invoked), scanned A, original, MIT.

A specialist coding agent for adding MCP tools to the Rancher MCP server, grouped into the Norman, Steve, Longhorn, and Fleet areas. It requires a domain and complete tool name before it starts.

In plain words
What is it for?
Use it when creating or extending a Rancher MCP tool under `tools/`, after choosing its domain and operation name.
Why use it?
It limits the working context to the relevant area and follows the repository's required templates, naming checks, tests, and catalogue updates.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md; mentions subagents.

This is rex/mcp-rancher's own configuration. It tells Claude Code how to work on mcp-rancher 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 mcp-rancher configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rex/mcp-rancher. 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/rex/mcp-rancher/main/.claude/agents/rancher-tool-author.md
Clone the repo
git clone --depth 1 https://github.com/rex/mcp-rancher

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 rancher-tool-author

README.md
[![agentmods](https://agentmods.dev/badge/agents/rex/mcp-rancher/rancher-tool-author/github.svg)](https://agentmods.dev/agents/rex/mcp-rancher/rancher-tool-author)
Your own site
<a href="https://agentmods.dev/agents/rex/mcp-rancher/rancher-tool-author"><img src="https://agentmods.dev/badge/agents/rex/mcp-rancher/rancher-tool-author/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 rancher-tool-author

Your own site · 80×15
<a href="https://agentmods.dev/agents/rex/mcp-rancher/rancher-tool-author"><img src="https://agentmods.dev/badge/agents/rex/mcp-rancher/rancher-tool-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,036 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.00076 $0.01036
Opus 5 $0.00038 $0.00518
Sonnet 5 $0.00015 $0.00207
Haiku 4.5 $0.00008 $0.00104

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

Security

Grade A, and why

rancher-tool-author 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.

.claude/agents/rancher-tool-author.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a specialist for authoring MCP tools in the rancher-mcp server. You do NOT load generic context about all four domains. You load only the domain you were asked about.

Required arguments

  • domain — one of norman, steve, longhorn, fleet
  • tool_name — the full tool name, e.g., norman_setting_describe

If either is missing or invalid, STOP and ask the invoker to re-spawn you with both arguments.

Process

  1. Load ONLY the domain's context:

    • tools/<domain>/AGENTS.md — the domain-scoped rules
    • tools/<domain>/README.md — the contract
    • tools/<domain>/_template.py — the canonical shape
    • TOOL_CATALOG.md — to check for naming collisions and status

    Do NOT load other domains. Do NOT load the root CLAUDE.md / AGENTS.md (the invoker has already done that).

  2. Verify the tool name:

    • Must match <domain>_<resource>_<operation> pattern.
    • Must not already exist in TOOL_CATALOG.md with status live or wip.
  3. Choose the resource file:

    • If tools/<domain>/<resource>.py exists, extend it.
    • Otherwise, create it by copying _template.py.
  4. Fill in the template placeholders:

    • Request/Response Pydantic models
    • The tool function (naming, logging, error handling)
    • The registration hook comment at the bottom
  5. Write the matching test:

    • tests/<domain>/test_<tool_name>.py
    • Happy path + at least one error path (typically 404 or unauthorized)
    • Use pytest + pytest-asyncio
    • Mock the domain client, not the HTTP transport
  6. Register the tool:

    • Add the import + register_tool(...) call in tools/<domain>/__init__.py
    • Use permission_mode="ask" if the operation is destructive or irreversible.
  7. Update TOOL_CATALOG.md:

    • Add or update the row for this tool.
    • Set status to wip until tests pass, then bump to live.
  8. Run the domain's test suite to verify nothing regressed:

    pytest tests/<domain>/ -x --tb=short
    

Read the full file on GitHub · 104 lines

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 · 104 lines · 76 tokens per session scan A 570bdfdf8408

Subscribe to this mod's changes

rancher-tool-author is an agent published in the GitHub repository rex/mcp-rancher (1 stars, last pushed 3d ago), licensed MIT. It adds 76 tokens to every session and 1,036 once invoked, about $0.0004 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.

Related

Other agents, from other repositories

tester

Use this agent after chunk implementation to create comprehensive test suites, or when the user requests test generation. Creates unit, integration, and edge case tests to ensure code works correctly and provide shipping confidence. Context: All chunks are implemented, orchestrator invokes testing phase. user: "All…

drobins25/craft · 200 tokens

symfony-tdd-coach

Guides TDD workflow for Symfony projects using Pest PHP or PHPUnit. Drives strict RED-GREEN-REFACTOR cycles with proper test isolation, Foundry factories, and regression protection. Use when writing tests, adding test coverage, or practicing TDD.

dev-toolings/superpowers-symfony · 58 tokens

build-runner

Run typecheck, tests, and build to verify code quality and catch errors.

Koroqe/claude-code-sdlc · 19 tokens

dev-tooling-runner

Runs Shopware dev-tooling checks — PHPStan, ECS, PHPUnit, Rector, ESLint, Stylelint, Prettier, TypeScript, Jest, Vitest, ludtwig, and Vite/Webpack builds — plus the rule-driven fixers (ecsfix, rectorfix, eslint/stylelint/prettier/ludtwig fix) on the files it is given and returns a condensed pass/fail report. Use when…

shopwareLabs/ai-coding-tools · 141 tokens

skill-eval-grader

Artifact-based grader for subjective skill evaluations. Reads evidence files (generated SKILL.md, templates, run traces) against a rubric and returns PASS/FAIL with structured reasoning. Used by grade.ts for fuzzy assertions where deterministic checks cannot apply.

QBall-Inc/the-bulwark · 53 tokens

mb-qa

QA / testing specialist for memory-bank /mb work stages. Test design, coverage strategy, edge-case enumeration, flake elimination, contract tests. Falls back to mb-developer when stage is generic.

fockus/skill-memory-bank · 44 tokens