Skip to content

Commit 90447fd

Browse files
committed
fix(server): pass JSON tool args to Toolkit.handle for effect 4.1.3
1 parent 07eea50 commit 90447fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/src/mcp/McpHttpServer.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ const registerImageTool = Effect.fn("McpHttpServer.registerImageTool")(function*
697697
R,
698698
>(
699699
tool: T,
700-
handle: (payload: Tool.Parameters<T>) => Effect.Effect<{ readonly encodedResult: unknown }, E, R>,
700+
handle: (payload: Schema.Json) => Effect.Effect<{ readonly encodedResult: unknown }, E, R>,
701701
provide: (
702702
effect: Effect.Effect<{ readonly encodedResult: unknown }, E, R>,
703703
) => Effect.Effect<
@@ -732,7 +732,7 @@ const registerImageTool = Effect.fn("McpHttpServer.registerImageTool")(function*
732732
fiber.context,
733733
McpInvocationContext.McpInvocationContext,
734734
);
735-
return provide(handle(payload as Tool.Parameters<T>)).pipe(
735+
return provide(handle(payload)).pipe(
736736
Effect.provideService(McpInvocationContext.McpInvocationContext, invocation),
737737
Effect.matchCauseEffect({
738738
onFailure: imageToolFailure(tool.name, operation, failureText),

0 commit comments

Comments
 (0)