tfmcp
AGENTS.md373 starsChanged 58 days agoMITView on GitHub
tfmcp is a Rust-based MCP server for Terraform operations using the RMCP SDK. The .agents/rules, .agents/skills, and .agents/docs directories are symlinks to the shared files under .claude/. Keep these links when updating the content. Apply the development guidelines to implementation work and the signal integrity rules to structural analysis and review.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/000_general.mdcCursor rule
- .cursor/rules/001_rust.mdcCursor rule
- .cursor/rules/002_terraform.mdcCursor rule
- .cursor/rules/003_mcp.mdcCursor rule
- .cursor/rules/project.jsonCursor rule
- .cursor/rules/README.mdCursor rule
- .cursor/rules/rust.jsonCursor rule
- .cursor/rules/terraform.jsonCursor rule
- analyzeSkill
- e2e-testSkill
- refactorSkill
- releaseSkill
- reviewSkill
- similaritySkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
No mocks: Use real implementations only
- Distinctive: line 26
No dead code: Remove unused code immediately
- Very specific: line 28
No
.unwrap(): Use proper error handling
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
tfmcp is a Rust-based MCP server for Terraform operations using the RMCP SDK.
Quick Reference
# Quality checks (run before commits)
rtk cargo fmt --all -- --check
rtk proxy env RUSTFLAGS=-Dwarnings cargo clippy --all-targets --all-features
rtk cargo test --locked --all-featuresProject Structure
| Module | Purpose |
src/core/ | Main application logic |
src/mcp/ | RMCP server, tool routing, protocol handling, and transports |
src/terraform/ | Terraform CLI integration |
src/registry/ | Terraform Registry API client |
Key Rules
- No mocks: Use real implementations only
- No dead code: Remove unused code immediately
- No warnings:
RUSTFLAGS="-Dwarnings"in CI - No
.unwrap(): Use proper error handling
Documentation
The .agents/rules, .agents/skills, and .agents/docs directories are symlinks
to the shared files under .claude/. Keep these links when updating the content.
Apply the development guidelines to implementation work and the signal integrity
rules to structural analysis and review.
| File | Contents |
| rules/quality-commands.md | Build, test, CI commands |
| rules/development-guidelines.md | Code style, security rules |
| rules/grading-integrity.md | Comparable diagnostics and evidence-based interpretation |
| docs/architecture.md | Module structure, features |
| docs/configuration.md | Environment variables, Docker |
| docs/mcp-tools.md | Tool and resource reference |
| docs/troubleshooting.md | Known issues, debugging |
| skills/release/SKILL.md | Release process |
Development Skills
| Skill | Use |
| analyze | Coupling reports, health, hotspots, and comparisons |
| review | Module boundaries and shared-knowledge review |
| refactor | Behavior-preserving structural changes |
| similarity | Duplicate-code assessment |
| e2e-test | Isolated MCP and Terraform verification |
Environment Variables
| Variable | Description |
TERRAFORM_DIR | Project directory |
TFMCP_ALLOW_DANGEROUS_OPS | Enable apply/destroy |
TFMCP_LOG_LEVEL | Logging verbosity |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

