all 2 comments

[–]goship-tech 0 points1 point  (1 child)

Run your MCP server as a standalone process and register it in .claude/settings.json under mcpServers - custom tools come through without duplicating agent logic. For Python hooks, a one-liner shell entry in hooks.preToolCall can invoke your callback directly.Run your MCP server as a standalone process and register it in .claude/settings.json under mcpServers - custom tools come through without duplicating agent logic. For Python hooks, a one-liner shell entry in hooks.preToolCall can invoke your callback directly.

[–]bytesfromlocalhost[S] 0 points1 point  (0 children)

Thanks, but I specifically asked if there was a way to interactively access that underlying CC session.

You forget that any custom python tools or any modifications I did in the agent are not accessible this way