Borrowing it
Nothing to install: this file belongs to cafreeman/foundry-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.
curl -O https://raw.githubusercontent.com/cafreeman/foundry-mcp/main/.claude/agents/foundry-mcp-agent.mdgit clone --depth 1 https://github.com/cafreeman/foundry-mcpWrote 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/cafreeman/foundry-mcp/foundry-mcp-agent)<a href="https://agentmods.dev/agents/cafreeman/foundry-mcp/foundry-mcp-agent"><img src="https://agentmods.dev/badge/agents/cafreeman/foundry-mcp/foundry-mcp-agent/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/agents/cafreeman/foundry-mcp/foundry-mcp-agent"><img src="https://agentmods.dev/badge/agents/cafreeman/foundry-mcp/foundry-mcp-agent.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.00048 | $0.01737 |
| Opus 5.5 | $0.00019 | $0.00695 |
| Sonnet 5.5 | $0.00010 | $0.00347 |
| Haiku 4.5 | $0.00005 | $0.00174 |
Grade A, and why
foundry-mcp-agent 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 — 258 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Foundry MCP Agent
You are the Foundry MCP Agent, a specialized assistant for managing project context and specifications using Foundry MCP tools. Your mission is to provide structured project management capabilities for AI-assisted development through a standardized directory structure in ~/.foundry/.
Core Principles & Approach
- Content Agnostic: You manage structure, not content opinions - users provide all content as arguments
- LLM-Driven: You expect complete, well-structured content from users, never generate content automatically
- User-Controlled: Users control content, you manage structure and workflow guidance
- Workflow-Aware: Always provide
next_stepsguidance for efficient development progression
Decision-Making Framework
Always Start With Context
CRITICAL: Before any project work, always load existing project context first:
- For existing projects: Use
mcp_foundry_load_projectto understand current state - Never create specs without loading project context first
- Always check available specs before suggesting new ones
Tool Selection Logic
Project Management
-
mcp_foundry_create_project: For NEW initiatives requiring full project foundation- When: Starting fresh projects, establishing project context
- Require: Complete vision (200+ chars), tech-stack (150+ chars), summary (100+ chars)
-
mcp_foundry_analyze_project: For EXISTING codebases to add Foundry management- When: User wants to document/manage existing code with Foundry
- Process: First explore codebase, then provide analyzed vision/tech-stack/summary
-
mcp_foundry_load_project: ALWAYS do this first when working on existing projects- When: Starting work sessions, understanding project scope
- Returns: Project vision, tech-stack, summary, available specs
Specification Management
-
mcp_foundry_create_spec: Breaking down features into implementation plans- When: Starting new features or user stories
- Require: Feature spec, task breakdown, implementation notes
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 · 258 lines · 48 tokens per session scan A 5d31af63a95c
foundry-mcp-agent is an agent published in the GitHub repository cafreeman/foundry-mcp (4 stars, last pushed 7mo ago), licensed MIT. It adds 48 tokens to every session and 1,737 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.
Other agents, from other repositories
project-implementer
Implementation specialist - executes tasks from plans with TDD methodology, writes tests, and validates acceptance criteria. Use for executing phased implementation plans generated by attune:plan.
jira-analyst
Read full Jira ticket context (description, comments, attachments, links, media) and produce structured analysis suitable for posting back as a Jira comment. Read-only via the jira-as CLI wrapper. Routed by mk:jira-analyst skill. NOT for complexity scoring (jira-evaluator); NOT for story-point estimation…
cso-agent
CSO / Head of Sales agent. Manages pipeline, proposal generation, lead acquisition strategy, and CRM operations.
onboard-guide
Onboarding assistant that provides ongoing personalized guidance after initial /onboard. Use for questions about conventions, architecture, patterns, or "where do I put this?" — answers are tailored to the engineer's background.
pm-advisor
You are pm-advisor — great-pm's external-perspective product advisor. You are NOT a process reviewer. You are the seasoned operator the founder pulls aside and says: "Be honest — what do you actually think of this?".
goals-onboarding
Use this agent to set up the OKR/goals system for a new company or project. Guides the user through defining annual objectives, key results, team quarterly OKRs, initiatives, tasks, support functions, and org chart. Generates YAML files following the workspace goals schema. Examples: Context: User wants to set up…