@devries-cameron20 / t3code-1 / commits / ee2763e9b2
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Reject unknown params in t3_thread_read (#17823)

Miklós Fazekas committed Oct 12, 2026 at 03:18 UTC ee2763e9b20f937de0c2adffff8dddfe2d5af3b3
2 files changed +8
apps/server/src/mcp/OrchestratorMcpToolkit.integration.test.ts
+6
@@ -1426,6 +1426,12 @@ describe("orchestrator MCP toolkit", () => {
1426 expect(threadListTool?.tool.annotations?.idempotentHint).toBe(true);
1427 const threadReadTool = server.tools.find(({ tool }) => tool.name === "t3_thread_read");
1428 expect(threadReadTool?.tool.annotations?.readOnlyHint).toBe(false);
1429 + expect(threadReadTool?.tool.inputSchema).toMatchObject({ additionalProperties: false });
1430 + const unknownPagingParamError = yield* invoke("t3_thread_read", {
1431 + threadId: parentThreadId,
1432 + cursor: 90,
1433 + }).pipe(Effect.flip);
1434 + expect(unknownPagingParamError.message).toContain("Expected no excess property");
1435 const threadUpdateTool = server.tools.find(
1436 ({ tool }) => tool.name === "t3_thread_update",
1437 );
apps/server/src/mcp/toolkits/orchestrator/tools.ts
+2
@@ -214,6 +214,8 @@ const ThreadReadTool = Tool.make("t3_thread_read", {
214 dependencies,
215 })
216 .annotate(Tool.Title, "Read a T3 thread")
217 + // Strict so a misspelled paging param fails instead of silently reading from position 0.
218 + .annotate(Tool.Strict, true)
219 .annotate(Tool.Readonly, false)
220 .annotate(Tool.Destructive, false)
221 .annotate(Tool.Idempotent, true);