fettle: Command for Claude Code

.github/prompts/fettle-mcp-revoke.prompt.md

fettle-mcp-revoke is a command for Claude Code, GitHub Copilot from MilindGaharwar/fettle. It costs 19 tokens per session (414 once invoked), scanned B, original, Apache-2.0.

A command that removes an approved MCP package from the trusted allowlist. The allowlist is the file that controls which packages may be installed and executed.

In plain words
What is it for?
Use it to inspect a package's approval record, confirm revocation, remove it from the ledger, and verify that it is no longer listed.
Why use it?
It stops future installations and executions of a package that is no longer trusted.

Command for Claude CodeGitHub Copilot

Written for Claude Code and GitHub Copilot: argument-hint in frontmatter, but also a Copilot chat mode or prompt.

This is MilindGaharwar/fettle's own configuration. It tells Claude Code and GitHub Copilot how to work on fettle 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 fettle configures →

Part of the fettle plugin — 34 commands, 4 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to MilindGaharwar/fettle. 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/MilindGaharwar/fettle/main/.github/prompts/fettle-mcp-revoke.prompt.md
Clone the repo
git clone --depth 1 https://github.com/MilindGaharwar/fettle

Made for: Claude Code, GitHub Copilot.

Or install fettle, the plugin that ships this one along with the rest of its 34 commands, 4 hooks.

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 fettle-mcp-revoke

README.md
[![agentmods](https://agentmods.dev/badge/commands/milindgaharwar/fettle/fettle-mcp-revoke/github.svg)](https://agentmods.dev/commands/milindgaharwar/fettle/fettle-mcp-revoke)
Your own site
<a href="https://agentmods.dev/commands/milindgaharwar/fettle/fettle-mcp-revoke"><img src="https://agentmods.dev/badge/commands/milindgaharwar/fettle/fettle-mcp-revoke/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 fettle-mcp-revoke

Your own site · 80×15
<a href="https://agentmods.dev/commands/milindgaharwar/fettle/fettle-mcp-revoke"><img src="https://agentmods.dev/badge/commands/milindgaharwar/fettle/fettle-mcp-revoke.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 414 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00019 $0.00414
Opus 5 $0.00010 $0.00207
Sonnet 5 $0.00004 $0.00083
Haiku 4.5 $0.00002 $0.00041

Measured today against content hash 5ae8c053ec3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

fettle-mcp-revoke scanned grade B with 1 finding 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 today.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Writes to a temp file then sudo copies it to the ledger path
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.github/prompts/fettle-mcp-revoke.prompt.md · 38 lines

What it actually says

$ARGUMENTS refers to any text the user typed after the slash command.

Remove a package from the root-owned allowlist ledger.

Procedure

  1. Parse arguments. Extract package name from $ARGUMENTS (e.g., @playwright/mcp).

  2. Locate and check the ledger. The allowlist lives at ~/.config/fettle/mcp-allowlist.json by default (a policy-pinned [gates.mcp_trust].allowlist_path wins; otherwise the MCP_ALLOWLIST_PATH env var). Read it and verify the package exists under packages. If not found, report and stop.

  3. Show current entry. Display the package's version, audit date, auditor, and report path.

  4. Confirm with human. Ask: "Are you sure you want to revoke from the allowlist? This will block all future installations and executions."

  5. If confirmed, remove from ledger via sudo. Use a Python script that:

    • Reads the current allowlist ledger
    • Removes the package entry from the packages dict
    • Writes to a temp file then sudo copies it to the ledger path
    • Sets ownership to root:root and permissions to 0644
  6. Confirm the ledger was updated by reading it back and verifying the package is no longer listed.

  7. Report what was removed and remind the user that:

    • Any installed instance of this package will still exist on disk
    • Future attempts to install or execute it will be blocked by all 3 layers
    • To fully remove it, also uninstall the package manually

Rules

  • NEVER revoke without explicit human confirmation in the conversation.
  • Always show what is being removed before asking for confirmation.
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. today Changed · +2 lines · +7 tokens per session 5ae8c053ec3d
  2. 9d ago First seen · 36 lines · 12 tokens per session scan B 1afb11147547

Subscribe to this mod's changes

fettle-mcp-revoke is a command published in the GitHub repository MilindGaharwar/fettle (4 stars, last pushed yesterday), licensed Apache-2.0. It adds 19 tokens to every session and 414 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.