cavdax

v1.3.3
io.github.CAVDAX/cavdax Checked 16 hours ago Published 20 days ago

CAVDAX MCP Server backed by FalkorDB GraphBLAS for causal invalidation gating and ADR provenance.

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

apply_code_change

Applies a verified code modification to a target file. Enclosed within the CAVDAX Causal Graph Gate. If the decision_id depends on a superseded or stale architecture decision, the write is hard-rejected and nothing is written to disk.

ParameterTypeDescription
code_payload *stringFull code content to write to the target file.
decision_id *stringThe ID of the Architecture Decision (e.g., DEC-102 or DEC-103) justifying this change.
file_path *stringTarget file path (relative to the repo root) to modify or create.
agent_idstringOptional. If you hold a lock from acquire_decision_lock, pass the same agent_id here so your own lock does not block you.
reasoningstringTechnical rationale for this code modification.

revalidate_decision

Act IV Revalidation: ground a new Decision in a fresh superseding Source/ADR, archiving the invalidated decision.

ParameterTypeDescription
new_decision_id *stringNew decision ID (e.g., DEC-103)
new_fact_id *stringActive fact ID extracted from the new source (e.g., F-OAuth2)
new_source_id *stringFresh superseding source ID (e.g., ADR-002)
old_decision_id *stringInvalidated decision ID being superseded (e.g., DEC-102)
title *stringDirective title for new decision

check_intent_clearance

Pre-flight architectural clearance. Call BEFORE generating or applying code to verify if your proposed decision is grounded in active architecture records without wasting tokens.

ParameterTypeDescription
decision_id *stringThe ID of the Architecture Decision (e.g. DEC-102 or DEC-103) you intend to implement.
agent_idstringOptional. If you hold a lock from acquire_decision_lock, pass the same agent_id here so your own lock does not block you.
proposed_actionstringOptional summary of the intended code change.
target_filestringOptional target file path you intend to touch.

acquire_decision_lock

Multi-Agent Concurrency Control: Leases an exclusive lock on an Architecture Decision branch.

ParameterTypeDescription
agent_id *stringUnique identifier of the requesting AI agent.
decision_id *stringThe ID of the decision to lock.
reasonstringOperational rationale for the exclusive lease.
ttl_msnumberLock duration lease in milliseconds (default: 60000ms).

release_decision_lock

Multi-Agent Concurrency Control: Releases a held decision lock for other autonomous agents.

ParameterTypeDescription
agent_id *stringUnique identifier of the agent releasing the lock.
decision_id *stringThe ID of the decision to release.

query_causal_graph

Inspect the causal dependency graph to verify node statuses and dependency paths before proposing code changes.

ParameterTypeDescription
node_idstringOptional node ID (e.g. ADR-001, DEC-102). When set, only that node and its direct edges are returned.

export_graph_image

Generates a standalone SVG/visual image of the CAVDAX causal architecture graph for PR descriptions, documentation, or visual inspection.

ParameterTypeDescription
formatstringOutput format (default: "svg").
highlight_blast_radiusbooleanWhen true and node_id is provided, highlights downstream invalidated dependencies in pulsing warning colors.
node_idstringOptional target node ID (e.g. DEC-102 or ADR-001) to center or inspect.

list_active_decisions

Returns a lightweight manifest of all architectural decisions governing this repository, their approval status, grounded facts, and target files.

ParameterTypeDescription
status_filterstringFilter decisions by status (default: "ALL").

explain_blast_radius

Computes downstream architectural blast radius and invalidated dependencies before modifying an ADR, Decision, or Fact.

ParameterTypeDescription
node_id *stringTarget node ID (e.g. DEC-101 or ADR-001) to trace downstream impact for.

explain_architectural_impact

Analyzes downstream architectural impact, invalidated decisions, and affected source files before modifying an ADR, Decision, or Fact. (Alias for explain_blast_radius).

ParameterTypeDescription
node_id *stringTarget node ID (e.g. DEC-101 or ADR-001) to trace downstream impact for.