Skip to content

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

@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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions