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

【ag-ui/mcp-apps-middleware】doesn't work in client side.

Aperta
#988 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug Integration
Lingua principale
Python
Stelle
15.9k
Fork
1.4k
Merge medio
1g 17h
PR unite (30g)
163

Descrizione

Dear Team:
I use @ag-ui/mcp-apps-middleware in front-end project, when i start the project, an error occurs: crypto is not defined. So I check the source code of middleware, found the following:

import { randomUUID, createHash } from "crypto";

The crypto library is a node.js built-in library, npm dose not have this! so the error occurs! It seems this middleware should work in NodeJS or server side! BUT HOW CAN I USE it in client side ? And I want to know this middleware is designed to work in SERVER SIDE ?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.