Update server.py
Browse files
server.py
CHANGED
@@ -4,7 +4,6 @@ from fastapi.responses import HTMLResponse, FileResponse
|
|
4 |
from fastapi.staticfiles import StaticFiles
|
5 |
from fastapi.templating import Jinja2Templates
|
6 |
from echo_server import mcp as echo_mcp
|
7 |
-
from echo_server import openweather_http_app
|
8 |
from math_server import mcp as math_mcp
|
9 |
import os
|
10 |
|
@@ -40,7 +39,7 @@ async def index(request: Request):
|
|
40 |
return templates.TemplateResponse("index.html", {"request": request, "base_url": base_url})
|
41 |
|
42 |
|
43 |
-
app.mount("/echo",
|
44 |
app.mount("/math", math_mcp.streamable_http_app())
|
45 |
|
46 |
PORT = int(os.environ.get("PORT", "10000"))
|
|
|
4 |
from fastapi.staticfiles import StaticFiles
|
5 |
from fastapi.templating import Jinja2Templates
|
6 |
from echo_server import mcp as echo_mcp
|
|
|
7 |
from math_server import mcp as math_mcp
|
8 |
import os
|
9 |
|
|
|
39 |
return templates.TemplateResponse("index.html", {"request": request, "base_url": base_url})
|
40 |
|
41 |
|
42 |
+
app.mount("/echo", echo_mcp.streamable_http_app())
|
43 |
app.mount("/math", math_mcp.streamable_http_app())
|
44 |
|
45 |
PORT = int(os.environ.get("PORT", "10000"))
|