Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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
Repository navigation
Code
Issues
276
(276)
Pull requests
354
(354)
Actions
Projects
Security and quality
10
(10)
Insights
More
items
feat(core): custom-method support (3-arg setRequestHandler + request schema overload)
- #1974
#1974
Merged
felixweinberger
merged 10 commits into
main
modelcontextprotocol/typescript-sdk:main
from
fweinberger/custom-methods-minimal
modelcontextprotocol/typescript-sdk:fweinberger/custom-methods-minimal
Copy head branch name to clipboard
Apr 29, 2026
Conversation
Commits
10
(10)
Checks
Files changed
Merged
feat(core): custom-method support (3-arg setRequestHandler + request schema overload)
#1974
felixweinberger
merged 10 commits into
main
modelcontextprotocol/typescript-sdk:main
from
fweinberger/custom-methods-minimal
modelcontextprotocol/typescript-sdk:fweinberger/custom-methods-minimal
Copy head branch name to clipboard
Commits
Commits on Apr 29, 2026
feat(core): 3-arg setRequestHandler/setNotificationHandler and request()/mcpReq.send schema overloads for custom methods
felixweinberger
committed
690af0d
View commit details
Copy full SHA for 690af0d
Browse repository at this point
fix: address review — setNotificationHandler 3-arg passes raw notification as 2nd arg; export StandardSchemaV1; fix example headers
felixweinberger
committed
10a7878
View commit details
Copy full SHA for 10a7878
Browse repository at this point
fix: address review — assertCapability* params as RequestMethod|string for discoverability (KKonstantinov)
felixweinberger
committed
34a4fd5
View commit details
Copy full SHA for 34a4fd5
Browse repository at this point
fix: address review — guard cancel() once response received (abort race during async result validation); add core to changeset; setNotificationHandler JSDoc notes 2nd arg
felixweinberger
committed
dc09b1d
View commit details
Copy full SHA for dc09b1d
Browse repository at this point
fix: response result-schema mismatch throws SdkError(InvalidResult) instead of ProtocolError(InternalError)
felixweinberger
committed
614dbe8
View commit details
Copy full SHA for 614dbe8
Browse repository at this point
docs: add SdkErrorCode.InvalidResult to migration-guide enumerations and §5 scenario table
felixweinberger
committed
d49a02b
View commit details
Copy full SHA for d49a02b
Browse repository at this point
fix: apply RequestMethod|string discoverability hint to public removeRequestHandler/removeNotificationHandler/assertCanSetRequestHandler
felixweinberger
committed
35a9628
View commit details
Copy full SHA for 35a9628
Browse repository at this point
Merge branch 'main' into fweinberger/custom-methods-minimal
felixweinberger
authored
9df35c2
View commit details
Copy full SHA for 9df35c2
Browse repository at this point
fix: import stdio transports from /stdio subpath in customMethodExample (after #1871 merge)
felixweinberger
committed
a2f2f8a
View commit details
Copy full SHA for a2f2f8a
Browse repository at this point
Merge branch 'main' into fweinberger/custom-methods-minimal
felixweinberger
authored
5568303
View commit details
Copy full SHA for 5568303
Browse repository at this point
You can’t perform that action at this time.