@infraasprompt/mcp-server
A read-only MCP (Model Context Protocol) server for IaP — Infrastructure as Prompt. It lets an AI assistant (Claude Code, Cursor, Windsurf, any MCP client) author and analyse IaP documents over stdio using the IaP reference engines.
Tools
| Tool | What it does |
|---|---|
iap_author |
Author IaP from a natural-language requirement via the intent compiler (extract → clarify → gate), with per-field provenance. |
iap_validate |
Validate an IaP document (phases 1–5) and return the findings. |
iap_cost |
Estimate cost and evaluate budgets against the reference price snapshot. |
iap_security |
Derive the security posture (grants, reachability, IAP6xx findings). |
iap_compliance |
Evaluate active compliance framework bundles and return the evidence report. |
Trust boundary (read-only by construction)
Every tool is authoring or analysis. This server exposes no deployment, mutation, or provider-API tool — an assistant using it structurally cannot deploy or reach a cloud provider, and the server refuses to start if a mutation-named tool is ever registered. Authoring goes through the intent-compiler gate: an LLM never writes YAML into the source of truth.
Client configuration
{ "mcpServers": { "iap": { "command": "npx", "args": ["-y", "@infraasprompt/mcp-server"] } } }
The server speaks JSON-RPC 2.0 over stdio (newline-delimited JSON, one message per line, per the MCP stdio transport; protocol revision 2025-06-18). Protocol messages go to stdout; diagnostics to stderr.
License
Apache-2.0. Part of the IaP monorepo.