Add elicitation support to server-everything#2269
Add elicitation support to server-everything#2269cliffhall wants to merge 3 commits intomodelcontextprotocol:mainfrom
Conversation
- import ElicitRequest and ElicitResultSchema from SDK
- refactor/rename GetTinyImageSchema to NoArgSchema
- add ELICITATION to ToolName enum
- add elicitUserInput function that sends an ElicitRequest and returns the result
- in ListToolsRequest handler
- add ToolName.ELICITATION entry
- In CallToolRequest handler
- add ToolName.ELICITATION handler which calls elicitUserInput returns the formatted result message
- In GET_TINY_IMAGE handler, remove GetTinyImageSchema.parse(args) since it has no args (like elicitation tool, and doesn't need to be parsed)
* In package.json
- bump modelcontextprotocol/sdk to ^1.14.0
|
Hi @cliffhall , there is also a PR that @dend opened here: https://github.com/modelcontextprotocol/servers/pull/2215/files |
Woops. I didn't notice that one, it was buried in a sea README updates. Shall I close this one then? |
@cliffhall yes I think so, unless we have any strong feelings about one demo example being better than the other. :) I also added you as a reviewer there to get more 👀 before merging. |
In everything.ts
In package.json
Updated package-lock.json
Description
Added a tool called
elicitationRequestwhich elicits input from the user via the new elicitation functionality in the spec and SDK.Server Details
Motivation and Context
New feature of the spec, now available in the SDK, which needs to be demonstrated.
How Has This Been Tested?
Using the currently pending PR in the Inspector project for supporting Elicitation.
Breaking Changes
Nope.
Types of changes
Checklist
Additional context