You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: prove the SQL Server MCP read path against a local SQL Server container #9878
host-runNeeds an unattended run on a host; the host runner takes it, not a person or the issue lane.status: confirmedA maintainer confirmed the item is real and in scope; ready to be worked.
Refs #5940. Slice 3 of 7. Blocked by #9849 (slice 2, the server). Runs in parallel with slice 4.
Problem
#5940's acceptance list requires tests that prove the safety requirements against a real SQL Server. Unit tests in slice 2 cannot.
Fix
Add an integration test script in the plugin that starts a local SQL Server Linux container (mcr.microsoft.com/mssql/server, Developer edition, no cost), creates a read-only principal and a second database, starts the server, and proves:
S1/S2: every write, DDL and session-state attempt through the read tool is refused, on every call;
S7: tools/list is identical before and after every tool call in the run;
S5: a registration confined to one database cannot reach the second;
S6: no secret appears in the plugin or registration config (scan the files the test wrote).
The script skips with a clear message and exit 0 when Docker is absent, and fails when Docker is present and a check fails.
Done when
On a Linux host with Docker, the integration script named in the plugin README exits 0 and prints one PASS line each for S1/S2, S5, S6 and S7
Without Docker, it exits 0 and prints a single SKIP: docker not available line
Proposed work class: work-class: scoped
Basis: automated intake triage; the lanes App applied this class.
Size: Small
Complexity: Low
Uncertainty: Known
Flags: none
Blocked by: none
Decision recorded.#11703 added the integration script, but its PR body says "The script was never executed", because the lane had no Docker and could not run node. The two run checks remain: both need node, and the first also needs Docker, so they are host work.
On a Linux host with Docker, the integration script named in the plugin README exits 0 and prints one PASS line each for S1/S2, S5, S6 and S7
Without Docker, it exits 0 and prints a single SKIP: docker not available line
This decision settles the open questions. The script exists, and the two remaining run checks need a host with node, plus Docker for the first. Those are host-run work, so I've asked nothing further. Neither #9849 nor #5940 is in the open-issue list, so I've listed no blocker.
Released for re-triage under the owner's 2026-10-24 rule: an issue stops for a person only for an intent or vision question, a security call, a host or attended run, or spend outside prepaid credit. The hold label came off and intake triage runs again now; it re-applies a hold, with a numbered question, when one of those applies.
To hold this issue again, add needs-human (or status: needs-decision) and say why in a comment.
Decision recorded.#11703 added the integration script, but its PR body says "The script was never executed", because the lane had no Docker and could not run node. The two run checks remain: both need node, and the first also needs Docker, so they are host work.
On a Linux host with Docker, the integration script named in the plugin README exits 0 and prints one PASS line each for S1/S2, S5, S6 and S7
Without Docker, it exits 0 and prints a single SKIP: docker not available line
Claimed by host-run Lane 5 (melo-lap-001 WSL, Docker 29.9.2, node v24.21.0), 2026-11-01T14:49Z, on the hub's assignment. Running plugins/sql-server/integration/read-path.mjs at main bbdfcce with Docker, then without it, for the two remaining checks.
Host run, Lane 5 (melo-lap-001 WSL, Docker 29.9.2, node v24.21.0), main bbdfcce. Both remaining checks from the decision record are met.
With Docker:npm ci --prefix plugins/sql-server then node plugins/sql-server/integration/read-path.mjs. It exited 0 in 69 s (image pull included) and printed one PASS line each:
PASS: S1/S2 27 write, DDL and session-state attempts through query were each refused on both rounds (52 by the reject list, 2 by a permission refusal). Each of 18 writes sent past the reject list met a permission refusal. Data and schema are unchanged, every call ran with READ COMMITTED, XACT_ABORT ON and LOCK_TIMEOUT 4321, and no plugin session held a transaction between calls.
PASS: S5 the registration confined to app was refused the second database by the allow-list on every tool, and by the read-only login on three-part names.
PASS: S6 no password appears in the 39 plugin, config and registration files or in the server's output.
PASS: S7tools/list returned the same tools (query, list_objects, describe_object) before and after each of 115 tool calls, with listChanged false.
Without Docker: both cases printed the single line SKIP: docker not available and exited 0:
daemon unreachable (DOCKER_HOST pointed at a missing socket)
no docker binary on PATH
The third done-when item, ci-status green on the PR head, was met when #11703 merged. Closing.
host-runNeeds an unattended run on a host; the host runner takes it, not a person or the issue lane.status: confirmedA maintainer confirmed the item is real and in scope; ready to be worked.
Activity
github-actions commentedon Oct 24, 2026
Proposed work class: work-class: scoped
Basis: automated intake triage; the lanes App applied this class.
Size: Small
Complexity: Low
Uncertainty: Known
Flags: none
Blocked by: none
Source: #9878 (comment)
This decision settles the open questions. The script exists, and the two remaining run checks need a host with node, plus Docker for the first. Those are host-run work, so I've asked nothing further. Neither #9849 nor #5940 is in the open-issue list, so I've listed no blocker.
Automated triage, applied by the lanes App.
melodic-automation-lanes commentedon Oct 24, 2026
The latest triage verdict holds nothing: admission moved the issue to
status: confirmed; its comment says why.kyle-sexton commentedon Oct 25, 2026
Released for re-triage under the owner's 2026-10-24 rule: an issue stops for a person only for an intent or vision question, a security call, a host or attended run, or spend outside prepaid credit. The hold label came off and intake triage runs again now; it re-applies a hold, with a numbered question, when one of those applies.
To hold this issue again, add
needs-human(orstatus: needs-decision) and say why in a comment.21 remaining items
kyle-sexton commentedon Nov 1, 2026
Decision recorded. #11703 added the integration script, but its PR body says "The script was never executed", because the lane had no Docker and could not run node. The two run checks remain: both need node, and the first also needs Docker, so they are host work.
SKIP: docker not availablelinekyle-sexton commentedon Nov 1, 2026
kyle-sexton commentedon Nov 1, 2026
Claimed by host-run Lane 5 (melo-lap-001 WSL, Docker 29.9.2, node v24.21.0), 2026-11-01T14:49Z, on the hub's assignment. Running
plugins/sql-server/integration/read-path.mjsat mainbbdfccewith Docker, then without it, for the two remaining checks.kyle-sexton commentedon Nov 1, 2026
Host run, Lane 5 (melo-lap-001 WSL, Docker 29.9.2, node v24.21.0), main
bbdfcce. Both remaining checks from the decision record are met.With Docker:
npm ci --prefix plugins/sql-serverthennode plugins/sql-server/integration/read-path.mjs. It exited 0 in 69 s (image pull included) and printed one PASS line each:PASS: S1/S227 write, DDL and session-state attempts throughquerywere each refused on both rounds (52 by the reject list, 2 by a permission refusal). Each of 18 writes sent past the reject list met a permission refusal. Data and schema are unchanged, every call ran with READ COMMITTED, XACT_ABORT ON and LOCK_TIMEOUT 4321, and no plugin session held a transaction between calls.PASS: S5the registration confined toappwas refused the second database by the allow-list on every tool, and by the read-only login on three-part names.PASS: S6no password appears in the 39 plugin, config and registration files or in the server's output.PASS: S7tools/listreturned the same tools (query,list_objects,describe_object) before and after each of 115 tool calls, withlistChangedfalse.Without Docker: both cases printed the single line
SKIP: docker not availableand exited 0:DOCKER_HOSTpointed at a missing socket)dockerbinary onPATHThe third done-when item,
ci-statusgreen on the PR head, was met when #11703 merged. Closing.