-
Notifications
You must be signed in to change notification settings - Fork 182
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Using the useApp hook, I notice app.ontoolinput is not consistently called although it is registered before app.connect
To Reproduce
Steps to reproduce the behavior:
- Instantiate
useApp()with a minimal setup:
import { useApp } from "@modelcontextprotocol/ext-apps/react";
//...
useApp({
appInfo: { name: "Describe your app here...", version: "1.0.0" },
capabilities: {},
onAppCreated: (app) => {
app.ontoolinput = (input) => {
console.info("Received tool call input:", input);
};
},
});- Run the app in any host
- Call a tool with user input using a manual prompt
- Notice how
app.ontoolinputis not always called
Expected behavior
app.ontoolinput is called every time a tool is invoked
Logs
If applicable, add logs to help explain your problem.
Additional context
Other callbacks seem to run as expected, including app.ontoolresult.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working