Skip to content

Add elicitation timeout coordination via notifications/elicitation/pe…#2188

Open
ArsalanShakil wants to merge 1 commit intomodelcontextprotocol:mainfrom
ArsalanShakil:feature/elicitation-timeout-coordination
Open

Add elicitation timeout coordination via notifications/elicitation/pe…#2188
ArsalanShakil wants to merge 1 commit intomodelcontextprotocol:mainfrom
ArsalanShakil:feature/elicitation-timeout-coordination

Conversation

@ArsalanShakil
Copy link

This change addresses issue #2006 by adding a mechanism for servers to coordinate client-side timeouts when elicitation is required during request processing.

Changes:

  • Add ElicitationPendingNotification to schema/draft/schema.ts
  • Add example JSON files for the new notification
  • Update elicitation documentation with timeout coordination guidance
  • Update lifecycle documentation with elicitation timeout handling section

The new notifications/elicitation/pending notification allows servers to inform clients when an elicitation is about to be issued for an in-flight request. Clients can then suspend or extend the timeout for that request until the elicitation completes.

Closes #2006

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@ArsalanShakil ArsalanShakil requested a review from a team as a code owner February 2, 2026 13:58
…nding

This change addresses issue modelcontextprotocol#2006 by adding a mechanism for servers to
coordinate client-side timeouts when elicitation is required during
request processing.

Changes:
- Add ElicitationPendingNotification to schema/draft/schema.ts
- Add example JSON files for the new notification
- Update elicitation documentation with timeout coordination guidance
- Update lifecycle documentation with elicitation timeout handling section

The new notifications/elicitation/pending notification allows servers to
inform clients when an elicitation is about to be issued for an in-flight
request. Clients can then suspend or extend the timeout for that request
until the elicitation completes.

Closes modelcontextprotocol#2006
@ArsalanShakil ArsalanShakil force-pushed the feature/elicitation-timeout-coordination branch from ec3c3df to 1aa0acb Compare February 2, 2026 14:16
@jonathanhefner
Copy link
Member

Hi, @ArsalanShakil! 👋 Thank you for your proposal, but changes to the spec must follow the SEP process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Elicitation client side timeout coodination

2 participants