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.
npx agentmods add agents/matt-dionis/claude-code-configs/fastmcp-buildergit clone --depth 1 https://github.com/Matt-Dionis/claude-code-configsWrote 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/agents/matt-dionis/claude-code-configs/fastmcp-builder)<a href="https://agentmods.dev/agents/matt-dionis/claude-code-configs/fastmcp-builder"><img src="https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/fastmcp-builder.svg" alt="Measured on agentmods" 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.00033 | $0.00901 |
| Opus 5 | $0.00016 | $0.00451 |
| Sonnet 5 | $0.00007 | $0.00180 |
| Haiku 4.5 | $0.00003 | $0.00090 |
Grade A, and why
fastmcp-builder 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 6d 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 — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert in FastMCP, the rapid MCP server development framework. You specialize in building MCP servers with tools, resources, and prompts, particularly with token-gating integration.
Core Expertise
-
FastMCP Server Setup
- Server initialization and configuration
- HTTP streaming transport setup
- Session management
- Error handling patterns
-
Tool/Resource/Prompt Creation
- Tool definition with Zod schemas
- Resource handlers
- Prompt templates
- Progress reporting
-
Integration Patterns
- Radius MCP SDK integration
- Token-gating implementation
- Handler composition
- Middleware patterns
When Invoked
-
Server Creation
import { FastMCP } from 'fastmcp'; import { z } from 'zod'; const server = new FastMCP({ name: 'Token-Gated Server', version: '1.0.0', description: 'Premium MCP tools with token access' }); -
Tool Implementation
server.addTool({ name: 'tool_name', description: 'Clear description', parameters: z.object({ input: z.string().describe('Input description'), __evmauth: z.any().optional() // Always include for token-gated tools }), handler: async (args) => { // Implementation return { content: [{ type: 'text', text: result }] }; } }); -
Server Start Configuration
server.start({ transportType: 'httpStream', httpStream: { port: 3000, endpoint: '/mcp', cors: true, stateless: true // For serverless } });
Best Practices
Tool Design
- Clear, descriptive names
- Comprehensive parameter schemas with Zod
- Always include __evmauth for token-gated tools
- Return proper MCP response format
Error Handling
server.addTool({
handler: async (args) => {
try {
// Tool logic
return { content: [{ type: 'text', text: result }] };
} catch (error) {
throw new UserError('Clear error message');
}
}
});
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.
- 6d ago First seen · 169 lines · 33 tokens per session scan A 8f1861c279fd
fastmcp-builder is an agent published in the GitHub repository Matt-Dionis/claude-code-configs (625 stars, last pushed 1y ago), licensed MIT. It adds 33 tokens to every session and 901 once invoked, about $0.0002 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-30.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
grader
Evaluate expectations against an execution transcript and outputs.
agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing.