@deotio/mcp-sigv4-proxy 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/proxy.js +5 -8
  2. package/package.json +1 -1
package/dist/proxy.js CHANGED
@@ -515,16 +515,13 @@ export async function handleWarmLine(input, ws) {
515
515
  return true;
516
516
  }
517
517
  if (WARM_CACHEABLE.has(method)) {
518
- // List methods: serve from cache immediately if available
518
+ // List methods: serve from cache immediately if available — never block on ws.ready.
519
+ // Warm-up is an optimistic pre-fetch; if it hasn't completed yet, fall through and
520
+ // let the backend answer directly. Blocking here would cause Claude Code's 60s
521
+ // tool-discovery timeout to fire before warm-up finishes.
519
522
  if (tryWarmResponse(input.body, input.requestId, ws))
520
523
  return true;
521
- // …otherwise wait for warm-up to complete, then try cache again before forwarding
522
- log('INFO', `warm: cache miss for ${method}, waiting for warm-up to complete`);
523
- const warmed = await ws.ready;
524
- log('INFO', `warm: warm-up ${warmed ? 'succeeded' : 'failed'} — ${method} ${warmed ? 'served from cache' : 'forwarding to backend'}`);
525
- if (tryWarmResponse(input.body, input.requestId, ws))
526
- return true;
527
- log('INFO', `warm: cache still empty for ${method}, forwarding to backend`);
524
+ log('INFO', `warm: cache miss for ${method}, forwarding to backend`);
528
525
  }
529
526
  // Non-cacheable methods (tools/call etc): return false to forward normally.
530
527
  // fetchWithRetry handles any residual 424s if the backend isn't warm yet.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deotio/mcp-sigv4-proxy",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "stdio MCP proxy with AWS SigV4 signing — connect Claude Code to any IAM-authenticated MCP server using a named AWS profile",
5
5
  "type": "module",
6
6
  "bin": {