The official PHP SDK for Model Context Protocol servers and clients. Maintained in collaboration with The PHP Foundation.
by modelcontextprotocolLast 12 weeks · 48 commits
5 of 6 standards met
clear() previously removed all non-manual elements, which destroyed dynamically registered tools when setDiscoveryState() was called on the next request cycle. Add isDiscovered flag to ElementReference so clear() only removes elements that were imported via setDiscoveryState(), preserving both manual and dynamic registrations.
Repository: modelcontextprotocol/php-sdk. Description: The official PHP SDK for Model Context Protocol servers and clients. Maintained in collaboration with The PHP Foundation. Stars: 1385, Forks: 120. Primary language: PHP. Languages: PHP (99.7%), Twig (0.2%), Makefile (0.1%). Homepage: https://php.sdk.modelcontextprotocol.io Latest release: v0.4.0 (1w ago). Open PRs: 9, open issues: 21. Last activity: 23h ago. Community health: 87%. Top contributors: chr-hertel, CodeWithKyrian, Nyholm, OskarStark, soyuka, luoyue712, bigdevlarry, bb-c24, ineersa, xentixar and others.
PHP