forked from modelcontextprotocol/modelcontextprotocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Sep mrtr #1
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
Merged
Sep mrtr #1
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
b4f29a6
add SEP doc from transport-wg
CaitieM20 a1b65dc
copilot initial pass, still WIP and under my review
CaitieM20 12d910c
Merge branch 'modelcontextprotocol:main' into SEP-MRTR
CaitieM20 21b4481
hand edits
CaitieM20 df843c7
add Incomplete Result to server result, add sections to schema.mdx, r…
CaitieM20 2bec19b
1. Moved inputResponses/requestState from CallToolRequestParams → Req…
CaitieM20 7519d64
renamed ElicitationInputRequest → ElicitationCreateRequest and Sampli…
CaitieM20 8b66f20
removing standalone ServerRequests for CreateMessageRequests and Eli…
CaitieM20 ca03c4e
update examples
CaitieM20 944a6a5
moving JSONRPCIncompleteResultResponse location in schema.ts
CaitieM20 ac8b3e6
update GetTaskPayloadResultResponse to be a JSONRPCResultResponse or …
CaitieM20 4f859d1
update SEP.md to reflect schema changes. Decision: Remove results wra…
CaitieM20 053d9cb
remove URLElicitationRequiredError
CaitieM20 9fd8dde
updating SEP examples to adhere strictly to schema
CaitieM20 c741ca4
WIP on updating Spec to be more readable, added new spec V2 to test o…
CaitieM20 2d37d9d
schema changes for ephemeral workflow
markdroth 08cffb1
schema changes for persistent workflow
markdroth 3e6c4f8
remove URLElicitationRequiredError
markdroth 7980bf5
Merge branch 'main' into SEP-MRTR
CaitieM20 4e68c96
Merge branch 'main' into SEP-MRTR
CaitieM20 0a77824
fix examples form parameter accidentally removed
CaitieM20 65772ed
removing experimental edits
CaitieM20 5cc289d
merging in XXXX-MRTR.md changes in from transport-wg repo
CaitieM20 9010137
fix date typo
CaitieM20 ef5dabc
Merge branch 'SEP-MRTR' into mrtr-sep
CaitieM20 fbb388e
Merge pull request #2 from markdroth/mrtr-sep
CaitieM20 f01df3c
fixing some schema merge errors and deleting no longer used example
CaitieM20 aaa44a3
remove JSONRPCIncompleteResultType
CaitieM20 3fc57a1
add back examples fix GetTaskPayloadResultResponse
CaitieM20 bdc62ac
removing duplicate types
CaitieM20 b54eafb
fixing TaskInputResponseRequest having duplicate InputResponse fields…
CaitieM20 3443ffa
Removing inheritance from TaskAugmentedRequestParams these objects ar…
CaitieM20 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
2 changes: 0 additions & 2 deletions
2
schema/draft/examples/CreateMessageRequest/sampling-request.json
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 |
|---|---|---|
| @@ -1,6 +1,4 @@ | ||
| { | ||
| "jsonrpc": "2.0", | ||
| "id": "sampling-example", | ||
| "method": "sampling/createMessage", | ||
| "params": { | ||
| "messages": [ | ||
|
|
||
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
10 changes: 0 additions & 10 deletions
10
schema/draft/examples/ElicitResultResponse/elicitation-result-response.json
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
schema/draft/examples/GetTaskPayloadRequest/get-task-payload-request.json
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,8 @@ | ||
| { | ||
| "jsonrpc": "2.0", | ||
| "id": 3, | ||
| "method": "tasks/result", | ||
| "params": { | ||
| "taskId": "echo_dc792e24-01b5-4c0a-abcb-0559848ca3c5" | ||
| } | ||
| } |
18 changes: 18 additions & 0 deletions
18
schema/draft/examples/GetTaskPayloadResultResponse/completed-task-payload-response.json
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,18 @@ | ||
| { | ||
| "jsonrpc": "2.0", | ||
| "id": 3, | ||
| "result": { | ||
| "isError": false, | ||
| "content": [ | ||
| { | ||
| "type": "text", | ||
| "text": "Echo: Hello World!" | ||
| } | ||
| ], | ||
| "_meta": { | ||
| "io.modelcontextprotocol/related-task": { | ||
| "taskId": "echo_dc792e24-01b5-4c0a-abcb-0559848ca3c5" | ||
| } | ||
| } | ||
| } | ||
| } |
28 changes: 28 additions & 0 deletions
28
schema/draft/examples/GetTaskPayloadResultResponse/input-required-task-payload-response.json
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,28 @@ | ||
| { | ||
| "jsonrpc": "2.0", | ||
| "id": 3, | ||
| "result": { | ||
| "inputRequests": { | ||
| "echo_input": { | ||
| "method": "elicitation/create", | ||
| "params": { | ||
| "message": "Please provide the input string to echo back", | ||
| "requestedSchema": { | ||
| "type": "object", | ||
| "properties": { | ||
| "input": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": ["input"] | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "_meta": { | ||
| "io.modelcontextprotocol/related-task": { | ||
| "taskId": "echo_dc792e24-01b5-4c0a-abcb-0559848ca3c5" | ||
| } | ||
| } | ||
| } | ||
| } |
35 changes: 35 additions & 0 deletions
35
schema/draft/examples/IncompleteResult/incomplete-result-with-elicitation-and-sampling.json
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,35 @@ | ||
| { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about calling this result |
||
| "inputRequests": { | ||
| "github_login": { | ||
| "method": "elicitation/create", | ||
| "params": { | ||
| "message": "Please provide your GitHub username", | ||
| "requestedSchema": { | ||
| "type": "object", | ||
| "properties": { | ||
| "name": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": ["name"] | ||
| } | ||
| } | ||
| }, | ||
| "capital_of_france": { | ||
| "method": "sampling/createMessage", | ||
| "params": { | ||
| "messages": [ | ||
| { | ||
| "role": "user", | ||
| "content": { | ||
| "type": "text", | ||
| "text": "What is the capital of France?" | ||
| } | ||
| } | ||
| ], | ||
| "maxTokens": 100 | ||
| } | ||
| } | ||
| }, | ||
| "requestState": "eyJsb2NhdGlvbiI6Ik5ldyBZb3JrIn0" | ||
| } | ||
20 changes: 20 additions & 0 deletions
20
schema/draft/examples/IncompleteResult/incomplete-result-with-input-requests.json
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,20 @@ | ||
| { | ||
| "inputRequests": { | ||
| "github_login": { | ||
| "method": "elicitation/create", | ||
| "params": { | ||
| "message": "Please provide your GitHub username", | ||
| "requestedSchema": { | ||
| "type": "object", | ||
| "properties": { | ||
| "name": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": ["name"] | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "requestState": "eyJsb2NhdGlvbiI6Ik5ldyBZb3JrIn0" | ||
| } |
3 changes: 3 additions & 0 deletions
3
schema/draft/examples/IncompleteResult/incomplete-result-with-request-state-only.json
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,3 @@ | ||
| { | ||
|
CaitieM20 marked this conversation as resolved.
|
||
| "requestState": "eyJwcm9ncmVzcyI6IjUwJSIsInN0YXRlIjoicHJvY2Vzc2luZyJ9" | ||
| } | ||
16 changes: 16 additions & 0 deletions
16
schema/draft/examples/InputRequest/elicitation-input-request.json
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,16 @@ | ||
| { | ||
| "method": "elicitation/create", | ||
| "params": { | ||
| "mode": "form", | ||
| "message": "Please provide your GitHub username", | ||
| "requestedSchema": { | ||
| "type": "object", | ||
| "properties": { | ||
| "name": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": ["name"] | ||
| } | ||
| } | ||
| } |
15 changes: 15 additions & 0 deletions
15
schema/draft/examples/InputRequest/sampling-input-request.json
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,15 @@ | ||
| { | ||
| "method": "sampling/createMessage", | ||
| "params": { | ||
| "messages": [ | ||
| { | ||
| "role": "user", | ||
| "content": { | ||
| "type": "text", | ||
| "text": "What is the capital of France?" | ||
| } | ||
| } | ||
| ], | ||
| "maxTokens": 100 | ||
| } | ||
| } |
33 changes: 33 additions & 0 deletions
33
schema/draft/examples/InputRequests/elicitation-and-sampling-input-requests.json
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,33 @@ | ||
| { | ||
| "github_login": { | ||
| "method": "elicitation/create", | ||
| "params": { | ||
| "mode": "form", | ||
| "message": "Please provide your GitHub username", | ||
| "requestedSchema": { | ||
| "type": "object", | ||
| "properties": { | ||
| "name": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "required": ["name"] | ||
| } | ||
| } | ||
| }, | ||
| "capital_of_france": { | ||
| "method": "sampling/createMessage", | ||
| "params": { | ||
| "messages": [ | ||
| { | ||
| "role": "user", | ||
| "content": { | ||
| "type": "text", | ||
| "text": "What is the capital of France?" | ||
| } | ||
| } | ||
| ], | ||
| "maxTokens": 100 | ||
| } | ||
| } | ||
| } |
6 changes: 6 additions & 0 deletions
6
schema/draft/examples/InputResponse/elicitation-input-response.json
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,6 @@ | ||
| { | ||
| "action": "accept", | ||
| "content": { | ||
| "name": "octocat" | ||
| } | ||
| } |
9 changes: 9 additions & 0 deletions
9
schema/draft/examples/InputResponse/sampling-input-response.json
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,9 @@ | ||
| { | ||
| "role": "assistant", | ||
| "content": { | ||
| "type": "text", | ||
| "text": "The capital of France is Paris." | ||
| }, | ||
| "model": "claude-3-sonnet-20240307", | ||
| "stopReason": "endTurn" | ||
| } |
10 changes: 7 additions & 3 deletions
10
...ultResponse/sampling-result-response.json → ...itation-and-sampling-input-responses.json
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
12 changes: 0 additions & 12 deletions
12
schema/draft/examples/ListRootsResultResponse/list-roots-result-response.json
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
schema/draft/examples/TaskInputResponseRequest/task-input-response-request.json
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,20 @@ | ||
| { | ||
| "jsonrpc": "2.0", | ||
| "id": 4, | ||
| "method": "tasks/input_response", | ||
| "params": { | ||
| "inputResponses": { | ||
| "echo_input": { | ||
| "action": "accept", | ||
| "content": { | ||
| "input": "Hello World!" | ||
| } | ||
| } | ||
| }, | ||
| "_meta": { | ||
| "io.modelcontextprotocol/related-task": { | ||
| "taskId": "echo_dc792e24-01b5-4c0a-abcb-0559848ca3c5" | ||
| } | ||
| } | ||
| } | ||
| } |
15 changes: 15 additions & 0 deletions
15
schema/draft/examples/TaskInputResponseRequestParams/task-input-response-params.json
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,15 @@ | ||
| { | ||
| "inputResponses": { | ||
| "echo_input": { | ||
| "action": "accept", | ||
| "content": { | ||
| "input": "Hello World!" | ||
| } | ||
| } | ||
| }, | ||
| "_meta": { | ||
| "io.modelcontextprotocol/related-task": { | ||
| "taskId": "echo_dc792e24-01b5-4c0a-abcb-0559848ca3c5" | ||
| } | ||
| } | ||
| } |
18 changes: 0 additions & 18 deletions
18
schema/draft/examples/URLElicitationRequiredError/authorization-required.json
This file was deleted.
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.
Uh oh!
There was an error while loading. Please reload this page.