Everything MCP Session-Scoped Resources
Reference implementation for temporary text or blob resources that belong to one legacy MCP server session.
About this listing
Everything's session-resource component demonstrates resources whose lifetime follows the server instance handling a legacy MCP session. It builds resource URIs from demo://resource/session/ and a supplied name, then registers either text or blob content for later reads. Registrations are tracked separately for each server instance. Registering the same URI again replaces that instance's existing resource without removing another session's registration. Returned resource links preserve metadata from the registered resource. This component is useful for understanding session isolation and temporary tool-produced content; it does not provide durable storage. The reference documentation distinguishes this legacy session approach from the minted-resource mechanism used for stateless clients. The MIT-licensed code is free; infrastructure and separately chosen model services are not included.