Commit
·
a994b2f
1
Parent(s):
28b9194
corrected not found
Browse files
deploy.py
CHANGED
|
@@ -4,6 +4,14 @@ from server import mcp
|
|
| 4 |
# We assign it to 'app' so uvicorn can find it
|
| 5 |
app = mcp.sse_app
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
if __name__ == "__main__":
|
| 8 |
import uvicorn
|
| 9 |
# Use 7860 for HF Spaces
|
|
|
|
| 4 |
# We assign it to 'app' so uvicorn can find it
|
| 5 |
app = mcp.sse_app
|
| 6 |
|
| 7 |
+
from starlette.responses import PlainTextResponse
|
| 8 |
+
from starlette.routing import Route
|
| 9 |
+
|
| 10 |
+
async def home(request):
|
| 11 |
+
return PlainTextResponse("MCP Server is Running! Connect your client to /sse")
|
| 12 |
+
|
| 13 |
+
app.routes.append(Route("/", endpoint=home))
|
| 14 |
+
|
| 15 |
if __name__ == "__main__":
|
| 16 |
import uvicorn
|
| 17 |
# Use 7860 for HF Spaces
|