MCP server: a safe database tool for any MCP client

オープン
#31 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python, sqlite

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

area:integrations area:security size:l type:feature
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 extra sqlguardllm[mcp]
  • Tools list_tables, describe_table, explain_query and query; query runs the SQL returned by Guard.enforce() in a read-only transaction with a timeout and returns at most max_rows rows 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.py
  • src/sqlguardllm/cli.py
  • tests/test_mcp.py
  • pyproject.toml
Size

L (3-5 days)

Notes
主要言語
Python
スター
0
フォーク
0
平均マージ
1分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jmmana/sqlguardllm のほかの issue

jmmana/sqlguardllm の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。