Skip to content

Commit 850f0f6

Browse files
fix(mcp): avoid sending jq_filter to base API
1 parent 6d04008 commit 850f0f6

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

packages/mcp-server/src/tools/classifications/universal/create-classifications-universal.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ export const tool: Tool = {
8888
};
8989

9090
export const handler = async (client: Isaacus, args: Record<string, unknown> | undefined) => {
91-
const body = args as any;
92-
return asTextContentResult(await maybeFilter(args, await client.classifications.universal.create(body)));
91+
const { jq_filter, ...body } = args as any;
92+
return asTextContentResult(
93+
await maybeFilter(jq_filter, await client.classifications.universal.create(body)),
94+
);
9395
};
9496

9597
export default { metadata, tool, handler };

packages/mcp-server/src/tools/extractions/qa/create-extractions-qa.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ export const tool: Tool = {
8787
};
8888

8989
export const handler = async (client: Isaacus, args: Record<string, unknown> | undefined) => {
90-
const body = args as any;
91-
return asTextContentResult(await maybeFilter(args, await client.extractions.qa.create(body)));
90+
const { jq_filter, ...body } = args as any;
91+
return asTextContentResult(await maybeFilter(jq_filter, await client.extractions.qa.create(body)));
9292
};
9393

9494
export default { metadata, tool, handler };

packages/mcp-server/src/tools/rerankings/create-rerankings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ export const tool: Tool = {
9292
};
9393

9494
export const handler = async (client: Isaacus, args: Record<string, unknown> | undefined) => {
95-
const body = args as any;
96-
return asTextContentResult(await maybeFilter(args, await client.rerankings.create(body)));
95+
const { jq_filter, ...body } = args as any;
96+
return asTextContentResult(await maybeFilter(jq_filter, await client.rerankings.create(body)));
9797
};
9898

9999
export default { metadata, tool, handler };

0 commit comments

Comments
 (0)