Charlie Marsh
cc44ffb3e2
Start dormant MCP servers for hook calls ( #55263 )
...
## Why
MCP tool hooks need to invoke model-hidden tools even when a subagent's cached server has not started. Their timeout must also cover server startup.
## What changed
- Let cached servers with allowed model-hidden tools remain dormant until called.
- Wait for the selected server when executing an MCP hook, leaving unrelated cached servers dormant, and apply the hook timeout to the entire operation.
- Capture tool namespace attribution after startup and retain it only while catalog revisions remain unchanged.
- Validate the server, environment, and tool filter before starting a server or capturing attribution.
## Testing
Extend integration coverage for cached subagent hooks under both startup readiness modes, startup timeouts without context injection, and namespace attribution for hook and token-budget context while keeping tools hidden from the model. Verify that a direct call starts a cached server whose tools are hidden from model exposure.
GitOrigin-RevId: 7a54b69aa2515722aeb925e03e1667bf63aa67ca
2026-10-19 11:40:15 +00:00
..
2026-10-17 23:17:51 +00:00
2026-10-17 04:02:21 +00:00
2026-10-17 04:02:21 +00:00
2026-10-17 23:17:51 +00:00
2026-10-17 23:17:51 +00:00
2026-10-14 19:47:50 +00:00
2026-10-19 09:03:12 +00:00
2026-10-14 20:53:59 +00:00
2026-10-17 04:02:21 +00:00
2026-10-06 16:56:39 +00:00
2026-10-07 21:52:43 +00:00
2026-10-19 11:35:08 +00:00
2026-10-13 08:44:23 +00:00
2026-10-18 01:58:02 +00:00
2026-10-16 17:31:47 +00:00
2026-10-18 22:43:56 +00:00
2026-10-14 23:02:21 +00:00
2026-10-01 20:17:34 +00:00
2026-10-17 04:02:21 +00:00
2026-10-07 13:05:06 +00:00
2026-10-17 04:02:21 +00:00
2026-09-16 04:59:23 +00:00
2026-09-24 16:36:57 +00:00
2026-09-24 16:36:57 +00:00
2026-10-10 01:25:00 +00:00
2026-10-13 15:24:00 +00:00
2026-10-10 01:25:00 +00:00
2026-10-05 18:52:51 +00:00
2026-09-24 22:54:29 +00:00
2026-10-19 09:03:12 +00:00
2026-10-10 18:26:18 +00:00
2026-10-09 23:26:34 +00:00
2026-10-10 01:25:00 +00:00
2026-10-14 18:02:25 +00:00
2026-10-15 20:57:39 +00:00
2026-10-12 18:53:49 +00:00
2026-10-13 08:13:34 +00:00
2026-10-13 09:18:45 +00:00
2026-10-10 01:25:00 +00:00
2026-10-10 01:25:00 +00:00
2026-10-13 23:51:47 +00:00
2026-10-13 23:51:47 +00:00
2026-10-13 23:51:47 +00:00
2026-10-10 17:30:25 +00:00
2026-10-14 05:36:44 +00:00
2026-10-05 16:10:27 +00:00
2026-10-14 09:44:24 +00:00
2026-09-26 23:17:41 +00:00
2026-10-09 20:14:04 +00:00
2026-10-06 22:39:32 +00:00
2026-10-14 14:08:26 +00:00
2026-10-17 04:02:21 +00:00
2026-10-14 02:01:49 +00:00
2026-10-05 23:52:06 +00:00
2026-10-08 13:45:19 +00:00
2026-10-14 19:47:50 +00:00
2026-10-14 19:47:50 +00:00
2026-10-14 19:47:50 +00:00
2026-10-14 21:11:58 +00:00
2026-10-07 21:52:43 +00:00
2026-09-18 23:07:36 +00:00
2026-09-18 23:07:36 +00:00
2026-10-07 03:07:51 +00:00
2026-10-01 15:57:03 +00:00
2026-09-28 17:29:52 +00:00
2026-10-19 11:40:15 +00:00
2026-10-18 22:43:56 +00:00
2026-10-14 02:01:49 +00:00
2026-10-15 19:51:22 +00:00
2026-10-14 14:08:26 +00:00
2026-10-01 05:33:36 +00:00
2026-10-08 18:42:58 +00:00
2026-10-16 19:08:19 +00:00
2026-10-16 19:08:19 +00:00
2026-10-07 16:35:05 +00:00
2026-10-13 18:15:50 +00:00
2026-09-16 15:17:41 +00:00
2026-09-26 18:36:55 +00:00
2026-09-23 22:10:04 +00:00
2026-10-08 21:18:24 +00:00
2026-10-06 21:28:13 +00:00
2026-10-10 01:25:00 +00:00
2026-10-13 22:21:31 +00:00
2026-10-17 04:02:21 +00:00
2026-10-06 19:29:40 +00:00
2026-09-15 17:09:11 +00:00
2026-10-08 23:34:16 +00:00
2026-09-29 02:05:56 +00:00
2026-09-30 02:12:42 +00:00
2026-09-19 01:03:55 +00:00
2026-09-24 16:36:57 +00:00
2026-09-24 16:36:57 +00:00
2026-09-17 18:20:28 +00:00
2026-09-29 16:53:11 +00:00
2026-10-17 04:02:21 +00:00
2026-10-16 17:31:47 +00:00
2026-10-16 17:31:47 +00:00
2026-10-07 17:59:22 +00:00
2026-10-07 21:52:43 +00:00
2026-10-08 22:27:00 +00:00
2026-10-08 13:45:19 +00:00
2026-09-30 03:22:55 +00:00
2026-09-30 03:22:55 +00:00
2026-10-14 14:08:26 +00:00
2026-10-08 16:19:09 +00:00
2026-10-18 22:43:56 +00:00
2026-10-18 22:43:56 +00:00
2026-09-24 18:07:37 +00:00
2026-10-14 02:01:49 +00:00
2026-10-14 18:02:25 +00:00
2026-10-10 01:25:00 +00:00
2026-10-06 10:39:16 +00:00
2026-10-13 12:59:15 +00:00
2026-10-02 16:55:41 +00:00
2026-10-01 03:31:48 +00:00
2026-10-14 18:01:54 +00:00
2026-10-14 18:01:54 +00:00
2026-10-10 01:25:00 +00:00
2026-10-04 21:19:05 +00:00
2026-10-17 04:02:21 +00:00
2026-09-18 00:25:37 +00:00
2026-09-19 01:21:32 +00:00
2026-10-08 06:31:56 +00:00
2026-09-23 18:40:12 +00:00