Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
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
{{ message }}
modelcontextprotocol
/
typescript-sdk
Public
Notifications
You must be signed in to change notification settings
Fork
2.2k
Star
13.4k
Code
Issues
298
Pull requests
320
Actions
Projects
Security and quality
3
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
feat(compat): registerTool/registerPrompt accept raw Zod shape, auto-wrap with z.object()
- #1901
#1901
Merged
felixweinberger
merged 16 commits into
main
modelcontextprotocol/typescript-sdk:main
from
fweinberger/v2-bc-register-rawshape
modelcontextprotocol/typescript-sdk:fweinberger/v2-bc-register-rawshape
Copy head branch name to clipboard
Apr 29, 2026
Conversation
Commits
16
(16)
Checks
Files changed
Merged
feat(compat): registerTool/registerPrompt accept raw Zod shape, auto-wrap with z.object()
#1901
felixweinberger
merged 16 commits into
main
modelcontextprotocol/typescript-sdk:main
from
fweinberger/v2-bc-register-rawshape
modelcontextprotocol/typescript-sdk:fweinberger/v2-bc-register-rawshape
Copy head branch name to clipboard
Commits
Commits on Apr 16, 2026
feat(compat): registerTool/registerPrompt accept raw Zod shape (auto-wrap with z.object)
felixweinberger
committed
27e4ddf
View commit details
Copy full SHA for 27e4ddf
Browse repository at this point
fix: isZodRawShape treats empty object as raw shape (matches v1)
felixweinberger
committed
5266131
View commit details
Copy full SHA for 5266131
Browse repository at this point
docs: changeset wording aligns with @deprecated overloads (not first-class)
felixweinberger
committed
f2fdbe7
View commit details
Copy full SHA for f2fdbe7
Browse repository at this point
docs: clarify isZodRawShape only supports Zod values for auto-wrap
felixweinberger
committed
9576f20
View commit details
Copy full SHA for 9576f20
Browse repository at this point
Commits on Apr 17, 2026
fix(compat): narrow ZodRawShape to Zod-only (detector + type); add outputSchema raw-shape test
felixweinberger
committed
0152b26
View commit details
Copy full SHA for 0152b26
Browse repository at this point
test(compat): add e2e raw-shape tools/call test; drop vestigial warn-spy; cover normalizeRawShapeSchema passthrough/undefined
felixweinberger
committed
1af9ed2
View commit details
Copy full SHA for 1af9ed2
Browse repository at this point
Commits on Apr 24, 2026
Merge branch 'main' into fweinberger/v2-bc-register-rawshape
KKonstantinov
authored
3155be7
View commit details
Copy full SHA for 3155be7
Browse repository at this point
feat(compat): widen completable() constraint to StandardSchemaV1
Show description for aba1d39
felixweinberger
committed
aba1d39
View commit details
Copy full SHA for aba1d39
Browse repository at this point
Commits on Apr 27, 2026
refactor(compat): move zod helpers to zodCompat.ts; throw on invalid normalizeRawShapeSchema input; preserve optional in InferRawShape
Show description for 0febd83
felixweinberger
committed
0febd83
View commit details
Copy full SHA for 0febd83
Browse repository at this point
Merge branch 'main' into fweinberger/v2-bc-register-rawshape
felixweinberger
authored
7e80880
View commit details
Copy full SHA for 7e80880
Browse repository at this point
test(compat): move zod-compat tests to zodCompat.test.ts; tighten normalizeRawShapeSchema guard to require ~standard.jsonSchema
felixweinberger
committed
c75bc88
View commit details
Copy full SHA for c75bc88
Browse repository at this point
fix(compat): reject Zod v3 fields in raw-shape auto-wrap with actionable error
Show description for a6b25ee
felixweinberger
committed
a6b25ee
View commit details
Copy full SHA for a6b25ee
Browse repository at this point
fix(compat): require plain-object prototype in isZodRawShape; null-guard v3-detection branch
felixweinberger
committed
b5854c1
View commit details
Copy full SHA for b5854c1
Browse repository at this point
Commits on Apr 29, 2026
Merge branch 'main' into fweinberger/v2-bc-register-rawshape
felixweinberger
authored
9b7ee90
View commit details
Copy full SHA for 9b7ee90
Browse repository at this point
fix(compat): pass StandardSchema without ~standard.jsonSchema through normalizeRawShapeSchema
Show description for 27e2c4b
felixweinberger
committed
27e2c4b
View commit details
Copy full SHA for 27e2c4b
Browse repository at this point
Merge branch 'main' into fweinberger/v2-bc-register-rawshape
felixweinberger
authored
617830b
View commit details
Copy full SHA for 617830b
Browse repository at this point
You can’t perform that action at this time.