fd-mcp: Command for Claude Code

.claude/commands/demo-mcp.md

demo-mcp is a command for Claude Code from thhart/fd-mcp. It costs 10 tokens per session (181 once invoked), scanned A, original, MIT.

A demonstration command for fd-mcp, a set of tools for finding files and searching their contents. It shows file searches, recent-file listings, and file counts with live examples.

In plain words
What is it for?
Use it to find Python files, search for text such as function definitions, list files changed recently, and count files.
Why use it?
It makes the available file tools easier to understand by showing what each one does on a real project.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to thhart/fd-mcp. 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/thhart/fd-mcp/main/.claude/commands/demo-mcp.md
Clone the repo
git clone --depth 1 https://github.com/thhart/fd-mcp

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/thhart/fd-mcp/demo-mcp"><img src="https://agentmods.dev/badge/commands/thhart/fd-mcp/demo-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 181 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.00010 $0.00181
Opus 5 $0.00005 $0.00090
Sonnet 5 $0.00002 $0.00036
Haiku 4.5 $0.00001 $0.00018

Measured 8d ago against content hash 93e86eba4dd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

demo-mcp 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 8d 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/commands/demo-mcp.md · 18 lines

What it actually says

Demonstrate the power of fd-mcp tools by running several quick examples:

  1. Fast file search: Use mcp__fd__fd_search to find Python files (extension="py")
  2. Content search: Use mcp__fd__fd_search_content to find "def " in Python files with context
  3. Recent files: Use mcp__fd__fd_recent_files to show files changed in last 24 hours
  4. File count: Use mcp__fd__fd_count to count total files

For each operation, explain:

  • Which tool you're using
  • Why it's better than bash alternatives
  • The speed advantage (5-10x faster for search, 10-100x for content search)

Show the user how easy and fast these tools are!

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. 8d ago First seen · 18 lines · 10 tokens per session scan A 93e86eba4dd2

Subscribe to this mod's changes

demo-mcp is a command published in the GitHub repository thhart/fd-mcp (1 stars, last pushed 9mo ago), licensed MIT. It adds 10 tokens to every session and 181 once invoked, about $0.0001 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.