Skip to content

sep-2322-client-request-state scenario's mock server does not implement server/discover #355

@guglielmo-san

Description

@guglielmo-san

Problem

The sep-2322-client-request-state scenario's mock server does not implement server/discover. It dispatches only notifications/initialized, tools/list, tools/call, and elicitation/create; any other method falls through to default: -32601 Method not found.

This makes the scenario unreachable for clients that probe with server/discover first per spec.

Spec text

From Versioning and Compatibility:

Servers MUST implement server/discover. Clients MAY call it before sending any other requests to learn the server's supported versions up front [...]

Since the spec mandates server/discover for every modern server, a draft-only scenario mock should provide it too, otherwise it can't be used to evaluate a spec-conformant client.

Suggested fix

Add a server/discover handler to the sep-2322-client-request-state scenario server that returns a minimal DiscoverResult advertising the draft protocol version, matching what the companion request-metadata scenario already does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions