Skip to main content

Crate mcpsec

Crate mcpsec 

Source
Expand description

MCPSEC: MCP Security Benchmark Framework

Vendor-neutral security evaluation for MCP gateways. Tests 10 security properties across 64 attack test cases.

Modules§

attacks
Attack registry — defines all 64 test cases across 12 attack classes.
report
JSON and Markdown report generation.
runner
HTTP client that sends attack payloads to the gateway under test.
scoring
Score calculation from attack results.

Structs§

AttackResult
Result of a single attack test.
BenchmarkConfig
Configuration for a benchmark run.
BenchmarkResult
Complete benchmark result.
BenchmarkSummary
Summary statistics for a benchmark run.
GatewayConfig
Gateway connection configuration.
PropertyScore
Score for a single security property.

Enums§

OutputFormat
Output format for benchmark results.

Functions§

run_benchmark
Run the full benchmark suite against a gateway.