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 12
12
13
13
14
14
@pytest .fixture
15
- def lowlevel_server_complex_app (complex_fastapi_app : FastAPI ) -> Server :
15
+ def fastapi_mcp (complex_fastapi_app : FastAPI ) -> FastApiMCP :
16
16
mcp = FastApiMCP (
17
17
complex_fastapi_app ,
18
18
name = "Test MCP Server" ,
19
19
description = "Test description" ,
20
20
)
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
22
28
23
29
24
30
@pytest .mark .asyncio
Original file line number Diff line number Diff line change 12
12
13
13
14
14
@pytest .fixture
15
- def lowlevel_server_simple_app (simple_fastapi_app : FastAPI ) -> Server :
15
+ def fastapi_mcp (simple_fastapi_app : FastAPI ) -> FastApiMCP :
16
16
mcp = FastApiMCP (
17
17
simple_fastapi_app ,
18
18
name = "Test MCP Server" ,
19
19
description = "Test description" ,
20
20
)
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
22
28
23
29
24
30
@pytest .mark .asyncio
You can’t perform that action at this time.
0 commit comments