File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1212
1313
1414@pytest .fixture
15- def lowlevel_server_complex_app (complex_fastapi_app : FastAPI ) -> Server :
15+ def fastapi_mcp (complex_fastapi_app : FastAPI ) -> FastApiMCP :
1616 mcp = FastApiMCP (
1717 complex_fastapi_app ,
1818 name = "Test MCP Server" ,
1919 description = "Test description" ,
2020 )
21- return mcp .server
21+ mcp .mount ()
22+ return mcp
23+
24+
25+ @pytest .fixture
26+ def lowlevel_server_complex_app (fastapi_mcp : FastApiMCP ) -> Server :
27+ return fastapi_mcp .server
2228
2329
2430@pytest .mark .asyncio
Original file line number Diff line number Diff line change 1212
1313
1414@pytest .fixture
15- def lowlevel_server_simple_app (simple_fastapi_app : FastAPI ) -> Server :
15+ def fastapi_mcp (simple_fastapi_app : FastAPI ) -> FastApiMCP :
1616 mcp = FastApiMCP (
1717 simple_fastapi_app ,
1818 name = "Test MCP Server" ,
1919 description = "Test description" ,
2020 )
21- return mcp .server
21+ mcp .mount ()
22+ return mcp
23+
24+
25+ @pytest .fixture
26+ def lowlevel_server_simple_app (fastapi_mcp : FastApiMCP ) -> Server :
27+ return fastapi_mcp .server
2228
2329
2430@pytest .mark .asyncio
You can’t perform that action at this time.
0 commit comments