MCPcopy Create free account
hub / github.com/IBM/mcp-cli / live_server

Function live_server

tests/dashboard/test_integration.py:45–52  ·  view source on GitHub ↗

Start a real DashboardServer on a random port. Stops on teardown.

()

Source from the content-addressed store, hash-verified

43
44@pytest.fixture
45async def live_server():
46 """Start a real DashboardServer on a random port. Stops on teardown."""
47 from mcp_cli.dashboard.server import DashboardServer
48
49 srv = DashboardServer()
50 port = await srv.start(port=0)
51 yield srv, port
52 await srv.stop()
53
54
55# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

startMethod · 0.95
stopMethod · 0.95
DashboardServerClass · 0.90

Tested by

no test coverage detected