cd /news/agent-protocols/expose-crypto-kat-runners-as-mcp-too… · home topics agent-protocols article
[ARTICLE · art-134151] src=dev.to ↗ pub= topic=agent-protocols verified=true sentiment=· neutral

Expose Crypto KAT Runners as MCP Tools Instead of Pasting Hex

A developer proposes exposing cryptographic Known Answer Test (KAT) runners as Model Context Protocol (MCP) tools over stdio instead of pasting raw hex and ACVP JSON into chat windows. The approach defines run_crypto_kat and load_acvp_vectors tools that return small, typed outputs such as verdict, failing case ID, and a diff window, letting agents page in additional context rather than ingesting entire vector files. The developer notes the manual copy-paste loop remains a credible baseline for single algorithms and small files, with the MCP approach aimed at massive ACVP payloads and repeated re-runs.

by read1 min views1 publishedSep 18, 2026

When a Known Answer Test fails on a crypto primitive, the cause is often byte-ordering or padding. Pasting that raw hex plus the ACVP JSON into a chat window works once, but it does not scale to large vector files.

A credible baseline stays manual: run the KAT binary locally, copy only the failing vector ID and byte offset into the prompt, fix, and re-run. For a single algorithm and a small file, that loop is sufficient and easier to audit than adding server code.

The gap appears with massive ACVP payloads and repeated re-runs. One method is to put the runner behind Model Context Protocol over stdio:

run_crypto_kat(target, algorithm) returning structured status, failing case ID, and diff windowload_acvp_vectors(path) with filtering or paging instead of dumping the whole file Keep tool outputs small and typed: verdict, file, case, expected vs actual slice, and next command. Let the agent request more context explicitly rather than pushing the whole file by default.

What workaround do you use today to keep large KAT vectors out of the prompt while still giving the agent enough to fix the byte-level bug?

── more in #agent-protocols 4 stories · sorted by recency
── more on @model context protocol 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/expose-crypto-kat-ru…] indexed:0 read:1min 2026-09-18 ·