-
Notifications
You must be signed in to change notification settings - Fork 580
test(fastmcp): Use AsyncClient for SSE
#5400
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
Merged
+263
−221
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
a8372b0
test(mcp): Simulate stdio transport with memory streams
alexander-alderman-webb 87a2e26
test(fastmcp): Simulate stdio transport with memory streams
alexander-alderman-webb 70edb6d
cleaning up
alexander-alderman-webb c238f84
Merge branch 'webb/test-mcp-stdio' into webb/test-fastmcp-stdio
alexander-alderman-webb f1362bd
send initialization response
alexander-alderman-webb 34dba91
Merge branch 'webb/test-mcp-stdio' into webb/test-fastmcp-stdio
alexander-alderman-webb 46659c5
cleanup
alexander-alderman-webb ac8e6e4
gate import in conftest
alexander-alderman-webb 2766b40
test(mcp): Use TestClient for Streamable HTTP
alexander-alderman-webb d3afb38
test(fastmcp): Use TestClient for Streamable HTTP
alexander-alderman-webb 270636d
clean up merge
alexander-alderman-webb 960d76c
test(mcp): Use AsyncClient for SSE
alexander-alderman-webb 2aecd41
test(fastmcp): Use AsyncClient for SSE
alexander-alderman-webb 8c9aa86
remove mixed method test
alexander-alderman-webb 6579935
rename tests
alexander-alderman-webb 8aa6363
merge
alexander-alderman-webb 30e9ec3
rename tests
alexander-alderman-webb aaf69c3
Merge branch 'webb/test-fastmcp-stdio' into webb/test-mcp-streamable-…
alexander-alderman-webb 0ab862c
merge
alexander-alderman-webb c675fb9
merge and remove mocks :)
alexander-alderman-webb 8def7e3
merge and remove mocks
alexander-alderman-webb 1380f56
remove mocks
alexander-alderman-webb 0e37050
Merge branch 'webb/test-mcp-streamable-http' into webb/test-fastmcp-s…
alexander-alderman-webb 8749ad3
merge
alexander-alderman-webb 45c9554
merge
alexander-alderman-webb 5976135
remove test
alexander-alderman-webb 317c002
Merge branch 'master' into webb/test-mcp-stdio
alexander-alderman-webb 9097b69
merge and remove duplicate asyncio marker
alexander-alderman-webb 7703379
Merge branch 'webb/test-fastmcp-stdio' into webb/test-mcp-streamable-…
alexander-alderman-webb 1133d9e
merge and remove duplicate import
alexander-alderman-webb 0bd14e3
address comments
alexander-alderman-webb ef33e1f
add missing import fallback
alexander-alderman-webb 4715afa
Merge branch 'webb/test-fastmcp-stdio' into webb/test-mcp-streamable-…
alexander-alderman-webb 2df9629
Merge branch 'webb/test-mcp-streamable-http' into webb/test-fastmcp-s…
alexander-alderman-webb 7db7680
Merge branch 'webb/test-fastmcp-streamable-http' into webb/test-mcp-sse
alexander-alderman-webb d6c2fa5
simplify streaming transport
alexander-alderman-webb eaf4230
merge
alexander-alderman-webb 7484fd8
re-organize stream parsing
alexander-alderman-webb 7c9d602
stop shadowing werkzeug types
alexander-alderman-webb 0f47f06
remove unused import
alexander-alderman-webb 6bff4e1
merge
alexander-alderman-webb 1bf6876
simplify assertions and use stdio in more tests cases
alexander-alderman-webb fd2cc42
Merge branch 'webb/test-fastmcp-stdio' into webb/test-mcp-streamable-…
alexander-alderman-webb 771f60e
forgot conftest
alexander-alderman-webb 8f57fcd
Merge branch 'webb/test-fastmcp-stdio' into webb/test-mcp-streamable-…
alexander-alderman-webb cc4a19d
merge and simplify assertions
alexander-alderman-webb ef06a2d
fix no-return assertion
alexander-alderman-webb 955d525
Merge branch 'webb/test-fastmcp-stdio' into webb/test-mcp-streamable-…
alexander-alderman-webb 6b81f86
Merge branch 'webb/test-mcp-streamable-http' into webb/test-fastmcp-s…
alexander-alderman-webb a16e638
Merge branch 'webb/test-fastmcp-streamable-http' into webb/test-mcp-sse
alexander-alderman-webb 0103986
Merge branch 'webb/test-mcp-sse' into webb/test-fastmcp-sse
alexander-alderman-webb 8d6744c
simplify assertion
alexander-alderman-webb e731e99
merge master
alexander-alderman-webb e554441
remove unused file and import order
alexander-alderman-webb 99571ae
remove unused param
alexander-alderman-webb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The test fixture
json_rpc_sseusescreate_memory_object_stream[bytes](0), which is AnyIO 4.0+ syntax. However,tox.iniconstrains test environments to AnyIO < 4.0, causing aTypeError.Severity: HIGH
Suggested Fix
Revert the call at
tests/conftest.py:842to use the AnyIO 3.x compatible syntax:create_memory_object_stream(0). This will align the code with the version constraints specified intox.iniand ensure the tests can run successfully in the configured environments.Prompt for AI Agent