Rename McpError to MCPError and convert construction sites

This commit is contained in:
Jeremiah Lowin 2026-07-05 18:07:02 -04:00
commit fdac9f9f2e
No known key found for this signature in database
39 changed files with 217 additions and 281 deletions

View file

@ -4,7 +4,7 @@ import time
import anyio
import pytest
from mcp.shared.exceptions import McpError
from mcp.shared.exceptions import MCPError
from mcp_types import TextContent
from fastmcp import FastMCP
@ -188,5 +188,5 @@ class TestToolTimeout:
return "never"
# TimeoutError should be caught and converted to ToolError
with pytest.raises((ToolError, McpError)):
with pytest.raises((ToolError, MCPError)):
await mcp.call_tool("times_out")