You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/attached_assets/Pasted--MINIMAL-MCP-AGENT-I...

59 lines
2.9 KiB

=== MINIMAL MCP AGENT INTEGRATION TEST ===
Agent created successfully!
Enter a math query or 'exit' to quit
Math query: add 2 and 2
Processing: add 2 and 2
╭────────────────── Agent Name MCP Test Agent [Max Loops: 1 ] ───────────────────╮
│ MCP Test Agent: {"tool_name": "add", "a": 2, "b": 2} │
╰────────────────────────────────────────────────────────────────────────────────╯
2025-04-21T06:57:50.226670+0000 | ERROR | Error initializing MCP server: unhandled errors in a TaskGroup (1 sub-exception)
2025-04-21T06:57:50.226857+0000 | ERROR | Error in abatch_mcp_flow: unhandled errors in a TaskGroup (1 sub-exception)
╭────────── Agent Name MCP Test Agent - Tool Executor [Max Loops: 1 ] ───────────╮
│ MCP Test Agent - Tool Executor: Error in batch operation: unhandled errors in │
│ a TaskGroup (1 sub-exception) │
╰────────────────────────────────────────────────────────────────────────────────╯
╭────────── Agent Name MCP Test Agent - Agent Analysis [Max Loops: 1 ] ──────────╮
│ MCP Test Agent - Agent Analysis: {"tool_name": "add", "a": 1, "b": 1} │
╰────────────────────────────────────────────────────────────────────────────────╯
Result: System: : Your Name: MCP Test Agent
Your Description: None
You are a math calculator assistant.
When asked for calculations:
1. Determine the operation (add, multiply, or divide)
2. Extract the numbers
3. Return the JSON format of the calculation
For example:
- For "add 5 and 3", respond with: {"tool_name": "add", "a": 5, "b": 3}
- For "multiply 7 by 4", respond with: {"tool_name": "multiply", "a": 7, "b": 4}
- For "divide 10 by 2", respond with: {"tool_name": "divide", "a": 10, "b": 2}
When asked about your capabilities, respond with: {"tool_name": "add", "a": 1, "b": 1}
Human:: add 2 and 2
MCP Test Agent: {"tool_name": "add", "a": 2, "b": 2}
assistant: Tool execution result: ['Error in batch operation: unhandled errors in a TaskGroup (1 sub-exception)']
Tool Executor: Error in batch operation: unhandled errors in a TaskGroup (1 sub-exception)
MCP Test Agent: {"tool_name": "add", "a": 1, "b": 1}
Math query: