MCP server: a safe database tool for any MCP client
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 22/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 1 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de jmmana/sqlguardllm
-
area:security good first issue size:s type:feature
Dificultad 2/5 Medio día Aptitud para principiantes 68/100
jmmana/sqlguardllm#16 ·
-
area:integrations size:s type:feature
Dificultad 4/5 Medio día Aptitud para principiantes 25/100
jmmana/sqlguardllm#38 ·
-
area:security size:m type:infra
Dificultad 4/5 1-2 días Aptitud para principiantes 30/100
jmmana/sqlguardllm#37 ·
-
Official .NET client on NuGetAbiertoarea:integrations help wanted size:m type:feature
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
jmmana/sqlguardllm#36 ·
-
area:integrations help wanted size:m type:feature
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
jmmana/sqlguardllm#35 ·
Todos los issues de jmmana/sqlguardllm
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
bug (unverified)
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
scikit-hep/awkward#4581 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ci-cd priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
LearningCircuit/local-deep-research#9163 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Specifically suppress IsEnoughWorkspace, instead of all MIopen warnings in denoiser/config.pyAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
supersonic-lumina/ENM156#50 ·
Los mantenedores suelen responder en 2 días