Skip to content

Commit c032442

Browse files
RVZO6claude
andcommitted
fix(server): outside MCP clients stop being offered tool_search
tool_search arrived on main after this branch. It acts as the calling thread, so it needs the same hidden-outside annotation that toLayer now requires. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent d137fa8 commit c032442

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • apps/server/src/mcp/toolkits/toolSearch

‎apps/server/src/mcp/toolkits/toolSearch/tools.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { OrchestratorMcpFailure } from "@t3tools/contracts";
22
import * as Schema from "effect/Schema";
3-
import { Tool, Toolkit } from "effect/ai";
3+
import { McpSchema, Tool, Toolkit } from "effect/ai";
44

55
import * as McpInvocationContext from "../../McpInvocationContext.ts";
66
import * as McpToolExposure from "../../McpToolExposure.ts";
@@ -17,6 +17,7 @@ const ToolSearchTool = Tool.make(McpToolExposure.TOOL_SEARCH, {
1717
dependencies: [McpInvocationContext.McpInvocationContext, McpToolExposure.McpToolExposure],
1818
})
1919
.annotate(Tool.Readonly, true)
20-
.annotate(Tool.Destructive, false);
20+
.annotate(Tool.Destructive, false)
21+
.annotate(McpSchema.EnabledWhen, McpInvocationContext.hiddenFromOutsideClients);
2122

2223
export const ToolSearchToolkit = Toolkit.make(ToolSearchTool);

0 commit comments

Comments
 (0)