Skip to content

Conversation

@evalstate
Copy link
Collaborator

The gradio_files tool was broken because it was being excluded from Gradio setup after commit 6842a47 removed it from isGradioTool().

Root cause:

  • isGradioTool('gradio_files') now returns false (for streaming logic)
  • skipGradioSetup() was skipping ALL non-Gradio tools
  • This caused the proxy factory to return early (mcp-proxy.ts:124-126)
  • gradio_files was never registered (happens at mcp-proxy.ts:215-249)

Solution:
Add special case for gradio_files in skipGradioSetup() to ensure it still gets registered during the Gradio setup phase, even though it doesn't need special streaming handling.

This separates two concerns:

  1. Streaming behavior (isGradioTool) - gradio_files doesn't need this
  2. Registration phase (skipGradioSetup) - gradio_files DOES need this

The gradio_files tool was broken because it was being excluded from
Gradio setup after commit 6842a47 removed it from isGradioTool().

Root cause:
- isGradioTool('gradio_files') now returns false (for streaming logic)
- skipGradioSetup() was skipping ALL non-Gradio tools
- This caused the proxy factory to return early (mcp-proxy.ts:124-126)
- gradio_files was never registered (happens at mcp-proxy.ts:215-249)

Solution:
Add special case for gradio_files in skipGradioSetup() to ensure it
still gets registered during the Gradio setup phase, even though it
doesn't need special streaming handling.

This separates two concerns:
1. Streaming behavior (isGradioTool) - gradio_files doesn't need this
2. Registration phase (skipGradioSetup) - gradio_files DOES need this
@evalstate evalstate merged commit b60fdcb into main Nov 13, 2025
3 checks passed
@evalstate evalstate deleted the claude/fix-gradio-files-tool-011CV63WmJ12KLqsHwnRSGXU branch November 19, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants