Mastra as Remote Agent for AG UI using Copilotkit seems not working?

here's my dependencies: "@ag-ui/mastra": "^0.0.8", "@copilotkit/react-core": "1.9.3", "@copilotkit/react-ui": "1.9.3", "@copilotkit/runtime": "1.9.3", "@mastra/client-js": "0.10.20", "next": "15.4.6", "react": "19.1.0", "react-dom": "19.1.0" I tried a simple Frontend Actions: useCopilotAction({ name: "setThemeColor", parameters: [ { name: "themeColor", description: "The theme color to set. Make sure to pick nice colors.", required: true, }, ], handler({ themeColor }) { setThemeColor(themeColor); }, }); But it keeps loading If I try to just say "Hi" it will just reply immediately ( see attachments ) Here's my Mastra Server's Dependencies: "@mastra/core": "^0.11.1",
No description
No description
19 Replies
Chaosumaru
ChaosumaruOP3mo ago
hmmm perhaps there's a breaking changes or something?
Chaosumaru
ChaosumaruOP3mo ago
Quickstart
Turn your Mastra Agents into an agent-native application in 10 minutes.
Chaosumaru
ChaosumaruOP3mo ago
update: the Local Agents setup is working fine using "useCopilotAction" is not working properly if the route setup is using "MastraAgent.getRemoteAgents" I use the newly created Mastra via "npm create mastra@latest" and it is still not working properly for Copilot Action
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Chaosumaru
ChaosumaruOP2mo ago
Is there a updates happening? I haven't get back on this yet since there's no response to the things that I have encountered. I will get back on this by next week
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Chaosumaru
ChaosumaruOP2mo ago
Here's the previous code that I followed and test, ( see attachment ) left -> mounted on app > travel > page.tsx right -> route.ts - configured to have existing Mastra Server Sorry for the late reply. I’ll try to setup again using the new versions and follow the documentions... while using my existing Mastra Servers..
No description
Chaosumaru
ChaosumaruOP2mo ago
I will try this approach to confirm this https://docs.copilotkit.ai/mastra
Introduction
Bring your Mastra agents to your users with CopilotKit via AG-UI.
Chaosumaru
ChaosumaruOP2mo ago
updates: So far, my colleague who ran the test and integrate it in our portal hasn’t encountered the same issue I experienced. Thank you for your response.
Chaosumaru
ChaosumaruOP2mo ago
By the way, this is new setup using npx copilotkit@latest init now it gives me type issues
No description
Chaosumaru
ChaosumaruOP2mo ago
Here's the source code that I copied
No description
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
Chaosumaru
ChaosumaruOP4w ago
Here @Tony 🔶 (@CopilotKit) for CopilotKit: "@copilotkit/react-core": "1.10.4", "@copilotkit/react-textarea": "1.10.4", "@copilotkit/react-ui": "1.10.4", "@copilotkit/runtime": "1.10.4", for Mastra Client & ag-ui: "@mastra/client-js": "0.13.0", "@ag-ui/mastra": "0.0.11",
Chaosumaru
ChaosumaruOP4w ago
@Tony 🔶 (@CopilotKit) here's the error that I get after killing the NextJs server and after it is killed that's where the frontend action trigger
No description
No description
Chaosumaru
ChaosumaruOP4w ago
We tried to use the Shared State.. it does not update the state to render in the main component
No description
Chaosumaru
ChaosumaruOP4w ago
state did not update ( see attachment) No error messages from copilotkit
No description
Chaosumaru
ChaosumaruOP4w ago
@Tony 🔶 (@CopilotKit) Only the Remote Mastra Agents has Errors but in Local Mastra Agents it is working fine. We will just try to transfer all the agents to into local
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?