Skip to content

Commit 079a542

Browse files
bugerclaude
andauthored
fix: preserve transform_js and rate_limit on http_client tools (#563)
* fix: handle SIGUSR2 reloads in runner mode * fix: preserve transform_js and rate_limit on http_client tools from ai_mcp_servers When http_client tools were extracted from ai_mcp_servers config, the CustomToolDefinition was constructed with only a subset of fields, dropping transform_js and rate_limit. This meant the MCP server's transform_js application code never fired because tool.transform_js was always undefined. This caused disqualified candidates to appear in Workable API list responses despite the workable-api tool having a transform_js filter configured. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c124b34 commit 079a542

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/providers/ai-check-provider.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,6 +1507,13 @@ export class AICheckProvider extends CheckProvider {
15071507
auth: entry.config.auth as CustomToolDefinition['auth'],
15081508
headers: entry.config.headers as Record<string, string>,
15091509
timeout: (entry.config.timeout as number) || 30000,
1510+
// Preserve transform_js and rate_limit from the original tool config
1511+
...(entry.config.transform_js
1512+
? { transform_js: entry.config.transform_js as string }
1513+
: {}),
1514+
...(entry.config.rate_limit
1515+
? { rate_limit: entry.config.rate_limit as CustomToolDefinition['rate_limit'] }
1516+
: {}),
15101517
inputSchema: {
15111518
type: 'object',
15121519
properties: {

0 commit comments

Comments
 (0)