Rename FastMCP to MCPServer (#1951)
This commit is contained in:
parent
4a2d83a0cb
commit
65c614e48e
1 changed files with 713 additions and 693 deletions
|
|
@ -2,7 +2,7 @@ from unittest.mock import AsyncMock, MagicMock
|
|||
|
||||
import pytest
|
||||
|
||||
from mcp.server.fastmcp import Context
|
||||
from mcp.server.mcpserver import Context
|
||||
from mcp.shared.context import RequestContext
|
||||
|
||||
pytestmark = pytest.mark.anyio
|
||||
|
|
@ -24,7 +24,7 @@ async def test_progress_token_zero_first_call():
|
|||
)
|
||||
|
||||
# Create context with our mocks
|
||||
ctx = Context(request_context=request_context, fastmcp=MagicMock())
|
||||
ctx = Context(request_context=request_context, mcp_server=MagicMock())
|
||||
|
||||
# Test progress reporting
|
||||
await ctx.report_progress(0, 10) # First call with 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue