Have been implementing MCP resource support in my app.
Took the approach of letting users add resources directly to their current message which adds a snapshot of the resource to the message history.
Also added the ability to 'pin' a resource to a chat which adds it automatically to the top of the chat history (experimented with adding it to the bottom but then the agent would comment on it directly).
Took the approach of letting users add resources directly to their current message which adds a snapshot of the resource to the message history.
Also added the ability to 'pin' a resource to a chat which adds it automatically to the top of the chat history (experimented with adding it to the bottom but then the agent would comment on it directly).
I'm hoping it enables some cool use cases.