failures-mcp

v0.3.1
failures-mcp Checked 2 days ago Published 2 months ago

Failures — deterministic MCP for AI-built software.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_principles

List Failures engineering principles and dimensions. Optionally filter by id.

ParameterTypeDescription
filterstring

review_architecture

Review a system architecture for failure modes. Provide system description, components (list of {name,description,dependencies} or strings), optional flows and dependencies. Returns severity-ranked findings with required controls and tests.

ParameterTypeDescription
system *string
componentsarray
dependenciesarray
flowsarray

analyze_component

Analyze a single component (database, queue, api, payment, auth, cache, worker, storage) for failure modes.

ParameterTypeDescription
component_type *string
description *string
dependenciesarray

generate_failure_cases

Generate concrete failure scenarios for a system. Prioritizes ambiguous and partial failures. Optional focus: atomicity, idempotency, timeout, concurrency, etc.

ParameterTypeDescription
system *string
componentsarray
focusstring

review_code

Review source code for failure-related risks (idempotency, transactions, timeouts, race conditions, retry safety, resource exhaustion). Provide code and language.

ParameterTypeDescription
code *string
languagestring

generate_failure_tests

Generate failure-oriented tests for a system/component.

ParameterTypeDescription
system *string
componentstring
languagestring

check_idempotency

Check whether an operation/code is safe to execute more than once.

ParameterTypeDescription
code *string
operationstring

check_retry_safety

Determine whether retrying an operation can produce duplicate side effects or inconsistent state.

ParameterTypeDescription
code *string
operationstring

check_transaction_safety

Analyze database/state transitions for partial commits, crashes, rollback behavior, lost updates.

ParameterTypeDescription
code *string
operationstring

review_plan

Review an implementation plan (ordered steps) for failure ordering, idempotency, and transaction gaps. Use before coding to catch flawed ordering.

ParameterTypeDescription
feature *string
contextstring
planarray

check_invariant

Check if declared invariants can be violated under failures. Provide invariants and architecture/plan/code context. Returns counter-scenarios.

ParameterTypeDescription
invariants *array
architecturestring
codestring
contextstring
planarray

review_code_semantic

Semantic review — deterministic checks plus low-confidence heuristic for hard cases (ack ordering, lock scope, memory dedup). Deterministic findings are authoritative (0.68-0.96); semantic are 0.58-0.65 and require human review. No LLM by default.

ParameterTypeDescription
code *string
languagestring

list_failures

List known failure scenarios from the knowledge base.

ParameterTypeDescription
filterstring