Spaces:
Running
Running
Commit
·
d71c62e
1
Parent(s):
8f3836c
Add debugging logs for MCP tool registration
Browse files- screens/chat.py +7 -1
screens/chat.py
CHANGED
|
@@ -292,7 +292,10 @@ def get_mcp_tools():
|
|
| 292 |
|
| 293 |
# Log available tools
|
| 294 |
tool_names = [tool.name for tool in tools]
|
| 295 |
-
print(f"Connected to TraceMind MCP server
|
|
|
|
|
|
|
|
|
|
| 296 |
|
| 297 |
return tools
|
| 298 |
|
|
@@ -364,6 +367,9 @@ def create_agent():
|
|
| 364 |
)
|
| 365 |
|
| 366 |
print("✅ Agent created successfully (session-specific instance)")
|
|
|
|
|
|
|
|
|
|
| 367 |
return agent
|
| 368 |
|
| 369 |
except Exception as e:
|
|
|
|
| 292 |
|
| 293 |
# Log available tools
|
| 294 |
tool_names = [tool.name for tool in tools]
|
| 295 |
+
print(f"✅ Connected to TraceMind MCP server")
|
| 296 |
+
print(f"✅ Received {len(tools)} tools:")
|
| 297 |
+
for tool in tools:
|
| 298 |
+
print(f" - {tool.name}")
|
| 299 |
|
| 300 |
return tools
|
| 301 |
|
|
|
|
| 367 |
)
|
| 368 |
|
| 369 |
print("✅ Agent created successfully (session-specific instance)")
|
| 370 |
+
print(f"✅ Agent has {len(agent.tools)} tools registered:")
|
| 371 |
+
for tool_name in agent.tools.keys():
|
| 372 |
+
print(f" - {tool_name}")
|
| 373 |
return agent
|
| 374 |
|
| 375 |
except Exception as e:
|