src/mcp_server_mariadb_vector/server.py
CHANGED
@@ -255,5 +255,18 @@ def main():
|
|
255 |
|
256 |
app = mcp.http_app() # Using http_app instead of deprecated sse_app
|
257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
if __name__ == "__main__":
|
259 |
main()
|
|
|
255 |
|
256 |
app = mcp.http_app() # Using http_app instead of deprecated sse_app
|
257 |
|
258 |
+
# Debug: Print registered MCP tool names
|
259 |
+
print("[DEBUG] Registered MCP tools:")
|
260 |
+
for tool in mcp.tools:
|
261 |
+
print(f" - {tool}")
|
262 |
+
|
263 |
+
# Debug: Print all routes in the MCP app
|
264 |
+
print("[DEBUG] Registered routes in MCP app:")
|
265 |
+
try:
|
266 |
+
for route in app.routes:
|
267 |
+
print(f" - {getattr(route, 'path', str(route))} {getattr(route, 'methods', '')}")
|
268 |
+
except Exception as e:
|
269 |
+
print(f"[DEBUG] Could not inspect MCP app routes: {e}")
|
270 |
+
|
271 |
if __name__ == "__main__":
|
272 |
main()
|