Skip to content

Conversation

@FloorIsGround
Copy link
Owner

No description provided.

ranjitodedra and others added 3 commits October 18, 2025 01:01
Fixes modelcontextprotocol#1484
- Add contextlib import and lifespan function to all mounting examples
- Add stateless_http=True parameter to FastMCP constructors
- Add lifespan=lifespan parameter to Starlette apps
- Update README.md documentation with correct examples
- Fixes RuntimeError: Task group is not initialized. Make sure to use run()

Resolves the issue where mounting StreamableHTTP servers to existing ASGI
applications would fail with RuntimeError due to missing session manager
initialization.
Run scripts/update_readme_snippets.py to sync documentation with code changes.
@FloorIsGround FloorIsGround merged commit 9f14d04 into FloorIsGround:examples-docs Oct 29, 2025
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