Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,11 +22,12 @@ def index(request: Request):
|
|
22 |
<body>
|
23 |
<h2>FastAPI URLS</h2>
|
24 |
<p><a href="{host_url}" target="_blank">Host URL:</a></p>
|
25 |
-
<p><a href="{host_url}/docs">DOCS</a></p>
|
26 |
-
<p><a href="{host_url}/redoc" >REDOC</a></p>
|
27 |
<p><a href="{host_url}/openapi.json" target="_blank">openapi.json</a></p>
|
28 |
<p><a href="{host_url}/mcp" target="_blank">MCP</a></p>
|
29 |
-
<p>
|
|
|
30 |
</body>
|
31 |
</html>
|
32 |
'''
|
@@ -60,5 +61,5 @@ mcp = FastApiMCP(
|
|
60 |
include_operations=["get_translate", "get_paraphrase"],
|
61 |
include_tags=["paraphrase", "translate"]
|
62 |
)
|
63 |
-
# Mount the MCP server directly to
|
64 |
mcp.mount()
|
|
|
22 |
<body>
|
23 |
<h2>FastAPI URLS</h2>
|
24 |
<p><a href="{host_url}" target="_blank">Host URL:</a></p>
|
25 |
+
<p><a href="{host_url}/docs" target="_blank">DOCS</a></p>
|
26 |
+
<p><a href="{host_url}/redoc" target="_blank">REDOC</a></p>
|
27 |
<p><a href="{host_url}/openapi.json" target="_blank">openapi.json</a></p>
|
28 |
<p><a href="{host_url}/mcp" target="_blank">MCP</a></p>
|
29 |
+
<p>MCP configuration: {"mcpServers": {"fastapi-mcp": {"url": "https://tiberiucristianleon-fastapimt.hf.space/mcp"}}}</a></p>
|
30 |
+
<p>MTMODELS: {list(MTMODELS.values())}"</p>
|
31 |
</body>
|
32 |
</html>
|
33 |
'''
|
|
|
61 |
include_operations=["get_translate", "get_paraphrase"],
|
62 |
include_tags=["paraphrase", "translate"]
|
63 |
)
|
64 |
+
# Mount the MCP server directly to the FASTAPI app
|
65 |
mcp.mount()
|