Skip to content

Unable to use async callbacks for tools/resources with Streamable HTTP transport. #848

@iMokhonko

Description

@iMokhonko

Describe the bug
Unable to use async callbacks for tools/resources with Streamable HTTP transport.

To Reproduce
Steps to reproduce the behavior:
Define tool/resource that takes async function as callback.

For example

server.resource('some resource', 'config://some/resource', async () => { ... })

In result I get Error MCP error -32001: Request timed out

Expected behavior
Allows to use async logic inside callbacks.

Logs

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions