PromptSpeak Governance MCP server
io.github.chrbailey/promptspeak·v0.4.1·1 starsPre-execution governance for AI agents. Validates tool calls before they execute.
1 stars
Reviews
Write oneNobody has reviewed PromptSpeak Governance yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
PromptSpeak Governance tools (56, 7 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
ps_audit_getGet audit log entries.
ps_capability_getReport this server's PromptSpeak capabilities (version, verb count, namespaces).
ps_confidence_bulk_setSet multiple confidence thresholds at once.
ps_confidence_getGet all confidence thresholds.
ps_confidence_setSet a confidence threshold. This is the hidden knob for operators.
ps_config_activateActivate a registered policy overlay.
ps_config_exportExport current configuration for backup.
ps_config_getGet current configuration including active overlay and thresholds.
ps_config_importImport configuration from backup.
ps_config_setRegister a new policy overlay.
ps_delegateDelegate a task from parent agent to child agent. Enforces inheritance rules and constraint propagation.
ps_delegate_listList delegations for an agent.
ps_delegate_revokeRevoke an active delegation.
ps_executewrite actionExecute an action under PromptSpeak frame governance. The gatekeeper validates and enforces constraints.
ps_execute_batchwrite actionExecute multiple actions under a single frame. Supports sequential or parallel execution with optional stop-on-failure.
ps_execute_dry_runwrite actionCheck if an action would succeed without executing. Returns decision and coverage analysis.
ps_expandExpand a PromptSpeak expression to natural English. Used by safety filters for human-readable action descriptions.
ps_feature_getGet all feature flags.
ps_feature_setSet a feature flag.
ps_handshake_initiateStart a PromptSpeak verification handshake. Returns probe expression to send to remote agent.
ps_handshake_respondHandle an incoming PromptSpeak handshake probe. Parses, validates, and echoes confirmation.
ps_hold_approveApprove a held execution request. The operation will proceed with optional modifications.
ps_hold_configConfigure hold behavior and thresholds. Controls when operations are held for human review.
ps_hold_listList all pending holds awaiting human approval. Returns holds for risky operations that were blocked pending review.
ps_hold_rejectReject a held execution request. The operation will not proceed.
ps_hold_statsGet hold statistics and history.
ps_parseParse a PromptSpeak EBNF expression into an AST. Returns AST tree and metadata (verb count, pipes, branches).
ps_registry_auditGet full change history for a verb (registrations, transitions, updates).
ps_registry_lookupResolve a verb symbol to its full definition, including aliases.
ps_registry_namespaceList all verbs registered in a namespace.
ps_registry_proposewrite actionSubmit a new verb for review. Created with status: proposed.
ps_registry_statusCheck the lifecycle state and safety classification of a verb.
ps_registry_versionGet current spec version, verb count, and registry statistics.
ps_security_configConfigure security detection patterns. List, enable, disable, or change severity of patterns.
ps_security_gateScan code and enforce security policy. Blocks on critical findings, holds high-severity for review, warns on medium, logs low/info.
ps_security_scanScan code content for security vulnerabilities. Returns findings classified by severity (critical, high, medium, low, info).
ps_state_drift_historyGet drift history for an agent.
ps_state_getGet current state of an agent including drift metrics and circuit breaker status.
ps_state_haltImmediately halt an agent by opening its circuit breaker.
ps_state_recalibrateRecalibrate agent drift baseline. Optionally provide a new baseline configuration.
ps_state_resetReset agent state. Can reset circuit breaker, drift metrics, and/or baseline.
ps_state_resumeResume a halted agent.
ps_state_systemGet overall system state including all agents, operations, and drift alerts.
ps_symbol_add_alternativeAdd an alternative explanation to a symbol's findings. CRITICAL for preventing false positives: When a pattern-based finding could have multiple explanations, document them here. Adding high-likelihood alternatives automatically reduces confidence in the original claim. Examples: - "9 identical payments" → Alternative: "Monthly insurance premium financing" - "Large round numbers" → Alternative: "N
ps_symbol_createwrite actionCreate a new directive symbol in the registry. Symbol IDs follow the pattern: - Public companies: Ξ.{TICKER}.{PERIOD} (e.g., Ξ.NVDA.Q3FY25) - People: Ξ.I.{NAME}.{CONTEXT} (e.g., Ξ.I.JENSEN_HUANG.BIO) - Events: Ξ.E.{TYPE}.{ID} (e.g., Ξ.E.EARNINGS.NVDA.20241120) - Sectors: Ξ.S.{SECTOR}.{CONTEXT} (e.g., Ξ.S.SEMICONDUCTORS.2024) - Tasks: Ξ.T.{PROJECT}.{ID} (e.g., Ξ.T.PORTFOLIO_REVIEW.001) - Knowledge:
ps_symbol_deletewrite actionDelete a symbol from the registry.
ps_symbol_formatFormat a symbol for inclusion in a prompt. Returns LLM-ready text.
ps_symbol_getRetrieve a directive symbol by ID. Returns the full symbol with all grounding context.
ps_symbol_importBulk import symbols from external data (HuggingFace, JSON, etc.).
ps_symbol_listList symbols with optional filtering.
ps_symbol_list_unverifiedList symbols that require human review. Returns symbols flagged for review due to: - Accusatory claims without sufficient evidence - Missing alternative explanations - High-stakes claims (fraud, violations, diagnoses) - Low confidence scores Use this to find claims that need human validation before action.
ps_symbol_statsGet statistics about the symbol registry.
ps_symbol_updatewrite actionUpdate an existing symbol. Creates a new version with updated hash.
ps_symbol_verifyRecord human verification of a symbol claim. Use this tool to upgrade or dispute claims based on human review: - VERIFIED: Human expert has confirmed the claim is accurate - CORROBORATED: Additional evidence supports the claim - DISPUTED: Human reviewer found the claim to be incorrect or misleading Important: Accusatory claims (fraud, violations) should be DISPUTED if they lack evidence or have pl
ps_validateValidate a PromptSpeak frame. Returns validation report with errors, warnings, and suggestions.
ps_validate_batchValidate multiple frames at once. Useful for validating delegation chains.
Public scan report
scanner v0.1.10 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan193 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 2 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How PromptSpeak Governance compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 95% of 48,255 servers
- Tools
- 56
- the typical server has 7
- Tools that change things
- 13%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 1
- more than 65% of 28,688 servers
What its tools let an agent do: 49 read · 7 change
Install PromptSpeak Governance in Claude Code, Cursor or VS Code
Runs npx -y @chrbailey/promptspeak-mcp-server on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add promptspeak -- npx -y @chrbailey/promptspeak-mcp-server
What the publisher says
From the PromptSpeak Governance repository's README, as published. We do not edit it. Read it on GitHub
promptspeak-mcp-server
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.
When to use this
- You run AI agents that call tools (MCP servers, function calling, tool use) and need a governance layer between the agent and the tools.
- You need human-in-the-loop approval for high-risk operations (production deployments, financial transactions, legal filings).
- You want to detect behavioral drift — an agent gradually shifting away from its assigned task.
- You need an audit trail of every tool call an agent attempted, whether it was allowed or blocked.
- You operate in a regulated domain (legal, financial, healthcare) where agent actions must be deterministically constrained.
Install
Claude Code
Add to ~/.claude/settings.json (or project-level .claude/settings.json):
{
"mcpServers": {
"promptspeak": {
"command": "npx",
"args": ["promptspeak-mcp-server"]
}
}
}Restart Claude Code. All 56 governance tools are immediately available.
Claude Desktop
Add to claudedesktopconfig.json:
{
"mcpServers": {
"promptspeak": {
"command": "npx",
"args": ["promptspeak-mcp-server"]
}
}
}As a library
npm install promptspeak-mcp-serverFrom source
git clone https://github.com/chrbailey/promptspeak-mcp-server.git
cd promptspeak-mcp-server
npm install && npm run build
npm startUsage examples
1. Validate a governance frame
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.
// Tool call: ps_validate
{
"name": "ps_validate",
"arguments": {
"frame": "⊕◊▶α",
"validationLevel": "full"
}
}// Response
{
"valid": true,
"frame": "⊕◊▶α",
"parsedFrame": {
"mode": { "symbol": "⊕", "meaning": "strict" },
"domain": { "symbol": "◊", "meaning": "financial" },
"action": { "symbol": "▶", "meaning": "execute" },
"entity": { "symbol": "α", "meaning": "primary" }
},
"parseConfidence": 1.0,
"report": {
"valid": true,
"errors": [],
"warnings": [
{ "code": "ACTION_MISSING_DOMAIN", "message": "Consider adding domain context", "severity": "warning" }
]
},
"summary": { "errors": 0, "warnings": 1, "passed": 16 }
}Invalid frames return actionable suggestions:
// Tool call: validate a frame with conflicting modes
{
"name": "ps_validate",
"arguments": { "frame": "⊕⊖▶", "validationLevel": "semantic" }
}
// Response: blocked — strict + flexible modes conflict
{
"valid": false,
"summary": { "errors": 1, "warnings": 0, "passed": 10 },
"suggestions": ["Remove either ⊕ (strict) or ⊖ (flexible) - cannot have both"]
}2. Hold queue workflow — human-in-the-loop approval
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
PromptSpeak Governance: common questions
- Is PromptSpeak Governance MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the PromptSpeak Governance safety report
- How do I install PromptSpeak Governance?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does PromptSpeak Governance need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is PromptSpeak Governance maintained?
- The last commit was 40 days ago (2026-09-25). The latest release is v0.4.1.
- How does PromptSpeak Governance compare with other MCP servers?
- safety score 92/100 (higher than 95% of 48,255 servers); tools 56 (the typical server has 7); tools that change things 13% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.