Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestrator): scope Claude MCP tool pre-approval #3862

MergedPixPMusic(GitHub profile, opens in a new tab)merged 2 commits intot3code/codex-turn-mapping fromrefs/pull/3862/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 149 additions and 0 deletions (loading 1).

x
0 of 2 viewed, 2 left
149 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsModified
View file
@@ -19,6 +19,7 @@
ThreadId,
} from "@t3tools/contracts";
import { assert, describe, it } from "@effect/vitest";
+import * as Context from "effect/Context";
import * as DateTime from "effect/DateTime";
import * as Effect from "effect/Effect";
import * as FileSystem from "effect/FileSystem";
@@ -26,9 +27,11 @@
import * as Path from "effect/Path";
import * as Schema from "effect/Schema";
import * as Stream from "effect/Stream";
+import { Tool } from "effect/unstable/ai";
​
import { attachmentRelativePath } from "../../attachmentStore.ts";
import * as McpProviderSession from "../../mcp/McpProviderSession.ts";
+import { OrchestratorToolkit } from "../../mcp/toolkits/orchestrator/tools.ts";
import type { EventNdjsonLogger } from "../../provider/Layers/EventNdjsonLogger.ts";
import {
ProviderAdapterV2RuntimePolicy,
@@ -39,7 +42,10 @@
CLAUDE_DEFAULT_INSTANCE_ID,
CLAUDE_PROVIDER,
CLAUDE_READ_ONLY_ALLOWED_TOOLS,
+ CLAUDE_READ_ONLY_T3_MCP_ALLOWED_TOOLS,
+ CLAUDE_T3_MCP_TOOL_WILDCARD,
ClaudeProviderCapabilitiesV2,
+ claudeEffectiveQueryPolicyKey,