Read-only tools annotations & mode #911
Replies: 7 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? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the contribution @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 @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. |
Beta Was this translation helpful? Give feedback.
-
|
@Novaes @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.
|
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
We made a decision not to move forward with this suggestion. Closing ticket. |
Beta Was this translation helpful? Give feedback.
-
|
Moving to Discussion to help track and get feedback from others |
Beta Was this translation helpful? Give feedback.
-
|
Does this have support for Microsoft Agent Framework's MCP tools? |
Beta Was this translation helpful? Give feedback.
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.
Beta Was this translation helpful? Give feedback.
All reactions