mcp-toolcall-policy-mcp
Authors and tests mcp-toolcall-policy policies from pasted text. Enforces nothing; the hook does.
An MCP server for writing and testing mcp-toolcall-policy policies. You paste a policy and a sample hook input; it returns the decision the engine would make, a per-rule trace, or lint errors and warnings.
It does not enforce anything. It does not watch, block, or change calls to any other tool or MCP
server. Enforcement is the Claude Code PreToolUse hook in the mcp-toolcall-policy package (see
its README). "allow" means "a rule in this policy permits the call". It is not a safety verdict.
Install
For Claude Code, with uv:
claude mcp add mcp-toolcall-policy-mcp -- uvx mcp-toolcall-policy-mcp
To pin one version, use uvx mcp-toolcall-policy-mcp@0.1.0. Each server release pins one exact
engine version, so the decisions it reports match that engine.
Tools
| Tool | Takes | Returns |
|---|---|---|
evaluate_policy |
policy_yaml, hook_input_json (pasted text) |
decision, rule_id, reason, hook_exit_code |
explain_decision |
policy_yaml, hook_input_json |
the decision plus a per-rule, per-predicate trace |
lint_policy |
policy_yaml |
valid, errors (code and location), warnings (code and rule id) |
- Paste only. Tools take text, never file paths. The server reads no files, opens no network connections, writes nothing, and runs no subprocesses.
- Same caps as the CLI. Policies up to 256 KiB; hook input up to the policy's
max_input_bytes(at most 8 MiB). - No echo. Responses never contain argument values or input keys: only decisions, rule ids,
policy-authored reasons, fixed codes, and policy
argnames. - Fails closed. Anything that cannot be parsed or checked returns
denywith rule id_fail_closedand a fixed code. - Every response includes two notes: "allow" is not a safety verdict, and this server does not enforce anything on other tools.
License
MIT
Metadata
Release files for mcp-toolcall-policy-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_toolcall_policy_mcp-0.1.0.tar.gz | 6.5 kB | With provenance | Details for mcp_toolcall_policy_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_toolcall_policy_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_toolcall_policy_mcp-0.1.0-py3-none-any.whl |
Total release size: 14.5 kB
Release files / mcp_toolcall_policy_mcp-0.1.0.tar.gz
| Download URL | mcp_toolcall_policy_mcp-0.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89116a52f08dbfe638e0329d94cf51c0dcaf45d5b52bab2f1e0c1b9556ade3a2
|
|
BLAKE2b-256 checksum How to use checksums |
a4f867f65fd116d9a852db8b01a061b17ad3eb65824156c8f0f7065cf6000a8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / mcp_toolcall_policy_mcp-0.1.0-py3-none-any.whl
| Download URL | mcp_toolcall_policy_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
561719815c3717b20a13014a9a212d026ac8d7f11a8451b26c8a2c55086c2918
|
|
BLAKE2b-256 checksum How to use checksums |
a4f7112c582ea09ab33864ccd4d6cc43bb6c091865dee5a9cbd9d46d147a8a47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for mcp-toolcall-policy-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mcp_toolcall_policy_mcp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.