fix: allow empty parameters for MCP tools without parameters#130
Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom Nov 21, 2025
fix/allow-empty-mcp-parametersbreaking-brake/cc-wf-studio:fix/allow-empty-mcp-parametersCopy head branch name to clipboard
Merged
fix: allow empty parameters for MCP tools without parameters#130breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom fix/allow-empty-mcp-parametersbreaking-brake/cc-wf-studio:fix/allow-empty-mcp-parametersCopy head branch name to clipboard
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/allow-empty-mcp-parametersbreaking-brake/cc-wf-studio:fix/allow-empty-mcp-parametersCopy head branch name to clipboard
Conversation
- Allow parameters: [] for tools with no parameters
- Allow parameterValues: {} when parameters is empty
- Fixes export validation error for browser_snapshot and similar tools
This was referenced Nov 21, 2025
Merged
Contributor
|
🎉 This PR is included in version 2.11.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
breaking-brake
added a commit
that referenced
this pull request
Nov 23, 2025
- Allow parameters: [] for tools with no parameters
- Allow parameterValues: {} when parameters is empty
- Fixes export validation error for browser_snapshot and similar tools
breaking-brake
pushed a commit
that referenced
this pull request
Nov 23, 2025
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
MCP tools that have no parameters (e.g.,
browser_snapshot) were failing export validation with errors:Current Behavior
browser_snapshot)parameters: []andparameterValues: {}(valid empty state)Expected Behavior
parameters: []andparameterValues: {}(valid empty state)Solution
Modified validation logic in
validate-workflow.tsto allow empty arrays/objects for parameter-less tools.Changes
File:
src/extension/utils/validate-workflow.ts(Lines 427-444)Before:
After:
Logic:
parameters: []is now valid (parameter-less tools)parameterValues: {}is valid whenparametersis emptyparameterValuesexistence is only checked whenparametershas itemsImpact
Testing
browser_snapshot(no parameters)parameters: []andparameterValues: {}npm run format && npm run lint && npm run checknpm run buildsucceededNotes
browser_snapshot🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com