Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Fix test regex pattern for updated error message

Jeremiah Lowine9667b662472
diff --git a/tests/server/test_server.py b/tests/server/test_server.py
index f319ad438..38ec24998 100644
--- a/tests/server/test_server.py
+++ b/tests/server/test_server.py
@@ -424,7 +424,7 @@ class TestToolDecorator:
mcp = FastMCP()
with pytest.raises(
- ValueError, match='Output schemas must have "type" set to "object"'
+ ValueError, match="Output schemas must represent object types"
):
@mcp.tool(output_schema={"type": "integer"})