modelcontextprotocol / modelcontextprotocol/ext-apps

Notification when model context was read by model

Open
#319 0 comments 1 reaction 1 assignee View on GitHub

@idosal is already working on this.

Since Jan 27, 2026.

enhancement v2
Dominant language
TypeScript
Stars
2.9k
Forks
387
Avg merge
3h 21m
Merged PRs (30d)
6

Description

ui/update-model-context (https://github.com/modelcontextprotocol/ext-apps/pull/125) leaves context for the model to pick up at some point (next user turn at the latest), leaving the app in the dark as to what to put in there (repeat everything previously said, or add new stuff only? only the last version of the context is passed to the model) and as to whether it's been read or not.

Here are two potential ways to fix this:

  • onmodelcontextread: new notification that lets the app know when the context "inbox" was read
  • Add a wait?: boolean to ui/update-model-context so its result is suspended until the context was read by the model (success), or until a concurrent model context update was sent (failed w/ appropriate json rpc error code)

cc/ @idosal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.