feat(everything): add URL elicitation example (SEP-1036)#3895
Open
JosephDoUrden wants to merge 1 commit intomodelcontextprotocol:mainfrom
Open
feat(everything): add URL elicitation example (SEP-1036)#3895JosephDoUrden wants to merge 1 commit intomodelcontextprotocol:mainfrom
JosephDoUrden wants to merge 1 commit intomodelcontextprotocol:mainfrom
Conversation
Add a trigger-url-elicitation-request tool to the Everything server that demonstrates SEP-1036 URL Elicitation. The tool sends an elicitation/create request with mode "url", asking the client to navigate the user to an external URL for out-of-band interaction (e.g., third-party OAuth authorization). The tool is conditionally registered only when the client declares elicitation.url capability, consistent with existing elicitation tools. Closes modelcontextprotocol#3034
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add a
trigger-url-elicitation-requesttool to the Everything server that demonstrates SEP-1036 URL Elicitation — the newurlmode for secure out-of-band interactions.Closes #3034
What is URL Elicitation?
SEP-1036 extends MCP elicitation with a
urlmode for scenarios where sensitive data (credentials, payment info) must not transit through the MCP client:The server sends
elicitation/createwithmode: "url", and the client navigates the user to the specified URL. The actual interaction happens out-of-band in the browser.Changes
src/everything/tools/trigger-url-elicitation-request.ts: New tool that sends a URL elicitation request with an example GitHub OAuth URLsrc/everything/tools/index.ts: Register the tool inregisterConditionalTools(only when client declareselicitation.urlcapability)Design
Follows the same pattern as the existing
trigger-elicitation-requesttool:elicitation.url)ElicitResultSchemafor response validationTest plan
npx tsc --noEmit)npx vitest run)AI Disclosure
AI assistance (Claude) was used for issue research and understanding SEP-1036. The implementation was written and reviewed by the author.