Spaces:
Runtime error
Runtime error
Download scribe_python_client/mcp_app/main.py from eporath/scribe-mcp: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/eporath/scribe-mcp/resolve/main/scribe_python_client/mcp_app/main.py
- Command line
-
hf download hf://spaces/eporath/scribe-mcp/scribe_python_client/mcp_app/main.py
-
curl -L -o main.py https://huggingface.co/spaces/eporath/scribe-mcp/resolve/main/scribe_python_client/mcp_app/main.py
440 Bytes
| #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) | |