Skip to content

Conversation

dsp-ant
Copy link
Member

@dsp-ant dsp-ant commented Nov 11, 2024

We currently return a generic instance of RequestContext without
a specialization on the Session type. This makes it impossible
for servers to typesafe call list_roots() and other methods.

We now return a specific instance of RequestContext[ServerSession]

Fixes #36

@dsp-ant dsp-ant added the bug Something isn't working label Nov 11, 2024
We currently return a generic instance of RequestContext without
a specialization on the Session type. This makes it impossible
for servers to typesafe call `list_roots()` and other methods.

We now return a specific instance of `RequestContext[ServerSession]`
@dsp-ant dsp-ant force-pushed the davidsp/request_context branch from b126d10 to 1177a11 Compare November 11, 2024 21:11
@dsp-ant dsp-ant merged commit 41a6157 into main Nov 11, 2024
5 checks passed
@dsp-ant dsp-ant deleted the davidsp/request_context branch November 11, 2024 21:19
gspencergoog pushed a commit to gspencergoog/mcp-python-sdk that referenced this pull request Jul 29, 2025
…justin/oss-prep

Add license information and package metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typing RequestContext

2 participants