-
Notifications
You must be signed in to change notification settings - Fork 1.8k
v2 Context API in callbacks
#1241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
KKonstantinov
wants to merge
36
commits into
modelcontextprotocol:main
from
KKonstantinov:feature/ctx-in-callbacks
Closed
Changes from 27 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
107767a
save commit
KKonstantinov 68ff665
context API - backwards compatible introduction
KKonstantinov f58b491
fixes
KKonstantinov 459bff4
Merge branch 'main' into feature/ctx-in-callbacks
KKonstantinov a23e2f2
Merge branch 'main' into feature/ctx-in-callbacks
KKonstantinov 4ff84a1
Merge branch 'main' into feature/ctx-in-callbacks
KKonstantinov e89d9d4
moved properties under objects
KKonstantinov 187a3cd
prettier fix
KKonstantinov 96169b3
move logger methods under loggingNotification
KKonstantinov a57840c
merge commit
KKonstantinov 161f584
merge commit - v2
KKonstantinov d5f5047
merge commit - v2
KKonstantinov 109dc52
base context, client context, server context separation
KKonstantinov deca7fd
rename method to createRequestContext, update docs
KKonstantinov 36be75e
fix server conformance
KKonstantinov f609478
fix conformance
KKonstantinov 3c4f9d8
move types
KKonstantinov 2c31eb2
merge commit
KKonstantinov 86549fa
rename extra vars to ctx
KKonstantinov 920da7e
prettier fix
KKonstantinov 639d7bd
add changeset
KKonstantinov ae9c253
merge commit
KKonstantinov a5704c5
Merge branch 'main' into feature/ctx-in-callbacks
KKonstantinov f39dc4e
Merge branch 'main' into feature/ctx-in-callbacks
KKonstantinov cb4c500
switch server and client to work with ServerContextInterface and Clie…
KKonstantinov f5b27d4
Merge branch 'feature/ctx-in-callbacks' of github.com:KKonstantinov/t…
KKonstantinov 9b0ed8d
Merge branch 'main' into feature/ctx-in-callbacks
KKonstantinov 7767079
Merge branch 'main' of github.com:modelcontextprotocol/typescript-sdk…
KKonstantinov f765e07
update context interface
KKonstantinov 184dbca
Merge branch 'feature/ctx-in-callbacks' of github.com:KKonstantinov/t…
KKonstantinov 69b1ae6
Merge branch 'main' into feature/ctx-in-callbacks
KKonstantinov 9132b5a
update migration docs
KKonstantinov 08da5e0
merge commit
KKonstantinov 5b05ff6
merge commit
KKonstantinov ebac5d4
update conformance ctx - sampling fail
KKonstantinov b79763f
Merge branch 'main' into feature/ctx-in-callbacks
KKonstantinov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| '@modelcontextprotocol/express': patch | ||
| '@modelcontextprotocol/hono': patch | ||
| '@modelcontextprotocol/node': patch | ||
| '@modelcontextprotocol/eslint-config': patch | ||
| '@modelcontextprotocol/test-integration': patch | ||
| '@modelcontextprotocol/client': patch | ||
| '@modelcontextprotocol/server': patch | ||
| '@modelcontextprotocol/core': patch | ||
| --- | ||
|
|
||
| add context API to tool, prompt, resource callbacks, linting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[style] would this be cool if it were ctx.mcp.sessionId rather than repeating ctx. Same with requestCtx.