You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There currently doesn't seem to be a way for handling potential callbacks from 3rd party libraries. I found that using thread locking allowed the callback function to execute. However, I think there could be a more "graceful" way of handling this.
`python
from foo import func
from mcp.server.fastmcp import FastMCP
There currently doesn't seem to be a way for handling potential callbacks from 3rd party libraries. I found that using thread locking allowed the callback function to execute. However, I think there could be a more "graceful" way of handling this.
`python
from foo import func
from mcp.server.fastmcp import FastMCP
def cb_func()
print(bar)
@mcp.tool(name="callback_foo")
def callback():
foo = func(file_path, cb_func)
`
The text was updated successfully, but these errors were encountered: