Skip to content

Client.ListTools: cursor should never be sent as null #125

@stouf

Description

@stouf

The MCP specification defines the cursor parameter as an optional string. In the world of TypeScript, an optional string is either string or undefined. It does not include null values.

Currently, the Client.ListTools function allows for null values to be sent to the server, which is not aligned with the specifications and therefore does not play well with some MCP servers.

I propose we update the code as in #124

References:

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