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
Chalk Labs
Need help deploying chunk-invariance?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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 (12 days ago)
- Last release
- Oct 19, 2026 (12 days ago)
- Last package publish
- Oct 19, 2026 (12 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
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get chunk-invariance running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
chunk-invariance MCP server. Agent Mart. https://agentmart.dev/connectors/ninadphalak-chunk-invariance (last updated 2026-10-24)