Skip to content

feat: add message to ProgressNotification #435

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
merged 13 commits into from
May 13, 2025
Prev Previous commit
Next Next commit
resolve pyright failure
  • Loading branch information
aksheyd committed May 7, 2025
commit 198f96a744897a2e1e874261558b263d3e88808d
9 changes: 3 additions & 6 deletions tests/shared/test_progress_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,18 @@
from mcp.server.lowlevel import NotificationOptions
from mcp.server.models import InitializationOptions
from mcp.server.session import ServerSession
from mcp.shared.session import RequestResponder
from mcp.types import (
JSONRPCMessage,
)
from mcp.shared.session import RequestResponder, SessionMessage


@pytest.mark.anyio
async def test_bidirectional_progress_notifications():
"""Test that both client and server can send progress notifications."""
# Create memory streams for client/server
server_to_client_send, server_to_client_receive = anyio.create_memory_object_stream[
JSONRPCMessage
SessionMessage
](5)
client_to_server_send, client_to_server_receive = anyio.create_memory_object_stream[
JSONRPCMessage
SessionMessage
](5)

# Run a server session so we can send progress updates in tool
Expand Down