modelcontextprotocol / modelcontextprotocol/php-sdk

[Server] Emit Notification on Capability Change

Open
#12 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted Server
Dominant language
PHP
Stars
1.6k
Forks
173
Avg merge
2d 49m
Merged PRs (30d)
23

Description

The specification lists server emitting notifications, whenever a list of capabilities for the client changes:

For this we would need support from dispatching events in the Registry to creating notifications for

  • ResourceListChangedNotification
  • PromptListChangedNotification
  • ToolListChangedNotification

(There are more server notification, but less connected to this scenario.)


Please announce yourself before working on this - so we can avoid duplicate effort.

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.

Research direction

Start by tracing how the Registry dispatches events and how server notifications are represented. Implement the capability-change path for ResourceListChangedNotification, PromptListChangedNotification, and ToolListChangedNotification; done means each listed notification is emitted when its corresponding client capability list changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.