MCP server: a safe database tool for any MCP client
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
Direzione di ricerca
Start in src/sqlguardllm/cli.py to see how the new mcp subcommand hooks in, then read the Guard.enforce() API that the query tool must call. Build the stdio server in src/sqlguardllm/mcp_server.py with the four tools, and add an in-process SQLite test in tests/test_mcp.py. Done means the tests pass with violations returned as tool errors and rows capped at max_rows. Blocked on #12, #27 and #28.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Goal
Give Claude Desktop, Cursor, VS Code and agents a database tool that can't write, can't see hidden data and can't escape row filters (docs/DESIGN.md#mcp-server).
Acceptance criteria
-
sqlguardllm mcp --policy FILE --db URL [--context JSON] [--role NAME]starts an MCP server over stdio, in the optional extrasqlguardllm[mcp] - Tools
list_tables,describe_table,explain_queryandquery;queryruns the SQL returned byGuard.enforce()in a read-only transaction with a timeout and returns at mostmax_rowsrows as JSON - Violations come back as tool errors with their messages so the model can repair its query
- End-to-end test with an in-process MCP client against SQLite
Relevant files
src/sqlguardllm/mcp_server.pysrc/sqlguardllm/cli.pytests/test_mcp.pypyproject.toml
Size
L (3-5 days)
Notes
- Depends on: #12, #27, #28
- Milestone: v0.4 · MCP server
- Design: docs/DESIGN.md · threat model · attack gallery
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 0
- Merge medio
- 1m
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di jmmana/sqlguardllm
-
area:security good first issue size:s type:feature
Difficoltà 2/5 Mezza giornata Idoneità per principianti 68/100
jmmana/sqlguardllm#16 ·
-
area:integrations size:s type:feature
Difficoltà 4/5 Mezza giornata Idoneità per principianti 25/100
jmmana/sqlguardllm#38 ·
-
area:security size:m type:infra
Difficoltà 4/5 1-2 giorni Idoneità per principianti 30/100
jmmana/sqlguardllm#37 ·
-
area:integrations help wanted size:m type:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
jmmana/sqlguardllm#36 ·
-
area:integrations help wanted size:m type:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
jmmana/sqlguardllm#35 ·
Tutte le issue di jmmana/sqlguardllm
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
bug (unverified)
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
scikit-hep/awkward#4581 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
ci-cd priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
LearningCircuit/local-deep-research#9163 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Specifically suppress IsEnoughWorkspace, instead of all MIopen warnings in denoiser/config.pyAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
supersonic-lumina/ENM156#50 ·
I maintainer di solito rispondono entro 2 giorni