Borrowing it
Nothing to install: this file belongs to plumbkit/plumb. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/plumbkit/plumb/main/.claude/skills/add-mcp-tool/SKILL.mdgit clone --depth 1 https://github.com/plumbkit/plumbWrote 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.
[](https://agentmods.dev/skills/plumbkit/plumb/add-mcp-tool)<a href="https://agentmods.dev/skills/plumbkit/plumb/add-mcp-tool"><img src="https://agentmods.dev/badge/skills/plumbkit/plumb/add-mcp-tool/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.
<a href="https://agentmods.dev/skills/plumbkit/plumb/add-mcp-tool"><img src="https://agentmods.dev/badge/skills/plumbkit/plumb/add-mcp-tool.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00055 | $0.01116 |
| Opus 5.5 | $0.00022 | $0.00446 |
| Sonnet 5.5 | $0.00011 | $0.00223 |
| Haiku 4.5 | $0.00006 | $0.00112 |
Grade A, and why
add-mcp-tool 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Adding an MCP tool to plumb
1. File layout and the Tool interface
Create internal/tools/<name>.go implementing the Tool interface from internal/mcp/tools.go:
Name, Description, InputSchema, Execute.
The Description is the authoritative per-tool reference clients read via tools/list —
describe what the tool does and its params/quirks. Workflow steering that spans multiple
tools (routing prose like "prefer this over grep") belongs in a skill, not the
description — see the boundary rule in private/docs/internal/skills-strategy.md
(plumb-ops): "Tool descriptions describe the tool. Skills describe the workflow of
combining tools."
2. The thin-orchestrator Execute() pattern
Every Tool.Execute() must be a thin orchestrator over named, individually-testable steps
(parse/validate → domain logic → presentation). PRs that add a monolithic Execute() are
non-conforming. Each inner function stays under gocyclo 15.
func (t *Foo) Execute(ctx context.Context, raw json.RawMessage) (string, error) {
args, err := parseFooArgs(raw) // JSON decode + shape validation only
if err != nil { return "", err }
if err := args.validate(); err != nil { return "", err }
res, err := t.run(ctx, args) // domain logic — no formatting
if err != nil { return "", err }
return formatFooResult(res), nil // presentation — no logic
}
3. WriteDeps for write/edit tools
Write/edit tools take a single WriteDeps parameter — don't grow the constructor with
positional params. Adding a new cross-cutting concern (locking, LSP notify, quality
analysis, rate limiting, …) means adding a field to WriteDeps, not a new argument
threaded through every write tool's constructor.
4. Register the tool, and decide lean vs hidden
Register in registerAllTools (internal/cli/conn_register.go), called from handleConn
(internal/cli/daemon.go); write tools use the shared writeDeps.
Then decide whether the new tool belongs in the lean profile. Read the mutation-lane
rule in internal/tools/profile.go: a read-only commodity tool may be hidden freely under
the lean profile, but a mutation tool whose native fallback is unsafe (bypasses plumb's
per-path locks, LSP notify, or the transaction WAL) must stay in LeanTools. LeanTools
doubles as the Claude Code AlwaysLoad (never-deferred) set — editing it changes both
which clients see the tool under the lean profile and whether Claude Code pins its schema
up front instead of deferring it to ToolSearch. Don't add a tool to LeanTools casually;
it is a shared, high-stakes list.
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.
- 2mo ago First seen · 86 lines · 55 tokens per session scan A f1af830cd38a
add-mcp-tool is a skill published in the GitHub repository plumbkit/plumb (4 stars, last pushed 5d ago), licensed MIT. It adds 55 tokens to every session and 1,116 once invoked, about $0.0002 per session on Opus 5.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.
add-mcp-tool compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-mcp-toolplumbkit/plumb | Skill | 4 | 5d ago | MIT | A | 55 | Claude Code |
| yamlhome-operations/yayamlls | Skill | 33 | today | AGPL-3.0 | A | 69 | Claude Code |
| use-modern-goJetBrains/go-modern-guidelines | Skill | 3.9k | 22d ago | Apache-2.0 | A | 32 | Claude Code |
| code-guidelines-godimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 124 | Claude Code, Codex |
| go-127dimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 177 | Claude Code, Codex |
| bubbletea-testingdimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 139 | Claude Code, Codex |
| design-reviewdimetron/pi-go | Skill | 222 | 3d ago | MIT | A | 30 | Claude Code, Codex |