Read-only tools annotations & mode #911
Replies: 8 comments
|
We could certainly add read-only flag. But this is a local MCP Server and users would just be able to bypass it anyway. We don't have any tools that would cause destruction of data. Some updates and adds. What specifically is concerning? |
|
Thanks for the contribution Konstantin Tyukalov (@localconst) For context, by default, our implementation is intentionally conservative, avoiding destructive operations by design—unlike Azure MCP mentioned, which does support actions such as deleting resources, e.g. an entire key vault. This was by design, in the line of Dan Hellem (@danhellem) comment, given the associated flag can be toggled, intentionally or not, with potentially harmful consequences. Historically, we began with read-only and additive operations, later moving to additive updates. Currently, we do have though non-additive updates, and we seem gradually expanding in that direction. Given this trajectory, I support introducing a flag to restrict non-additive updates. I’m also open to reviewing the contribution or implementing it ourselves if no code is expected from the author. |
|
Marcelo Novaes (@Novaes) Dan Hellem (@danhellem) Thank you so much for your responses! I have few reasons why I would like to have such a read-only mode:
I understand that most probably you are not considered/ing this server as some toolset for autonomous agents, but I believe such use cases will become more and more popular in the future. Please let me know if you have any thoughts about it, and yes I would be very glad to contribute.
|
|
Hey, i am also keen to see a read-only flag. My worry is around the destructive nature of updates to descriptions of product backlog items and pull requests. We spend a lot of time making sure every task has detailed acceptance criteria and users stories etc. The MCP has the ability to change descriptions, in theory it could clear the description of any of these things, erasing all that work. |
|
We made a decision not to move forward with this suggestion. Closing ticket. |
|
Moving to Discussion to help track and get feedback from others |
|
Does this have support for Microsoft Agent Framework's MCP tools? |
|
We have readonly mode for both remote and local MCP Servers. Closing this discussion. |
Uh oh!
There was an error while loading. Please reload this page.
Azure MCP server supports the --read-only flag allowing to expose only safe tools.
Are there any plans to add something similar to this server?
Also, it would be great if tools had read-only hint annotation.
Annotations will allow to provide more flexibility on tools choice on client side, and read-only flag would be just general simplification on top of it.
All reactions