feat: add experimental namespace for URL elicitation#1153
feat: add experimental namespace for URL elicitation#1153felixweinberger wants to merge 2 commits intomainfrom
Conversation
Move URL elicitation APIs to server.experimental and client.experimental to mirror Python SDK's approach for experimental features. - Add ExperimentalServerFeatures with elicitUrl() and createElicitationCompleteNotifier() - Add ExperimentalClientFeatures with setElicitationCompleteHandler() - Add /experimental subpath export for types (ElicitRequestURLParams, etc.) - Update examples and tests to use new .experimental API
commit: |
|
Isn't this going to cause a breaking change in the next release of the MCP spec? Can we achieve the same result with a docstring on the methods themselves, rather than guaranteeing a future breaking change to the SDK interface? |
Yeah this is not a good change - was experimenting with something and didn't mean to publish it (hence a draft). Just trying to figure out the right way to make these experimental features (tasks and url elicitation) more obvious to developers using them - eg in the python SDK we're introducing an experimental package to make this very explicit modelcontextprotocol/python-sdk#1645 A docstring would probably not get noticed in the same way as an explicit import or separate package, so still thinking through what the right API is here. |
Summary
.experimentalproperty to Server and Client classes, mirroring Python SDK patternserver.experimental.elicitUrl(),server.experimental.createElicitationCompleteNotifier(),client.experimental.setElicitationCompleteHandler()@modelcontextprotocol/sdk/experimentalsubpath export for experimental typesTest plan