Something went wrong. Try again.
mirror of github.com/PrefectHQ/fastmcp
Something went wrong. Try again.
1234567891011import pytest
from fastmcp import FastMCP
class TestMountSafety: def test_self_mount_raises(self): mcp = FastMCP("test") with pytest.raises(ValueError, match="Cannot mount a server onto itself"): mcp.mount(mcp)