feat(hooks): add mcp_context to BeforeTool and AfterTool hook inputs (#15656)

Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
Vijay Vasudevan
2026-01-08 10:35:33 -08:00
committed by GitHub
parent 660368f249
commit eb3f3cfdb8
7 changed files with 325 additions and 6 deletions
@@ -98,6 +98,7 @@ export class ToolExecutor {
liveOutputCallback,
shellExecutionConfig,
setPidCallback,
this.config,
);
} else {
promise = executeToolWithHooks(
@@ -109,6 +110,8 @@ export class ToolExecutor {
tool,
liveOutputCallback,
shellExecutionConfig,
undefined,
this.config,
);
}