Coverage for app/main.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.8.2, created at 2025-06-05 03:28 +0000

1from fastapi import FastAPI 

2from fastapi_mcp import FastApiMCP 

3 

4from app.endpoint.router import main_router 

5 

6app = FastAPI() 

7app.include_router(main_router) 

8 

9mcp = FastApiMCP( 

10 app, 

11 name="My API MCP", 

12 description="My API description", 

13 # base_url="http://localhost:8000", 

14) 

15 

16# Mount the MCP server directly to your FastAPI app 

17mcp.mount()