TraceGuard Core
TraceGuard Core
TraceGuard Core includes a Python governance/evidence library and an optional MCP action-name gate.
MCP gate scope
"TRACEGUARD_ALLOWED_ACTIONS": "[\"read_logs\"]"Example configuration:
{
"mcpServers": {
"traceguard-core": {
"command": "uvx",
"args": ["traceguard-core"],
"env": {
"TRACEGUARD_ALLOWED_ACTIONS": "[\"read_logs\"]"
}
}
}
}Related MCP server: reasongate
Install
After the 0.1.7 release is published:
python -m pip install traceguard-core==0.1.7The distribution name is traceguard-core; the core Python package is traceguard and the MCP adapter is traceguard_core.
Development tests
Pytest is configured to put src/ first on the import path, preventing the legacy root-level traceguard.py script from shadowing the traceguard package during collection. The release checks run the package contract tests directly; unrelated legacy integration tests are not part of this package test command.
python -m pip install -e '.[test]'
python -m pytest -q tests/test_engine_extra.py tests/test_mcp_gate.pyAvailable Tools
1 tooltraceguard_check_actionA
Return ALLOW or BLOCK for an exact action name using the configured TRACEGUARD_ALLOWED_ACTIONS allowlist. This tool does not execute the action. Arguments are not checked against per-tool schemas.
Inputs: arguments (required), target_tool (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only a single tool, there is no possibility of confusion or overlap with another tool. The tool's purpose is clearly stated as an allow/block check for exact action names.
The single tool name `traceguard_check_action` follows a clear verb_noun snake_case pattern with a consistent prefix. There are no other names to conflict with, so consistency is trivially perfect.
A server named 'TraceGuard Core' with only one tool feels too thin for its apparent scope of policy enforcement. The tool itself is substantive, but a core authorization service typically requires more operations (e.g., managing the allowlist, listing allowed actions).
The surface only checks actions against a pre-configured allowlist. There is no way to inspect or modify the allowlist, validate arguments, or execute actions, leaving significant gaps for a policy server. Agents cannot manage or audit the policy through this server.
Maintenance
Related MCP Connectors
Guard wraps stdio MCP servers: risky calls wait for a person; no answer, no run. Remote: cooperative
MCP server (stdio): validate JSON against JSON Schema (draft-07 / 2020-12) via the AgentForge API
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Open-source MCP gateway with per-agent tool permissions, call approvals and tool-change review.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceSits in front of any MCP server to enforce allow/ask/block policies on tool calls, paths, shell commands, and network domains, with local approval prompts and an audit log.MIT
- AlicenseBqualityBmaintenanceProvenance gateway for stdio MCP servers. Runs in front of any MCP server, drafts a policy per tool from the server's own schemas, and blocks a tools/call whose destination or content came from an untrusted tool result, regardless of wording. The blocked call is returned as an error result with the provenance chain. Python, Apache-2.0, pip install reasongate.1421 PyPI17Apache 2.0
- AlicenseNot gradedqualityBmaintenanceWraps any stdio MCP server, holding each tool call until a human approves or denies it from their phone, and only then executing the call.MIT
- AlicenseNot gradedqualityCmaintenanceProvides an MCP stdio interface for AI agents to propose tool calls that are validated against task policy, held for human approval when required, executed in a sandboxed Linux environment, and recorded in an audit log.MIT