Skip to content

test: verify the SQL Server MCP read tier against an Azure SQL Database free-tier database #9905

Description

@kyle-sexton

Host run: an agent on a host with an Azure CLI login runs this end to end, teardown included. Owner approved creating the database on the condition that it is torn down in the same run (2026-10-29).

Refs #5940. Slice 6 of 7. Blocked by #9878 and #9898 (slices 3 and 5).

Problem

The owner scoped the first release to a local container and Azure SQL Database. Slices 3 and 4 run against the container only.

Fix

  1. Create one Azure SQL Database free-tier database with --use-free-limit true --free-limit-exhaustion-behavior AutoPause (https://learn.microsoft.com/en-us/azure/azure-sql/database/free-tier), so it pauses at the monthly limit instead of billing. Put it and its logical server in a dedicated resource group, so teardown removes everything.
  2. Create the read-only principal the docs describe and register it by reference.
  3. Run the slice 3 integration script against it (Azure target).
  4. Post the PASS lines and the remaining free vCore seconds on feat: ship a safe, general-purpose SQL Server MCP server plugin #5940.
  5. Tear down in the same run, whether the check passed or failed: delete the resource group (database, logical server, firewall rules) and the registered connection reference. Confirm that az group exists returns false.

Done when

Activity

  1. added
    needs-human
    on Oct 25, 2026
  2. github-actions commented on Oct 25, 2026

    @github-actions
    Contributor

    Proposed work class: none

    Size: Small
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: #9878, #9898

    Understood: this is a verification task. Create an Azure SQL Database free-tier database with AutoPause, register a read-only principal by reference, run the slice 3 integration script against it, and post the PASS lines for S1/S2, S5, S6 and S7 and the remaining free vCore seconds on #5940.

    The Azure steps need a person with an Azure account, which an unattended lane run cannot do. The lane-checkable part is the script run once the Azure target is available. Slices #9878 and #9898 are still open and come first. The free tier with AutoPause does not bill, so I'm not raising a cost hold. I found no likely duplicates.

    Automated triage. A maintainer reviews it.

  3. melodic-automation-lanes commented on Oct 25, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: the issue is at status: ready.

  4. added
    needs-owner-decision
    on Oct 25, 2026
  5. removed
    needs-owner-decision
    needs-human
    on Oct 26, 2026
  6. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    Released for re-triage under the owner's 2026-10-26 rule: a person is involved only for "1. A change in original intent/vision 2. Something comes up during implementation ... that alters intent/vision or the primary design 3. If there is a HIGH/CRITICAL security issue". None applies here, so the hold label came off and intake triage runs again now.

    To hold this issue again, add needs-human (or status: needs-decision) and name which of the three applies.

  7. added
    needs-triage
    and removed
    needs-triage
    on Oct 26, 2026
  8. added
    status: ready
    on Oct 26, 2026
  9. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: blocker #9878 is not closed by a listed human or a merge; blocker #9898 is not closed by a listed human or a merge.

  10. added
    host-run
    on Oct 29, 2026
  11. added
    agent-ready
    on Nov 1, 2026
  12. github-actions commented on Nov 1, 2026

    @github-actions
    Contributor
    No description provided.
  13. added
    needs-human
    and removed
    agent-ready
    on Nov 1, 2026
  14. melodic-automation-lanes commented on Nov 1, 2026

    @melodic-automation-lanes
    Contributor

    The work-resolve-issue lane stopped partway through this issue and needs a person.

    Reason: security

    Matched security word: credential. A match holds the stop whether or not the text names a risk, so read the word in context below.

    Why, in the run's own words:

    host-only: issue #9905 is a host run. It needs an Azure CLI login to create a free-tier Azure SQL Database (AutoPause) in a dedicated resource group, create and register a read-only principal, run the slice 3 integration script against it, post the PASS lines on #5940, then delete the resource group and confirm az group exists returns false. This CI lane has no Azure credentials, cannot create or delete cloud resources, and cannot comment on #5940. None of the done-when items is a repository change. The issue also names #9878 and #9898 as blockers.

    What the run says it did not do:

    • Steps 1-5 of the issue (create the Azure SQL free-tier database, create and register the read-only principal, run the slice 3 integration script against Azure, post the PASS lines and remaining free vCore seconds on #5940, tear down and confirm az group exists is false): these need a host with an
    • Blocker status of #9878 and #9898 (slices 3 and 5) not checked; this lane has no tracker read
    • tidy, review, verify and the pre-PR prep did not run because there is no diff

    Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41339827245

    To retry, remove needs-human and add agent-ready again.

  15. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.
    Agent choice, not an owner answer.

    The security stop on 2026-11-01 is not a security finding. The run stopped because the issue is host-only, and the stop reason matched a keyword in its own explanation that the CI lane cannot reach Azure or create cloud resources. No secret leaked and no account is at risk.

    Both blockers are closed: #9878 on 2026-11-01T14:51Z and #9898 on 2026-11-01T19:03Z, each as completed. The cost question is already decided: the body's first line records the owner's approval (2026-10-29) to create the database on condition that it is torn down in the same run, and the Fix uses the free tier with AutoPause. None of the owner's three reasons is open.

    This is host work, builder Automation Lanes: an agent on a host with an Azure CLI login runs steps 1 to 5 of the Fix end to end, teardown included, and records the teardown on both #9905 and #5940. Re-adding agent-ready would send it to the work-resolve-issue lane again, which cannot run it and would stop the same way. The body's criteria stand.

  16. removed
    needs-human
    on Nov 4, 2026
  17. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    Status.
    Agent choice, not an owner answer.

    None of the done-when items is met yet: no comment on #5940 records Azure PASS lines for S1/S2, S5, S6 and S7 (its newest, 2026-11-02T18:20Z, says it still waits on #9905), and no free-tier database has been created, so AutoPause and teardown are unconfirmed.

    The Fix cannot run as written yet, on any host. Step 3 says to run the slice 3 integration script against Azure, but plugins/sql-server/integration/read-path.mjs on main has no Azure target:

    • It starts a local container and connects to localhost (read-path.mjs:153, :364-365, :382) as sa (:371).
    • It builds its fixtures with CREATE LOGIN and CREATE DATABASE [app] / [other] (read-path.mjs:205-208), and takes its fingerprints and open-transaction counts as sa (:235-245).
    • The plugin's own reference page says so: "The integration test runs against a local container only; no test in this plugin connects to Azure SQL Database" (plugins/sql-server/reference/azure-sql-database.md:89).

    So the script needs an Azure target mode first, on this issue: the logical server name and an Entra admin in place of sa, contained users in place of logins, and two pre-created free databases in place of CREATE DATABASE, because S5 needs a second database that the registration is refused. That is a code change under plugins/sql-server/ with no workflow file.

    Once that mode is on main, a host with an Azure CLI login runs these steps in one session:

    1. az group create for a dedicated resource group.
    2. az sql server create in that group.
    3. az sql db create twice, each with --edition GeneralPurpose --family Gen5 --capacity 2 --compute-model Serverless --use-free-limit true --free-limit-exhaustion-behavior AutoPause.
    4. az sql server firewall-rule create for the client IP.
    5. az sql server ad-admin create, then the contained db_datareader user (the steps in azure-sql-database.md).
    6. Run the integration script in its Azure mode, then post the PASS lines and the remaining free vCore seconds on feat: ship a safe, general-purpose SQL Server MCP server plugin #5940.
    7. az group delete, confirm az group exists returns false, and record the teardown on test: verify the SQL Server MCP read tier against an Azure SQL Database free-tier database #9905 and feat: ship a safe, general-purpose SQL Server MCP server plugin #5940.

    This check created no Azure resources.

  18. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    Claim. The Backlog HITL host-run worker takes this issue now (2026-11-04): first a PR that adds an Azure target mode to plugins/sql-server/integration/read-path.mjs, then the Azure run and teardown from this host, recorded here and on #5940. No other branch, PR or lease for #9905 was found.

  19. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    Host run. The slice 3 integration script ran against a free-tier Azure SQL Database from this host, with teardown in the same run. S1/S2, S4, S5, S6 and S7 all passed.

    What ran (Claude Code 2.1.318, Azure CLI signed in to subcr-melodic-prod, region centralus):

    1. feat(sql-server): run the integration test against Azure SQL Database #13129 adds the Azure mode the Status comment found missing: read-path.mjs --azure-server <server>.database.windows.net. In that mode the script signs in as the Entra admin through an Azure CLI token and creates contained users in place of logins. It needs one database, because the allow-list refuses the second database by itself and Azure SQL Database refuses cross-database names. Locally, npm test passed 216 tests, and the container run passed all five checks.
    2. Approval: the owner's Backlog HITL Q1 row of 2026-10-29 in docs/owner-decisions.md (architecture repo), which says "As long as you clean it up later, right? Can we safely do that quickly and then tear it down?". It approves one database, torn down in the same run.
    3. One run script, whose EXIT trap deletes the resource group, ran these steps:
      • az group create
      • az sql server create --enable-ad-only-auth --external-admin-*, so no admin secret went into argv; then az sql server ad-only-auth disable
      • az sql server firewall-rule create for this host
      • az sql db create ... --use-free-limit true --free-limit-exhaustion-behavior AutoPause
      • the integration script on PR head c2673381f2, which exited 0 at 07:18:49Z
      • az group delete --yes
      • Before any create, the Defender for SQL plan read Free and the subscription held 0 SQL databases.

    Against the done-when items:

    • PASS for S1/S2, S5, S6 and S7 against Azure SQL Database: recorded in feat: ship a safe, general-purpose SQL Server MCP server plugin #5940 (comment)
    • AutoPause, no charge: the database reported useFreeLimit: true, AutoPause, GP_S_Gen5 and Local backups.
    • Teardown: the resource group was deleted at 07:28:17Z and az group exists returned false. No matching SQL server remains, and no connection reference remains: the config and registration lived in the script's temp directory, which it removed.
    • The remaining free vCore seconds were not captured. The free_amount_remaining metric returned no data point within the 8 minutes before teardown.

    PR: #13129 (Refs: #9905), open, not merged. Once it merges, #9905 can close: every done-when item is met on #5940. The free vCore seconds will not be re-measured, because the owner approved one database run.

    Target labels: add none; remove host-run.

  20. removed
    status: ready
    on Nov 4, 2026
  21. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    Done.

    All three done-when boxes hold, checked 2026-11-04 after #13129 merged:

    • PASS for S1/S2, S5, S6 and S7 against Azure SQL Database: #5940 comment, lines 6-10.
    • AutoPause, no charge: the same comment records useFreeLimit: true and freeLimitExhaustionBehavior: AutoPause.
    • Teardown: the same comment records the resource group delete; re-checked by the coordinator with az group list (no rg-sql-read-path* group) and az sql server list (0 servers).

    Not a done-when box, recorded for the next Azure run: the free vCore seconds metric returned no data point within 8 minutes, so consumption was not read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    host-run

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions