mcp-revoke

mcp-revoke is a command for Claude Code from MilindGaharwar/fettle. It costs 17 tokens per session (400 once invoked), scanned B, a copy of fettle-mcp-revoke, Apache-2.0.

A command for removing an approved MCP package from an allowlist, which is a record of packages permitted to install or run.

In plain words
What is it for?
Use it to inspect a package's approval record, confirm its removal, update the allowlist, and verify that it is no longer listed.
Why use it?
It provides a checked and human-confirmed way to withdraw approval for a package. The package is removed from the ledger, while already installed copies may remain.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Good fit Use it to inspect a package's approval record, confirm its removal, update the allowlist, and verify that it is no longer listed.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/milindgaharwar/fettle/mcp-revoke
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/MilindGaharwar/fettle

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/milindgaharwar/fettle/mcp-revoke.svg)](https://agentmods.dev/commands/milindgaharwar/fettle/mcp-revoke)
Your own site
<a href="https://agentmods.dev/commands/milindgaharwar/fettle/mcp-revoke"><img src="https://agentmods.dev/badge/commands/milindgaharwar/fettle/mcp-revoke.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 400 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 88% copy Near-identical to another mod 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.00017 $0.00400
Opus 5 $0.00009 $0.00200
Sonnet 5 $0.00003 $0.00080
Haiku 4.5 $0.00002 $0.00040

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

Security

Grade B, and why

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 7d 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.

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

This is a copy

88% identical to fettle-mcp-revoke — 9 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/mcp-revoke.md · 37 lines

What it actually says

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. 7d ago First seen · 37 lines · 17 tokens per session scan B 1c50b074567b

Subscribe to this mod's changes

mcp-revoke is a command published in the GitHub repository MilindGaharwar/fettle (2 stars, last pushed 3d ago), licensed Apache-2.0. It adds 17 tokens to every session and 400 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). It is 88% identical to fettle-mcp-revoke, differing in 9 lines, and is treated as a copy.