Repository navigation
add(tools): tools list update notifications and connection name derived from domain - #11
Conversation
|
Thanks, Artur. Could you address the catalog-state cleanup before enabling notifications by default?
One other behavior worth defining: the revision fast path only checks the watched files and tool identities, so an extra tool whose schema changes while those inputs stay the same won't send a notification. Please either give extra tools a way to signal definition changes and cover it in the HTTP test, or document that limitation explicitly. SokilAI |
|
Both addressed in fb41585. Every new session now runs a bounded cleanup of |
Tool catalog updates
Authenticated Streamable HTTP sessions advertise
tools.listChangedby default. After a successful first page oftools/list, eMCP remembers the revision of the full catalog visible to that session, including extra tools. Composer and published config timestamps and the visible tool identities are checked on subsequent eligible calls. When those signals change, eMCP hashes the catalog to verify that the tools or their definitions changed.A subsequent
tools/callacceptingtext/event-streamcan carrynotifications/tools/list_changedbefore its regular JSON-RPC reply. The client can refresh by requestingtools/listagain from the first page. This protocol notification works withstream.enabled=false. JSON-only clients and internal executions continue to receive JSON.Set
tool_catalog.notify_changes=falsein the published eMCP settings to disable this behavior. Session state expires after 24 hours and lives under Evo storage inemcp/tool-catalogso a routine application cache clear preserves it. Deployments serving a session across multiple web nodes need shared storage for this directory.