loaditout.ai
SkillsPacksTrendingLeaderboardAPI DocsBlogSubmitRequestsCompareAgentsXPrivacyDisclaimer
{}loaditout.ai
Skills & MCPPacksBlog

mcp-policy-testkit

MCP Tool

jansona/mcp-policy-testkit

CI-first policy and security testkit for MCP servers, manifests, metadata, and source artifacts.

Install

$ npx loaditout add jansona/mcp-policy-testkit

Platform-specific configuration:

.claude/settings.json
{
  "mcpServers": {
    "mcp-policy-testkit": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-policy-testkit"
      ]
    }
  }
}

Add the config above to .claude/settings.json under the mcpServers key.

About

mcp-policy-testkit

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.

Features
  • Configuration hygiene checks for secrets, environment exposure, unsafe path mappings, and dangerous commands
  • Real MCP handshake support for stdio-configured servers and HTTP JSON-RPC endpoints
  • Tool and prompt metadata analysis for naming clarity, schema quality, destructive disclosures, prompt injection, and tool poisoning
  • Source scanning for command injection, dynamic execution, unsafe file access, and resource exhaustion patterns
  • Reports in terminal, JSON, Markdown, and SARIF
  • Rule registry with enable/disable controls and project-level config
  • GitHub Actions examples for CI use
Installation
python -m pip install .

For development:

python -m pip install -e ".[dev]"
Commands
Lint configuration only
mcp-policy-testkit lint-config path/to/mcp.json --format terminal --fail-on high
Run the full policy test suite
mcp-policy-testkit test path/to/server-or-config --format json --output reports/scan.json

If 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 terminal
Convert a saved result bundle
mcp-policy-testkit report --input reports/scan.json --format sarif --output reports/scan.sarif
Rule categories
  • config: hygiene and manifest safety
  • tool_quality: tool naming, schema quality, and destructive disclosure
  • safety: prompt injection, tool poisoning, shadowing, prompt meta

Tags

climcpsecuritytesting

Reviews

Loading reviews...

Quality Signals

1
Stars
0
Installs
Last updated25 days ago
Security: AREADME

Safety

Risk Levelmedium
Data Access
read
Network Accessnone

Details

Sourcegithub-crawl
Last commit3/21/2026
View on GitHub→

Embed Badge

[![Loaditout](https://loaditout.ai/api/badge/jansona/mcp-policy-testkit)](https://loaditout.ai/skills/jansona/mcp-policy-testkit)