Asqav Mcp

security MCP Server

MCP server for AI agent governance - quantum-safe audit trails, policy enforcement, threat detection. Works with Claude Desktop, Cursor, Claude Code.

securitysecurity
5 views6 stars2 forksMIT

Why This Matters

Discovered via unknown and last synced 2mo ago.

Source
unknown
Stars
6
Last synced
2mo ago
Install
Check source

Install

Install instructions not detected yet

Check the source repository for the latest setup steps.

View source instructions
20
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (20)

sign_action

Create a signed, replayable audit record for an agent action

create_tool_policy

Create or update a local enforcement policy for a tool (risk level, rate limits, approval, blocking, tool endpoint)

Client

Setup

scan_all_tools

Scan every registered tool policy for threats

verify_signature

Verify a created signature

list_tool_policies

List all active tool enforcement policies

list_agents

List all registered AI agents

get_agent

Get details for a specific agent

scan_tool_definition

Scan an MCP tool definition for security threats before trusting it

check_policy

Check if an action is allowed by your organization's policies

complete_action

Report the outcome of a gate-approved action. Signs the result, hashes the output, and binds it to the original approval. Returns a bilateral receipt with an `output_hash` that can be verified later via `verify_output`.

preflight_check

Combined agent status and policy check in a single call. Returns CLEARED or NOT CLEARED with reasons.

enforced_tool_call

Strong enforcement proxy. Checks policy, rate limits, and approval requirements. If a `tool_endpoint` is configured, forwards the call and signs request + response together as a bilateral receipt.

Package

What it does

verify_output

Verify a signed output matches expected content by comparing the stored output_hash against a fresh hash

delete_tool_policy

Remove a tool enforcement policy

Tool

What it does

gate_action

Pre-execution enforcement gate. Checks policy, signs the approval or denial, returns verdict. Call `complete_action` after the action to close the bilateral receipt.

prior

above)\\b'", "prompt injection pattern in description: '\\byou\\s+(must

will

shall)\\b'", "suspicious schema field: 'command'", "possible typosquat of 'bash'" ] } ``` ## Setup ### Install ```bash pip install asqav-mcp ``` Set your API key (get one free at [asqav.com](https://asqav.com)): ```bash export ASQAV_API_KEY="sk_live_..." ``` ### Claude Desktop Add to your `claude_desktop_config.json`: ```json { "mcpServers": { "asqav": { "command": "asqav-mcp", "env": { "ASQAV_API_KEY": "sk_live_..." } } } } ``` ### Claude Code ```bash claude mcp add asqav -- asqav-mcp ``` ### Governed Claude Code session For project-local Claude Code setup, create a `.mcp.json` file in the repository root. Keep the API key in your environment instead of committing it: ```json { "mcpServers": { "asqav": { "command": "asqav-mcp", "env": { "ASQAV_API_KEY": "${ASQAV_API_KEY}" } } } } ``` Then start Claude Code from the same repository: ```bash export ASQAV_API_KEY="***" claude ``` A bounded governance flow for a high-risk tool call looks like this: ```text User: Before changing production config, use asqav to gate and audit the action. Claude Code -> asqav.gate_action( action_type="config_update", agent_id="claude-code", risk_context="Update production config timeout" ) asqav -> APPROVED, gate_id="gate_123", approval_signature_id="sig_approval_123" Claude Code -> edits config and runs the requested verifier Claude Code -> asqav.complete_action( gate_id="gate_123", result="Updated timeout and verifier passed" ) asqav -> receipt_signature_id="sig_receipt_456", output_hash="sha256:..." ``` To verify the audit trail after the session, ask Claude Code to call the verification tools with the signature IDs returned during the run: ```text Claude Code -> asqav.verify_signature(signature_id="sig_approval_123") Claude Code -> asqav.verify_signature(signature_id="sig_receipt_456") Claude Code -> asqav.verify_output( signature_id="sig_receipt_456", expected_output="Updated timeout and verifier passed" ) ``` The approval signature proves the action was gated before execution. The receipt signature and `verify_output` result prove the reported outcome was signed and has not been modified. ### Cursor Add to your Cursor MCP settings: ```json { "mcpServers": { "asqav": { "command": "asqav-mcp", "env": { "ASQAV_API_KEY": "sk_live_..." } } } } ``` ### Docker ```bash docker build -t asqav-mcp . docker run -e ASQAV_API_KEY="sk_live_..." asqav-mcp ``` ## Why