Fix FastMCP server startup
This commit is contained in:
@@ -108,6 +108,17 @@ class TestMcpServerStructure:
|
||||
except ImportError as e:
|
||||
pytest.skip(f"fastmcp not installed: {e}")
|
||||
|
||||
def test_fastmcp_constructor_uses_supported_arguments(self):
|
||||
"""The server should not pass removed options to FastMCP."""
|
||||
from pathlib import Path
|
||||
|
||||
source = (
|
||||
Path(__file__).resolve().parents[1] / "mcp-server" / "server.py"
|
||||
).read_text()
|
||||
|
||||
assert 'FastMCP("context7-docs")' in source
|
||||
assert "root_path=" not in source
|
||||
|
||||
|
||||
class TestMcpServerToolsExistence:
|
||||
"""Tests to verify MCP server has expected tools defined."""
|
||||
|
||||
Reference in New Issue
Block a user