Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): defer optional T3 MCP tools via tool_call proxy #39362

MergedEliBlauBalto(GitHub profile, opens in a new tab)merged 16 commits intomain fromrefs/pull/39362/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 24 changed files with 46 additions and 5 deletions (loading 21).

x
0 of 24 viewed, 24 left
9 additions and 3 deletionsapps/server/src/mcp/toolkits/toolSearch/handlers.tsModified
View file
@@ -8,11 +8,17 @@
export const layer = McpToolAccess.toLayer(ToolSearchToolkit, {
tool_search: McpToolAccess.readsAsCaller(({ query }) =>
Effect.gen(function* () {
- const { thread } = yield* McpInvocationContext.McpInvocationContext.pipe(
- Effect.flatMap((scope) => McpInvocationContext.requireThreadScope(scope, "tool_search")),
+ const scope = yield* McpInvocationContext.McpInvocationContext.pipe(
+ Effect.flatMap((current) =>
+ McpInvocationContext.requireThreadScope(current, "tool_search"),
+ ),
);
const exposure = yield* McpToolExposure.McpToolExposure;
- return { tools: yield* exposure.search(thread.providerSessionId, query) };
+ return {
+ tools: yield* exposure.search(scope.thread.providerSessionId, query, {
+ mode: scope.toolExposure,
+ }),
+ };
}),
),
});
8 additions and 2 deletionsapps/server/src/mcp/toolkits/toolSearch/tools.tsModified
View file
@@ -7,10 +7,16 @@
​
const ToolSearchTool = Tool.make(McpToolExposure.TOOL_SEARCH, {
description:
- "Load T3 Code tools you do not have yet, then call them by name. Search by name or purpose: threads (t3_thread_*), projects (t3_project_*), worktrees, preview_* browser, device_*, html_preview/html_render, schedule_task, pull requests and guides, attachments, request_secret, environment links. Exact names work too.",