MCP clients and cookie jars #1468
Replies: 3 comments 20 replies
-
|
I should note that I'm making an assumption here: If all access to MCP servers are authenticated (ie, I have a user identity), I can build my own server-side storage, keyed by the user identity. However, I'm assuming that there will exist at least some uses cases where there will be MCP servers that expose tools that aren't behind authentication/authorization. In those cases, you have standard abuse problems (scraping, spam, etc), and would want primitives to build rate-limiting, reputation, etc. Agent-side storage is useful for that. |
Beta Was this translation helpful? Give feedback.
-
|
I think @jonathanhefner has brought this up earlier as well. This would also complement #1442 perfectly. |
Beta Was this translation helpful? Give feedback.
-
|
Was thinking about this earlier today, and I wanted to offer a design: Define a special The prefix is bikesheddable. Some alternatives: We could then extend the concept to a full-on cookie-like mechanism with additional key prefixes like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Discussion Topic
It doesn't appear as if the MCP specification dictates what MCP clients should do with cookies, and what properties of cookies MCP servers can rely on. That is, should the client support a cookie jar, and if so, should it be ephemeral (session lifetime), or persistent, and if it's persistent, what scope should the storage have?
I'm asking because I operate a security service. We make extensive use of cookies on the web platform. We are building a similar security service that deploys as an MCP proxy, and it would be useful for us to have some type of "agent-side storage". We'd love to be able to rely on cookies for that purpose. This would allow us to remember key facts about a particular agent (ideally bound/scoped to the account of the user owning the particular agent instance, and persistent) if it comes back in the future for additional interactions. Having this storage would mean we'd use elicitation less often (we plan on building step-up auth mechanisms based on secure OOB elicitation).
I'm curious about opinions, and potential other use cases. And anecdotally, whether or not agent-developers are supporting cookies in their MCP clients.
Beta Was this translation helpful? Give feedback.
All reactions