MCPTap v2.6.1
[2.6.1]
Added
-
HTTP session-id header injection via LD_PRELOAD —
file_block.c
now interceptsconnect,send,write,close,dup, anddup2
to automatically inject asession-id: <id>HTTP header into requests
sent to the MCPTap proxy on localhost. The header carries
CODEX_THREAD_IDorHERMES_SESSION_ID(fallback), so MCPTap can
attribute requests to the correct session without the client sending
the header explicitly. The MCPTap listen address is discovered from
/proc/<pid>/environ(PID read fromproxy.pid, refreshed every 5 s).
A compact fd bitmap with pthread mutex tracks which sockets connect to
MCPTap. Only plain HTTP (localhost) is supported — encrypted traffic
(HTTPS) is not intercepted. -
HERMES_SESSION_IDfallback —build_control_path()in
file_block.cnow readsCODEX_THREAD_IDfirst and falls back to
HERMES_SESSION_IDwhen the former is unset, enabling Hermes Agent
sessions to use the same per-session file-blocking control files. -
PID file for LD_PRELOAD discovery —
mcptap/app.pywrites the
proxy process PID to/tmp/mcptap/proxy.pidat startup and removes it
on cleanup. Thefile_block.clibrary reads this file to locate the
MCPTap process and fetch its listen address from/proc/<pid>/environ. -
ha()shell alias — new alias inexamples/home/user/.bash_aliases
launches Hermes Agent withLD_PRELOADfile blocking, mirroring the
existingcx()alias for Codex CLI. -
Shared
get_profile()helper — profile detection logic extracted
fromcx()into a reusableget_profile()function, now used by both
cx()andha(). New project profiles added:alokai,llmcouncil,
shopware. -
Hermes Agent documentation —
README.mdanddocs/FEATURES.md
updated with Hermes Agent setup instructions, configuration example
(provider: custom,base_url,api_mode: codex_responses), and
references alongside Codex CLI throughout. -
docs/ISSUES.md— new documentation file listing upstream GitHub
issues that MCPTap addresses. Organized by project (Hermes Agent, Codex,
Ollama) with direct links to each issue.
Changed
-
cx()alias simplified — thesystemctl --user restart mcptap.service
call was removed; profile detection now delegates toget_profile(). -
Makefile: link
-lpthread—file_block/Makefileadds-lpthread
for the pthread mutex used by the fd tracking table and MCPTap address
cache.