Azure-Samples / Azure-Samples/SQL-AI-samples
READONLY mode support is needed in dotnet MCP server as implemented in Node version
- Lingua principale
- HTML
- Stelle
- 331
- Fork
- 208
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start in MssqlMcp/dotnet/MssqlMcp/Program.cs at line 37 and compare the existing READONLY handling in MssqlMcp/Node/src/index.ts at line 85. Trace how the Update, Insert, and Drop tools are registered or executed, then verify that setting READONLY to true prevents all three while other tools remain available.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- databases
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 35/100