Skip to content

Fix validation failure for MCP tools without parameters#28

Merged
CodeWithKyrian merged 2 commits into
mainfrom
fix/empty-params-tool-validation
Jun 24, 2025
Merged

Fix validation failure for MCP tools without parameters#28
CodeWithKyrian merged 2 commits into
mainfrom
fix/empty-params-tool-validation

Conversation

@CodeWithKyrian

Copy link
Copy Markdown
Contributor

Tools with no parameters fail validation in v3.0.0 with the error: Invalid type. Expected object, but received unknown.

This is a regression from v2.x where such tools worked correctly.

Fixes #26

@CodeWithKyrian CodeWithKyrian merged commit 590aa38 into main Jun 24, 2025
8 checks passed
@CodeWithKyrian CodeWithKyrian deleted the fix/empty-params-tool-validation branch June 24, 2025 09:07
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.

McpTool without parameters fails execution

1 participant