recourse-cli
MCP ServerFreeMCP server for AI agents to evaluate consequences before destructive actions. Analyzes Terraform plans, shell commands, and MCP tool calls.
Capabilities8 decomposed
terraform plan consequence analysis with blast-radius estimation
Medium confidenceParses Terraform execution plans (JSON format) to identify resource changes, dependencies, and potential blast radius. Analyzes which resources will be created, modified, or destroyed and traces downstream impacts through resource dependency graphs. Integrates with MCP protocol to expose analysis results to AI agents for decision-making before apply operations.
Implements consequence analysis as an MCP server that integrates directly into AI agent workflows, allowing agents to query plan impacts before execution rather than analyzing plans post-hoc. Uses dependency graph traversal to estimate blast radius rather than simple resource counting.
Provides real-time consequence analysis integrated into agent decision loops, whereas terraform plan alone requires manual interpretation and external tools like Checkov only perform policy checks, not impact analysis.
shell command consequence evaluation with side-effect prediction
Medium confidenceAnalyzes shell commands (bash, sh, zsh) to predict side effects including file system mutations, process spawning, network calls, and environment variable changes. Uses pattern matching and AST-like parsing to identify dangerous operations (rm, dd, curl with sudo, etc.) and traces command chains to estimate overall system impact. Exposes findings through MCP tool interface for agent evaluation.
Integrates shell command consequence analysis into MCP protocol, allowing AI agents to query command safety before execution. Uses pattern-based detection of dangerous operations combined with command chain tracing rather than full shell parsing.
Provides agent-integrated safety checks for shell commands, whereas ShellCheck focuses on syntax/style issues and tools like audit-shell only log executed commands; recourse-cli enables preventive analysis before execution.
mcp tool call consequence validation with schema-aware impact assessment
Medium confidenceValidates MCP tool calls against their schemas and predicts consequences of tool execution based on tool metadata and parameter values. Analyzes tool definitions to identify which tools perform mutations, access sensitive resources, or have side effects. Evaluates whether a proposed tool call aligns with agent intent and flags potentially dangerous parameter combinations (e.g., delete with wildcard patterns).
Extends MCP protocol with consequence validation layer that analyzes tool calls against schemas and side-effect metadata before execution. Uses schema introspection combined with parameter analysis to predict tool impacts.
Provides schema-aware tool call validation integrated into MCP workflows, whereas generic schema validators only check type correctness; recourse-cli adds consequence prediction and side-effect analysis.
dependency graph analysis for infrastructure and resource relationships
Medium confidenceBuilds and traverses dependency graphs from Terraform plans and MCP tool definitions to trace resource relationships and impact chains. Identifies direct dependencies (explicit resource references) and estimates transitive impacts when resources are modified or deleted. Generates visual or textual representations of dependency chains to help agents understand cascading effects.
Implements dependency graph analysis as part of MCP server, allowing agents to query resource relationships and impact chains dynamically. Uses graph traversal algorithms to estimate transitive impacts rather than simple reference counting.
Provides dynamic dependency analysis integrated into agent workflows, whereas static Terraform visualization tools only show structure; recourse-cli enables agents to query impacts for specific change scenarios.
risk scoring and consequence severity classification
Medium confidenceAssigns risk scores and severity classifications to proposed actions (Terraform changes, shell commands, tool calls) based on impact type, blast radius, and resource criticality. Uses a scoring model that considers factors like number of affected resources, whether changes are reversible, and whether critical infrastructure is involved. Provides severity labels (low, medium, high, critical) to help agents make informed decisions.
Implements quantitative risk scoring for infrastructure and command consequences as part of MCP server, enabling agents to make risk-aware decisions. Uses multi-factor scoring model considering impact scope, reversibility, and resource criticality.
Provides automated risk scoring integrated into agent workflows, whereas manual risk assessment is subjective and time-consuming; recourse-cli enables consistent, quantitative risk evaluation.
mcp protocol server implementation with tool exposure
Medium confidenceImplements a Model Context Protocol (MCP) server that exposes consequence analysis capabilities as MCP tools callable by AI agents. Handles MCP protocol communication, tool registration, parameter marshaling, and result serialization. Allows agents to invoke consequence analysis tools through standard MCP client interfaces without direct library imports.
Implements full MCP server for consequence analysis, exposing all capabilities through standard MCP tool interface. Handles protocol-level concerns (serialization, async communication, error handling) transparently.
Provides MCP-native integration for consequence analysis, whereas library-based approaches require code changes; recourse-cli enables drop-in integration via MCP protocol.
multi-format input parsing for terraform, shell, and tool definitions
Medium confidenceParses multiple input formats including Terraform JSON plans, shell command text, and MCP tool definition schemas. Uses format-specific parsers to extract relevant information (resource changes, command operations, tool metadata) and normalize into internal representations for analysis. Handles format variations and provides clear error messages for malformed inputs.
Implements unified parsing layer that handles multiple input formats (Terraform, shell, MCP) with format-specific logic, normalizing diverse inputs into common analysis representations.
Provides single tool for analyzing multiple action types, whereas separate tools require format conversion and orchestration; recourse-cli handles parsing and normalization transparently.
reversibility assessment and data loss risk detection
Medium confidenceAnalyzes operations to determine whether changes are reversible and identifies operations that could cause permanent data loss. Classifies operations as reversible (can be undone via backup/rollback), partially reversible (some data recoverable), or irreversible (permanent loss). Detects high-risk patterns like database deletions, encryption key destruction, and unbackup'd resource removal.
Specifically analyzes reversibility and data loss risk across Terraform, shell, and MCP domains, enabling consistent data protection policies regardless of operation type
More focused on data loss prevention than generic consequence analysis tools; provides explicit reversibility classification to inform approval decisions
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with recourse-cli, ranked by overlap. Discovered automatically through the match graph.
agentseal
Security toolkit for AI agents. Scan your machine for dangerous skills and MCP configs, monitor for supply chain attacks, test prompt injection resistance, and audit live MCP servers for tool poisoning.
StarOps
AI Platform...
@mcp-contracts/core
Snapshot, diff, and classify MCP tool schema changes
Cleric
Autonomously triages and roots cause alerts in complex...
@pshkv/mcp-scanner
SINT MCP Security Scanner — analyze MCP server tool definitions for risk
code-review-graph
Local knowledge graph for Claude Code. Builds a persistent map of your codebase so Claude reads only what matters — 6.8× fewer tokens on reviews and up to 49× on daily coding tasks.
Best For
- ✓DevOps engineers using AI agents to manage infrastructure safely
- ✓Teams automating Terraform workflows with Claude or other LLM agents
- ✓Organizations requiring consequence analysis before infrastructure mutations
- ✓AI agents running shell commands in sandboxed or production environments
- ✓Teams implementing guardrails for agent-generated bash scripts
- ✓DevOps automation requiring consequence checks before destructive shell operations
- ✓AI agents using MCP servers with safety-critical tools
- ✓Teams building agent frameworks that need tool call validation layers
Known Limitations
- ⚠Requires Terraform plan in JSON format — does not parse HCL directly
- ⚠Dependency analysis limited to explicit Terraform resource references; implicit dependencies (e.g., security group rules) may not be detected
- ⚠Does not simulate actual AWS/cloud API behavior — analysis is static and based on plan structure
- ⚠No support for Terraform modules with dynamic resource counts without explicit plan output
- ⚠Static analysis only — cannot predict runtime behavior of complex scripts with conditionals or loops
- ⚠Does not execute commands in a sandbox to observe actual side effects
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
Package Details
About
MCP server for AI agents to evaluate consequences before destructive actions. Analyzes Terraform plans, shell commands, and MCP tool calls.
Categories
Alternatives to recourse-cli
Search the Supabase docs for up-to-date guidance and troubleshoot errors quickly. Manage organizations, projects, databases, and Edge Functions, including migrations, SQL, logs, advisors, keys, and type generation, in one flow. Create and manage development branches to iterate safely, confirm costs
Compare →Are you the builder of recourse-cli?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →