mirror of
https://github.com/tadata-org/fastapi_mcp.git
synced 2025-04-13 23:32:11 +03:00
add logging to examples (override uvicorn's default logger)
This commit is contained in:
@@ -3,10 +3,14 @@ Simple example of using FastAPI-MCP to add an MCP server to a FastAPI app.
|
||||
"""
|
||||
|
||||
from examples.apps import items
|
||||
from examples.setup import setup_logging
|
||||
|
||||
from fastapi_mcp import FastApiMCP
|
||||
|
||||
|
||||
setup_logging()
|
||||
|
||||
|
||||
# Add MCP server to the FastAPI app
|
||||
mcp = FastApiMCP(
|
||||
items.app,
|
||||
|
||||
Reference in New Issue
Block a user