Download scribe_python_client/mcp_app/main.py from eporath/TestSpace: direct link, hf CLI and curl.
- Browser
- Download file 804 Bytes
-
https://huggingface.co/spaces/eporath/TestSpace/resolve/main/scribe_python_client/mcp_app/main.py
- Command line
-
hf download hf://spaces/eporath/TestSpace/scribe_python_client/mcp_app/main.py
-
curl -L -o main.py https://huggingface.co/spaces/eporath/TestSpace/resolve/main/scribe_python_client/mcp_app/main.py
804 Bytes
| """from .endpointsAPI import app as mcp_fastapi_app | |
| from fastapi_mcp import FastApiMCP | |
| from fastapi import FastAPI | |
| def run_mcp_server(host="0.0.0.0", port=8000, base_route="/scribe"): | |
| mcp = FastApiMCP( | |
| mcp_fastapi_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(mcp_fastapi_app, host=host, port=port) | |
| """ | |
| def run_mcp_server(): | |
| pass | |
| from .endpointsAPI import app | |
| from fastapi_mcp import FastApiMCP | |
| from pathlib import Path | |
| import json | |
| mcp = FastApiMCP( | |
| app, | |
| name="MCPEndpoints", | |
| description="Tools for querying data from Scribe database using FastAPI endpoints with MCP", | |
| ) | |
| mcp.mount() | |
| mcp.setup_server() |