jansona/mcp-policy-testkit
CI-first policy and security testkit for MCP servers, manifests, metadata, and source artifacts.
Platform-specific configuration:
{
"mcpServers": {
"mcp-policy-testkit": {
"command": "npx",
"args": [
"-y",
"mcp-policy-testkit"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
mcp-policy-testkit is a CI-first policy and security testing toolkit for MCP servers. It checks manifests, configuration files, live MCP metadata obtained through handshake, and local source artifacts for common security and quality failures before release.
python -m pip install .For development:
python -m pip install -e ".[dev]"mcp-policy-testkit lint-config path/to/mcp.json --format terminal --fail-on highmcp-policy-testkit test path/to/server-or-config --format json --output reports/scan.jsonIf the input config includes a runnable MCP server connection, the scanner will attempt a live MCP handshake:
{
"mcpServers": {
"local-server": {
"command": "python",
"args": ["server.py"]
}
}
}You can also target an HTTP MCP endpoint directly:
mcp-policy-testkit test https://example.com/mcp --format terminalmcp-policy-testkit report --input reports/scan.json --format sarif --output reports/scan.sarifconfig: hygiene and manifest safetytool_quality: tool naming, schema quality, and destructive disclosuresafety: prompt injection, tool poisoning, shadowing, prompt metaLoading reviews...