You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: rename strict to strictInputSchemaValidation
Renamed parameter from `strict` to `strictInputSchemaValidation` for clarity.
The longer name makes it more explicit that this validation applies specifically
to the input schema and helps distinguish it from other types of strictness.
Updated:
- src/server/mcp.ts: Parameter in registerTool config and _createRegisteredTool signature
- src/server/mcp.test.ts: Test using the renamed parameter
- README.md: Documentation examples and notes
Changes linted and tested.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
- Production APIs: Ensure clients send only expected parameters
1134
1134
- Security-sensitive tools: Prevent injection of unexpected data
1135
1135
1136
-
**Note:** The `strict` parameter is only available in `registerTool()`. The legacy `tool()` method uses lenient validation for backward compatibility.
1136
+
**Note:** The `strictInputSchemaValidation` parameter is only available in `registerTool()`. The legacy `tool()` method uses lenient validation for backward compatibility.
0 commit comments