Kaballas commited on
Commit
8e8fff2
·
1 Parent(s): 6c1d676
src/mcp_server_mariadb_vector/server.py CHANGED
@@ -255,10 +255,14 @@ def 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:")
 
255
 
256
  app = mcp.http_app() # Using http_app instead of deprecated sse_app
257
 
258
+ # Debug: Print registered MCP tool names (fix AttributeError)
259
+ print("[DEBUG] FastMCP attributes:", dir(mcp))
260
+ if hasattr(mcp, "_tools"):
261
+ print("[DEBUG] Registered MCP tools:")
262
+ for tool in mcp._tools:
263
+ print(f" - {tool}")
264
+ else:
265
+ print("[DEBUG] No _tools attribute found on mcp.")
266
 
267
  # Debug: Print all routes in the MCP app
268
  print("[DEBUG] Registered routes in MCP app:")