ag-ui-protocol / ag-ui-protocol/ag-ui

[Bug]: AGUI Middleware is missing for MCP apps with google adk framework not redenring ui tool like langraph with mcp middleware

Đang mở
#1,345 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
15.9k
Fork
1.4k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
163

Mô tả

### Pre-flight Checklist

- [x] I have searched [existing issues](https://github.com/ag-ui-protocol/ag-ui/issues) and this hasn't been reported yet.
- [x] I am using the **latest** version AG-UI.

### Describe the Bug

when we are using mcp middleware for langgraph agent the mcp app tool is directly rendering the ui component as in frame in the chat window. However when we are working with google adk framework it is not rendering to render it we need to additionality define the render tool after that it will render the ui mcp app with copilotkit

common configuraiton with middleware

import { MCPAppsMiddleware } from '@ag-ui/mcp-apps-middleware';
import { HttpAgent } from '@ag-ui/client';

const agent = new HttpAgent({
url: `http://127.0.0.1:8094`, // single POST endpoint
});

agent.use(
new MCPAppsMiddleware({
mcpServers: [
{
type: 'http',
url: mcpUrl,
serverId: 'spider-mcp',
},
],
}),
);

### Steps to Reproduce

create mcp apps
intergrate with agent and copilotkit
mcpmiddleware for mcp tool and test with google adk agent

### Expected Behavior

UI tools should automatically render same like langgraph agent

### Environment

```text
Node 22/ Python 3.13
```

### Screenshots

_No response_

### Logs & Errors

```shell

```

### Additional Context

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.