Skip to content

Commit bdefb9b

Browse files
bhosmer-antclaude
andcommitted
Add client-side validation for tool output schemas
- Cache tool output schemas when listing tools - Validate structuredContent against outputSchema during callTool - Enforce that tools with outputSchema must return structuredContent - Add json-schema-to-zod dependency for schema conversion - Add comprehensive tests for validation scenarios 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent a95df72 commit bdefb9b

File tree

4 files changed

+535
-4
lines changed

4 files changed

+535
-4
lines changed

package-lock.json

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"eventsource": "^3.0.2",
5353
"express": "^5.0.1",
5454
"express-rate-limit": "^7.5.0",
55+
"json-schema-to-zod": "^2.6.1",
5556
"pkce-challenge": "^5.0.0",
5657
"raw-body": "^3.0.0",
5758
"zod": "^3.23.8",

0 commit comments

Comments
 (0)