-
Notifications
You must be signed in to change notification settings - Fork 3.2k
MCP Apps infinite loop during render #6373
Copy link
Copy link
Closed
Description
goose appears to send an infinite loop of ui/notifications/tool-input after tool result - appeared to cause re-rendering issues although this was inconsistent. Adding debugging and restarting the MCP server allowed my UI to render as expected after discovering this issue.
example log (not the full output as it is long)
🔍 Debug Log:
8:43:33 AM: 🚀 Initializing MCP App
8:43:39 AM: 📥 Received tool-input
{
"calendarId": "cal-OCfFpty2kvE6LLB",
"limit": 5
}
8:43:39 AM: ✅ Received tool-result
{
"content": [
{
"type": "text",
"text": "{\"result\":{\"data\":{\"eventAnalytics\":{\"totalEvents\":5,\"totalAttendees\":226,\"averageAttendeesPerEvent\":45.2,\"checkInRate\":0.1504424778761062,\"events\":[{\"id\":\"evt-lai9A77GhlAUyqR\",\"name\":\"Apollo and AWS in SF\",\"date\":\"2025-03-06T01:00:00.000Z\",\"attendeeCount\":26,\"checkedInCount\":0,\"location\":\"San Francisco, California\"},{\"id\":\"evt-sEkpMqp0F04rRV5\",\"name\":\"MCP Server Builder Series\",\"date\":\"202
8:43:39 AM: 🎯 Processing tool result
8:43:39 AM: 🎨 Rendering dashboard
{}
8:43:39 AM: 📥 Received tool-input
{
"calendarId": "cal-OCfFpty2kvE6LLB",
"limit": 5
}
8:43:39 AM: 📥 Received tool-input
{
"calendarId": "cal-OCfFpty2kvE6LLB",
"limit": 5
}
8:43:39 AM: 📥 Received tool-input
{
"calendarId": "cal-OCfFpty2kvE6LLB",
"limit": 5
}
To Reproduce
Steps to reproduce the behavior:
- Add debug logs to your html for an MCP app iframe
- Execute any tool
- observe console results in the iframe
Expected behavior
UI updates as expected with tool results and no re-rendering, no additional tool-input notifications are sent from goose
Screenshots
Example debug code added:

Example debug output in iframe (working version)
If applicable, add screenshots to help explain your problem.
Please provide the following information
- OS & Arch: [macos seqouia]
- Interface: [UI]
- Version: [v1.19.0]
- Extensions enabled: [Developer, ToDo, local http mcp server]
- Provider & Model: [sonnet 4.5]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels