Skip to content

Conversation

ZachGerman
Copy link
Contributor

@ZachGerman ZachGerman commented Aug 21, 2025

NOTICE: deprioritizing this until next month. Working on two other SEPs with higher priority. Will eventually come back to this and write up a clearer example than Python's "FastMCP" for skippable init in TS or Java.

One word change:

The initialization phase MUST be the first interaction between client and server.

to

The initialization phase MAY be the first interaction between client and server.

...to account for SDKs skipping initialization for stateless interaction cases [ref]. In the referenced case, the Python SDK's "FastMCP" server serves requests without associating it with any session.

Motivation and Context

I imagine we all hope to see more guidance for stateless behavior going forward.

How Has This Been Tested?

generated & checked

Breaking Changes

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

N/A

@ZachGerman ZachGerman requested a review from a team as a code owner August 21, 2025 03:11
@LucaButBoring
Copy link
Contributor

Is this behavior SDKs allow today? Would be interested in seeing at least one or two code references.

@ZachGerman
Copy link
Contributor Author

Is this behavior SDKs allow today? Would be interested in seeing at least one or two code references.

The clearest example is from the Python SDK's FastMCP server using stateless_http=True [ref]
I also added the reference to that code to my description as well! Appreciate the feedback!

@ZachGerman ZachGerman marked this pull request as draft August 22, 2025 17:46
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.

2 participants