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
Accelerator
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
Type
/
to 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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
modelcontextprotocol
/
typescript-sdk
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
13.1k
Code
Issues
278
Pull requests
263
Actions
Projects
Security and quality
3
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
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.