Azure-Samples / Azure-Samples/SQL-AI-samples

READONLY mode support is needed in dotnet MCP server as implemented in Node version

未关闭
#56 2 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
HTML
星标
331
派生
208
PR 合并指标
30 天内没有已合并 PR

描述

Could you please implement support for `READONLY` mode in dotnet version?
So that when `env` configuration is configured with `"READONLY": "true"` MCP server will not allow to execute Update/Insert/Drop tools.

```
"env": {
"CONNECTION_STRING": "Server=localdev;Database=eCommerce;Integrated Security=True;TrustServerCertificate=True;Encrypt=False",
"READONLY": "true"
}
```

dotnet version:
https://github.com/Azure-Samples/SQL-AI-samples/blob/5a4ba3f8d62aa5683a497f16e5ff4c26cc600ee0/MssqlMcp/dotnet/MssqlMcp/Program.cs#L37

Node version:
https://github.com/Azure-Samples/SQL-AI-samples/blob/5a4ba3f8d62aa5683a497f16e5ff4c26cc600ee0/MssqlMcp/Node/src/index.ts#L85

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。