Repository navigation
MCP server: should storing consumer offsets need only read permission? #4589
Replies: 2 comments
|
yes, that was on purpose. #4151 moved every tool that writes server (broker) state off but i think youre right, it looks wrong. the server only asks for poll permission on offsets, and the mcp server always uses its own consumer ( go ahead with the PR and put store, delete and auto-commit / until then, |
Uh oh!
There was an error while loading. Please reload this page.
A read-only MCP server can’t keep an agent’s place on a stream.
In the MCP server, storing a consumer offset needs update and deleting one needs delete. Polling with next or auto_commit=true also needs update, because it stores the offset.
The broker treats these as part of reading. A read-only Iggy user can store and delete its own offsets.
So to let an agent resume where it left off, you have to give it update. That also lets it change streams, topics, users and permissions.
@hubcio, you added these checks in #4151. Was the stricter rule intended? If not, I can raise a PR to move the offset operations to read.
All reactions