Pre-execution governance server that intercepts, validates, and controls AI agent tool calls with human-in-the-loop and audit trails.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We ran the install command below but it didn't respond within our test window โ this can mean a slow first-time install rather than a real problem.
npx promptspeak-mcp-serverNo response to initialize.
This is an experimental automated check and can have false negatives โ missing environment variables, a slow cold install, etc. It doesnโt necessarily mean somethingโs wrong. Last checked 1mo ago.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Promptspeak MCP Server.
ps_validateValidate a frame against all rules without executing
ps_validate_batchBatch validation for efficiency
ps_executeFull pipeline: validate โ hold check โ execute โ audit
ps_execute_dry_runRun full pipeline without executing the tool
ps_hold_listList all operations awaiting human approval
ps_hold_approveApprove with optional modified arguments
Pre-execution governance for AI agents. Blocks dangerous tool calls before they execute.
AI agents call tools (file writes, API requests, shell commands) with no validation layer between intent and execution. A prompt injection, hallucinated argument, or drifting goal can trigger irreversible actions. PromptSpeak intercepts every MCP tool call, validates it against deterministic rules, and blocks or holds risky operations for human approval โ in 0.1ms, before anything executes.

Add to ~/.claude/settings.json (or project-level .claude/settings.json):
Restart Claude Code. All 56 governance tools are immediately available.
Add to claude_desktop_config.json:
Validate that a PromptSpeak frame is structurally and semantically correct before using it. Frames encode governance constraints as symbol sequences โ mode first, then domain, action, and entity.
Invalid frames return actionable suggestions:
When an agent attempts a risky operation (high drift score, low confidence, security finding), the action is held for human review instead of executing. This is the full hold lifecycle: list, inspect, approve or reject.
Step 1: List pending holds
Step 2: Approve with modifications (or reject)
To reject instead:
Scan code content for security issues before an agent writes it to disk. Critical findings block execution; high-severity findings are held for human review.
Use ps_security_gate instead of ps_security_scan to enforce the policy โ it blocks on critical, holds high-severity for human review, and warns on medium:
Every tool call passes through this pipeline. If any stage fails, execution is blocked.
Stages 1-6 are pre-execution โ the tool never runs if any check fails. Stages 8-9 are post-execution โ they detect drift and can halt the agent for future calls.
When an agent writes code (write_file, edit_file, create_file, patch_file), the content is scanned against 10 detection patterns before execution. Severity determines enforcement:
| Severity | Enforcement | What it catches |
|---|---|---|
| CRITICAL | Blocked โ execution denied | SQL injection via template literals, hardcoded API keys/passwords/tokens |
| HIGH | Held โ queued for human review | Security-related TODOs, logging sensitive data, insecure defaults (cors(), 0.0.0.0, debug: true) |
| MEDIUM | Warned โ logged, execution continues | Empty catch blocks, hedging comments ("probably works"), disabled tests |
| LOW | Logged โ no enforcement | DROP TABLE, rm -rf (flagged for awareness) |
All claims below are backed by passing tests (104 tests across 5 test files):
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/chrbailey-promptspeak-mcp-server)<a href="https://allmcps.com/mcp/chrbailey-promptspeak-mcp-server"><img src="https://allmcps.com/api/badge/chrbailey-promptspeak-mcp-server?style=directory" alt="Promptspeak MCP Server on AllMCPs" /></a>