From 2f2be52898822755a578c52133a72c0b461372d5 Mon Sep 17 00:00:00 2001 From: scuttletoby <123843277+scuttletoby@users.noreply.github.com> Date: Thu, 19 Nov 2026 14:10:50 +0100 Subject: [PATCH] fork seams: announce the MCP profile hooks line of PR 528 (step 1) Announces one more ClaudeAdapterV2.ts line for MCP profiles part 2: the adapter merges the profile's PreToolUse hook (the call-time guard that refuses a tool call to a server outside the thread's profile) into its own hooks. Joins the existing announcement of 2026-11-19 and updates the entry's why. List only; #528 adds the line and moves it to "added". Co-Authored-By: Claude Opus 5.5 --- .github/fork-seams.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/fork-seams.json b/.github/fork-seams.json index 7b43da7e3007d..16d5f67eb2fc2 100644 --- a/.github/fork-seams.json +++ b/.github/fork-seams.json @@ -141,7 +141,7 @@ ] }, "apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts": { - "why": "MCP profiles part 2: a Claude thread's MCP profile is applied to its session (strict MCP mode or an allowlist of outside servers, from apps/server/src/fork/claudeMcpProfile.ts), is part of the live-query key, and refuses the turn when it cannot be applied. Additions only; tested in apps/server/src/fork/claudeMcpProfile.adapter.test.ts.", + "why": "MCP profiles part 2: a Claude thread's MCP profile is applied to its session (strict MCP mode or an allowlist of outside servers, from apps/server/src/fork/claudeMcpProfile.ts), is part of the live-query key, refuses the turn when it cannot be applied, and adds a PreToolUse hook (merged into the adapter's hooks) that refuses a call to a server outside the profile. Additions only; tested in apps/server/src/fork/claudeMcpProfile.adapter.test.ts.", "added": [], "announced": { "since": "2026-11-19", @@ -155,7 +155,8 @@ "const mcpProfile = yield* mcpProfiles(turnInput.appThread, mcpOverrides);", "const checkMcpProfile = ClaudeMcpProfile.checkClaudeSession(mcpProfile, mcpOverrides);", "mcpProfileOptions: mcpProfile.options,", - "Effect.tap(checkMcpProfile)," + "Effect.tap(checkMcpProfile),", + "...input.mcpProfileOptions?.hooks," ] } },