Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MCP External Library Callback Support #755

Copy link
Copy link
Open
@xorroproprop

Description

@xorroproprop
Issue body actions

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)
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.