hsm_analyze_discovery_log
Analyze discovery log files from apc-hsm-proxy to map HSM commands to APC, identify existing vs missing proxy handlers, and get migration notes without AWS credentials.
Instructions
Call this when analyzing the output of apc-hsm-proxy running in discovery mode (a discovery.jsonl file). Returns per-command APC mappings, which proxy handlers already exist, which still need to be written, and migration notes. Works without AWS credentials.
IMPORTANT — handler_exists reflects _PROXY_HANDLERS in hsm_tools.py, not the apc-hsm-proxy source tree. When a handler is completed in the proxy, update _PROXY_HANDLERS in this file so handler_exists reports correctly. Until that update is committed and the MCP server restarted, handler_exists will show false even for commands that already have working handlers.
Each log line is a JSON object: vendor — "futurex_excrypt" or "thales_payshield" cmd — HSM command code, e.g. "TPIN" or "CA" params — Futurex: parameter codes → values (sensitive fields = "[REDACTED]") payload_len — Thales: observed payload length in bytes
Args: log_content: Full text of the discovery.jsonl file (newline-delimited JSON).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_content | Yes |