Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Exclude Nones when serializing models#8

Merged
jspahrsummers merged 1 commit intomainmodelcontextprotocol/python-sdk:mainfrom
justin/omit-nullsmodelcontextprotocol/python-sdk:justin/omit-nullsCopy head branch name to clipboard
Oct 3, 2024
Merged

Exclude Nones when serializing models#8
jspahrsummers merged 1 commit intomainmodelcontextprotocol/python-sdk:mainfrom
justin/omit-nullsmodelcontextprotocol/python-sdk:justin/omit-nullsCopy head branch name to clipboard

Conversation

@jspahrsummers
Copy link
Member

@jspahrsummers jspahrsummers commented Oct 2, 2024

We don't have any nulls in the spec, so right now the Python SDK serialization is not spec-compliant. This fixes it by removing all Nones (which become nulls).

Discovered via modelcontextprotocol/typescript-sdk#5.

Depends on

Base automatically changed from justin/ci to main October 3, 2024 10:04
@jspahrsummers jspahrsummers merged commit 33b5a12 into main Oct 3, 2024
@jspahrsummers jspahrsummers deleted the justin/omit-nulls branch October 3, 2024 10:04
ksteiny pushed a commit to ksteiny/python-sdk that referenced this pull request Dec 5, 2025
feat(server): use fastmcp context for injection
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.