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 摘要。