Skip to content
This repository was archived by the owner on Apr 11, 2026. It is now read-only.
This repository was archived by the owner on Apr 11, 2026. It is now read-only.

McpSyncRequestContext.elicit(...) does not set progressToken #91

@vinsguru

Description

@vinsguru

The following two methods in McpSyncRequestContext do not set the progressToken internally.

<T> StructuredElicitResult<T> elicit(Class<T> type);
<T> StructuredElicitResult<T> elicit(TypeReference<T> type);

progressToken is required by the client side to correctly associate the ElicitRequest with the user who initiated it. Since these methods do not populate the token, the client cannot identify which user the structured elicit result belongs to.

Expected behavior:
Both elicit(...) methods should automatically set the progressToken before returning StructuredElicitResult<T>.

Actual behavior:
progressToken remains unset, causing downstream identification issues.

Impact:
Client cannot correlate the elicit request with the correct user/session.

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