Skip to content
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

Refactor server side to handle multiple clients #31

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chemicL
Copy link
Member

@chemicL chemicL commented Mar 5, 2025

WARN: This is still work in progress and does not compile.

Breaking changes:

  • McpAsyncServer
    • getClientCapabilities deprecated + throws
    • getClientInfo deprecated + throws
    • listRoots deprecated + throws
    • createMessage deprecated + throws
  • McpTransport
    • connect deprecated - should only belong to McpClientTransport
  • ServerMcpTransport
    • connect default implementation that throws

The major change is the introduction of ServerMcpSession for per-client communication. The user should be exposed to a limited abstraction that hides the session called ServerMcpExchange which currently exposes sampling and roots.

chemicL added 2 commits March 5, 2025 12:09
WARN: This is still work in progress and does not compile.

Breaking changes:

* McpAsyncServer
  * getClientCapabilities deprecated + throws
  * getClientInfo deprecated + throws
  * listRoots deprecated + throws
  * createMessage deprecated + throws
* McpTransport
  * connect deprecated - should only belong to McpClientTransport
* ServerMcpTransport
  * connect default implementation that throws

The major change is the introduction of ServerMcpSession for per-client
communication. The user should be exposed to a limited abstraction that
hides the session called ServerMcpExchange which currently exposes
sampling and roots.

Signed-off-by: Dariusz Jędrzejczyk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant