Skip to content

When passing the onprogress method, the content passed in _meta will be lost. #559

Closed
@daidi

Description

@daidi

this is right,the _meta could be passed to the svr

client?.callTool({
        name: toolName,
        arguments: input as Record<string, unknown>,
        _meta: {
          __test: 'test',
        },
      }, CallToolResultSchema, {}})

however:

client?.callTool({
        name: toolName,
        arguments: input as Record<string, unknown>,
        _meta: {
          __test: 'test',
        },
      }, CallToolResultSchema, {

onprogress: (progress: any) => {
}
}})

_meta disappeared...

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