Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(mcp): update thread metadata #8690

Mergedjuliusmarmingemerged 5 commits intot3code/codex-turn-mapping fromrefs/pull/8690/headmerged by juliusmarminge View on GitHub

Showing 16 changed files with 51 additions and 1 deletion (loading 13).

x
0 of 16 viewed, 16 left
7 additions and 0 deletionsapps/server/src/mcp/toolkits/orchestrator/handlers.tsModified
View file
@@ -3,6 +3,7 @@
​
import { McpInvocationContext } from "../../McpInvocationContext.ts";
import { OrchestratorMcpService } from "../../OrchestratorMcpService.ts";
+import { ThreadMetadataMcpService } from "../../ThreadMetadataMcpService.ts";
​
const handlers = {
orchestrator_capabilities: () =>
@@ -91,6 +92,12 @@
const service = yield* OrchestratorMcpService;
return yield* service.readThread(scope, input);
}),
+ t3_thread_update: (input) =>
+ Effect.gen(function* () {
+ const scope = yield* McpInvocationContext;
+ const service = yield* ThreadMetadataMcpService;
+ return yield* service.update(scope, input);
+ }),
t3_thread_send: (input) =>
Effect.gen(function* () {
const scope = yield* McpInvocationContext;
23 additions and 1 deletionapps/server/src/mcp/toolkits/orchestrator/tools.test.tsModified
View file
@@ -1,7 +1,12 @@
import { assert, describe, it } from "@effect/vitest";
import { Tool } from "effect/unstable/ai";
​
-import { CreateThreadsTool, DelegateTaskTool, ScheduleTaskTool } from "./tools.ts";