File size: 440 Bytes
bce45c9
dc20d40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#This is Used for Running Locally
from .endpointsAPI import app
from fastapi_mcp import FastApiMCP
from pathlib import Path
import json


def run_mcp_server():
    mcp = FastApiMCP(
        app,
        name="MCPEndpoints",
        description="Tools for querying data from Scribe database using FastAPI endpoints with MCP",
    )

    mcp.mount()
    mcp.setup_server()
    import uvicorn
    uvicorn.run(app, host="127.0.0.1", port=8000)