tfmcp CLAUDE.md

tfmcp CLAUDE.md is an instructions file for Claude Code from nwiizo/tfmcp. It costs 441 tokens per session, scanned A, original, MIT.

A development guide for tfmcp, a Rust MCP server that connects coding agents to Terraform, a tool for managing infrastructure as code.

In plain words
What is it for?
Use it when changing Terraform operations, MCP request handling, registry access, configuration, documentation, or troubleshooting code.
Why use it?
It gives contributors the required formatting, warning, linting, and test checks and records rules such as avoiding mocks and unchecked errors.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Install

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.

agentmods
npx agentmods add instructions/nwiizo/tfmcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/nwiizo/tfmcp

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 tfmcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nwiizo/tfmcp/claude-md.svg)](https://agentmods.dev/instructions/nwiizo/tfmcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/nwiizo/tfmcp/claude-md"><img src="https://agentmods.dev/badge/instructions/nwiizo/tfmcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 441 This file is loaded in full into every session.
When invoked 441 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00441 $0.00441
Opus 5 $0.00220 $0.00220
Sonnet 5 $0.00088 $0.00088
Haiku 4.5 $0.00044 $0.00044

Measured 6d ago against content hash 38217289d148, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tfmcp CLAUDE.md 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.

CLAUDE.md · 47 lines

What it actually says

CLAUDE.md

tfmcp is a Rust-based MCP server for Terraform operations using the RMCP SDK.

Quick Reference

# Quality checks (run before commits)
cargo fmt --all && RUSTFLAGS="-Dwarnings" cargo clippy --all-targets --all-features && cargo test --locked --all-features

Project 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

File Contents
rules/quality-commands.md Build, test, CI commands
rules/development-guidelines.md Code style, security rules
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

Environment Variables

Variable Description
TERRAFORM_DIR Project directory
TFMCP_ALLOW_DANGEROUS_OPS Enable apply/destroy
TFMCP_LOG_LEVEL Logging verbosity
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. 6d ago First seen · 47 lines · 441 tokens per session scan A 38217289d148

Subscribe to this mod's changes

tfmcp CLAUDE.md is an instructions file published in the GitHub repository nwiizo/tfmcp (371 stars, last pushed 2d ago), licensed MIT. It adds 441 tokens to every session, about $0.0022 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.