chunk-invariance
Checks whether your streaming redactor leaks a secret split across chunks; writes a pytest for it.
Connector by ninadphalak · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/ninadphalak-chunk-invariance
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, security-scanning
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.
- Tools
- 2 read · 1 write · 0 delete
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Tools by what they do 3
Read from the source code; the running server may list different tools.
Read 2 · Look things up without changing anything.
check_stream_filterexplain
Write 1 · Create, change, send or run things.
write_regression_test
Network hosts it talks to 1
github.com· found in code
Tools (3)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
check_stream_filterCheck whether the user's streaming filter leaks or changes values that are split across chunks. Streams each sample through the filter in every two-part split (or more parts) and compares the joined output with filtering the whole text at once. Returns PASS or FAIL, the first failing split in plain words (which value came out unredacted), the number of splits checked, and how to fix it. It imports and runs the user's own code from project_dir on this machine, in a separate process that is stopped after timeout_seconds. The server makes no network calls and writes no files. Its result repeats t…
explainExplain in one paragraph why filtering a stream chunk by chunk leaks values cut across chunks, with an example and the fix. No inputs.
write_regression_testWrite a pytest file that runs chunk_invariance.assert_chunk_invariant on the user's streaming filter for each sample, so their CI keeps checking that values split across chunks cannot leak. Takes the same inputs as check_stream_filter, first checks that the target imports, and returns the file text with a suggested file name and whether it passes today. Save it in the user's tests folder; the test environment needs `pip install chunk-invariance`. It imports and runs the user's own code from project_dir on this machine, in a separate process that is stopped after timeout_seconds. The server mak…
Compare and alternatives
Featured in
Signals
- Stars
- 13
- Forks
- 4
- Open issues
- 7
- Weekly downloads
- 140
- Last commit (this folder)
- Oct 19, 2026 (9 days ago)
- Last release
- Oct 19, 2026 (9 days ago)
- Last package publish
- Oct 19, 2026 (9 days ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.ninadphalak/chunk-invariance- Version
- 0.2.0
- Auth
- No auth
- Packages
- pypi chunk-invariance
- License
- Apache-2.0
- Repository
- github.com/ninadphalak/LLM-Shield-Proxy
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
Cite this page
chunk-invariance MCP server. Agent Mart. https://agentmart.dev/connectors/ninadphalak-chunk-invariance (last updated 2026-10-24)