ww
Browse files
app.py
CHANGED
@@ -10,9 +10,7 @@ app = FastAPI()
|
|
10 |
async def root():
|
11 |
return {"status": "ok"}
|
12 |
|
13 |
-
|
14 |
-
mcp_app = mcp.http_app()
|
15 |
-
app.mount("/api", mcp_app)
|
16 |
|
17 |
print("Registered routes in main app:")
|
18 |
for route in app.routes:
|
@@ -24,7 +22,7 @@ for route in app.routes:
|
|
24 |
# Try to access the routes in the mounted app (mcp_app) if possible
|
25 |
print("\nAttempting to inspect MCP app routes:")
|
26 |
try:
|
27 |
-
for route in
|
28 |
print(route.path, getattr(route, "methods", type(route)))
|
29 |
except Exception as e:
|
30 |
print(f"Couldn't inspect MCP app routes: {e}")
|
|
|
10 |
async def root():
|
11 |
return {"status": "ok"}
|
12 |
|
13 |
+
app = mcp.http_app()
|
|
|
|
|
14 |
|
15 |
print("Registered routes in main app:")
|
16 |
for route in app.routes:
|
|
|
22 |
# Try to access the routes in the mounted app (mcp_app) if possible
|
23 |
print("\nAttempting to inspect MCP app routes:")
|
24 |
try:
|
25 |
+
for route in app.routes:
|
26 |
print(route.path, getattr(route, "methods", type(route)))
|
27 |
except Exception as e:
|
28 |
print(f"Couldn't inspect MCP app routes: {e}")
|