timesfm
TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
Safety net for SQL Server stored procedures: capture their behavior and verify changes.
作者による原文
この種の作業を AI に教える Skill。これと一緒に使えます
TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…
scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place
一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり
| 人気 | 4/80 | GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます |
|---|---|---|
| 新しさ | 12/12 | 30 日以内のリリースかコード更新で満点 |
| 応答中 | 0/8 | 前回の確認でクラウドのエンドポイントが応答 |
| 利用スコア | 16/100 |
品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)
使っているAIアプリを選んで、設定をコピーしてください。
ひとことで AI にインストールしてもらう
sprocguard をインストールして。https://mcp.popnx.com/i/jheysonjhordyhuarauyariquelme-sprocguard.md に従い、コマンドを見せて、私が OK するまで実行しないで。パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る
チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月15日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
sprocguard のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude に MCP server sprocguard を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "sprocguard": { "command": "uvx", "args": [ "sprocguard", "serve" ], "env": { "SPROCGUARD_ODBC": "your-value", "SPROCGUARD_PASSWORD": "your-value" } } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) SPROCGUARD_ODBC, SPROCGUARD_PASSWORD は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、sprocguard のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
uv --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version
一度入れれば、uv を使うすべてのツールで使えます
SettingsDeveloperEdit Config
{
"mcpServers": {
"sprocguard": {
"command": "uvx",
"args": [
"sprocguard",
"serve"
],
"env": {
"SPROCGUARD_ODBC": "your-value",
"SPROCGUARD_PASSWORD": "your-value"
}
}
}
}キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
sprocguard を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が sprocguard を使っていると言うか、回答に sprocguard のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
SPROCGUARD_CONFIG sprocguard.toml のパス(デフォルトは作業ディレクトリの ./sprocguard.toml) 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ sprocguard につなげません
sprocguard はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
A · sprocguard につなげるアプリを使う
B · データベース・データセット の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
Claude Code につなげますが、先に準備が必要です
sprocguard のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)
このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude Code に MCP server sprocguard を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user sprocguard --env SPROCGUARD_ODBC=your-value --env SPROCGUARD_PASSWORD=your-value -- uvx sprocguard serve 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) SPROCGUARD_ODBC, SPROCGUARD_PASSWORD は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、sprocguard のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
uv --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version
一度入れれば、uv を使うすべてのツールで使えます
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
claude mcp add --scope user sprocguard --env SPROCGUARD_ODBC=your-value --env SPROCGUARD_PASSWORD=your-value -- uvx sprocguard serveEnter の前に「your-value」を自分のキーに書き換えてください
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
sprocguard が一覧にあり、接続済みと表示されれば OK です
sprocguard を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が sprocguard を使っていると言うか、回答に sprocguard のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
SPROCGUARD_CONFIG sprocguard.toml のパス(デフォルトは作業ディレクトリの ./sprocguard.toml) 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
sprocguard のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)
このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Cursor に MCP server sprocguard を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "sprocguard": { "command": "uvx", "args": [ "sprocguard", "serve" ], "env": { "SPROCGUARD_ODBC": "your-value", "SPROCGUARD_PASSWORD": "your-value" } } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) SPROCGUARD_ODBC, SPROCGUARD_PASSWORD は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、sprocguard のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
uv --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version
一度入れれば、uv を使うすべてのツールで使えます
sprocguard の設定で SPROCGUARD_ODBC, SPROCGUARD_PASSWORD が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
sprocguard を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が sprocguard を使っていると言うか、回答に sprocguard のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
SPROCGUARD_CONFIG sprocguard.toml のパス(デフォルトは作業ディレクトリの ./sprocguard.toml) 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
sprocguard のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Python (uv) を入れてください(1 回だけ)
このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの VS Code に MCP server sprocguard を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "sprocguard": { "type": "stdio", "command": "uvx", "args": [ "sprocguard", "serve" ], "env": { "SPROCGUARD_ODBC": "your-value", "SPROCGUARD_PASSWORD": "your-value" } } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) SPROCGUARD_ODBC, SPROCGUARD_PASSWORD は "your-value" のままにして、本当の値は私がファイルかアプリの入力欄に自分で貼るよう伝える。チャットにキーを書かせない。5) 了承した内容を実行し、sprocguard のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
uv --versionMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version
一度入れれば、uv を使うすべてのツールで使えます
sprocguard の設定で SPROCGUARD_ODBC, SPROCGUARD_PASSWORD が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
sprocguard を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が sprocguard を使っていると言うか、回答に sprocguard のツール名が出れば接続成功です
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
SPROCGUARD_CONFIG sprocguard.toml のパス(デフォルトは作業ディレクトリの ./sprocguard.toml) 説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Claude Code
claude mcp add --scope user sprocguard --env SPROCGUARD_ODBC=your-value --env SPROCGUARD_PASSWORD=your-value -- uvx sprocguard serveClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"sprocguard": {
"command": "uvx",
"args": [
"sprocguard",
"serve"
],
"env": {
"SPROCGUARD_ODBC": "your-value",
"SPROCGUARD_PASSWORD": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"sprocguard": {
"command": "uvx",
"args": [
"sprocguard",
"serve"
],
"env": {
"SPROCGUARD_ODBC": "your-value",
"SPROCGUARD_PASSWORD": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"sprocguard": {
"type": "stdio",
"command": "uvx",
"args": [
"sprocguard",
"serve"
],
"env": {
"SPROCGUARD_ODBC": "your-value",
"SPROCGUARD_PASSWORD": "your-value"
}
}
}
}SPROCGUARD_CONFIG envSPROCGUARD_ODBC 秘密 必須 envSPROCGUARD_PASSWORD 秘密 必須 env説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
pypi: sprocguardこのサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月20日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント JheysonJhordyHuarauyaRiquelme で確認済みです
コードの最終更新:6 日前
MITを使用
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
OSV.dev に sprocguard@0.3.0 の登録はありません
このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月15日
作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。
[](https://mcp.popnx.com/en/servers/jheysonjhordyhuarauyariquelme-sprocguard)質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
まだレビューはありません
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:SPROCGUARD_ODBC, SPROCGUARD_PASSWORD
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は6 日前、最新バージョン(0.3.0)がレジストリに届いたのは6 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。
同じカテゴリには:Supabase, Neon, DBCode, Keboola MCP, WaveHouse Cloud
同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.
Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...
Browse, query, and administer your managed WaveHouse + ClickHouse projects (schema, pipes, policy).
| これ sprocguard | Supabase | Neon | DBCode | Keboola MCP | WaveHouse Cloud | |
|---|---|---|---|---|---|---|
| 動く場所 | パソコンにインストールが必要 | クラウドでもパソコンにインストールでも使える | クラウドで動き、インストール不要 | パソコンにインストールが必要 | クラウドでもパソコンにインストールでも使える | クラウドで動き、インストール不要 |
| キーが必要 | はい | はい | いいえ | いいえ | いいえ | いいえ |
| Claude で + から追加 | いいえ | はい | はい | いいえ | いいえ | いいえ |
| 基本チェック | 3/3 | 5/5 | 5/5 | 2/3 | 5/5 | 4/4 |
| ライセンス | MIT | Apache-2.0 | MIT | NOASSERTION | MIT | Apache-2.0 |
| 料金 | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし |
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
A safety net for SQL Server stored procedures. Capture what a procedure does *today*, let a human or an AI agent change it, and get a clear report of every behavior that changed — before it reaches production.
$ sprocguard verify dbo.usp_PlaceOrder
FAIL dbo.usp_PlaceOrder: 3/5 case(s) behave exactly as in the baseline. (the procedure definition changed since the baseline was captured) ok regular customer buys 2 coffees XX VIP customer gets 10% off
| Where | How | For |
|---|---|---|
| Terminal | pip install sprocguard (CLI) | Checking a change on your machine |
| AI agents | MCP server and Claude Code plugin (MCP) | Letting an agent verify its own SQL edits |
| Pull requests | GitHub Action, also on the GitHub Marketplace | Blocking a merge that changes behavior |
Many companies keep their business rules inside stored procedures, usually without tests. AI coding agents are now asked to "clean up" or "optimize" them, and a refactor that looks equivalent can quietly change a rounding rule, an error path or a table it updates.
sprocguard gives you characterization tests (also called *golden master* tests) in minutes: it records what the procedure returns and what it changes in the database, then compares any new version against that record.
For every case (a set of parameter values):
Each case runs twice. Values that change by themselves (new IDENTITY values, NEWID(), and any date or time taken while the procedure was running, even at second or day precision) are detected automatically and ignored when verifying.
sprocguard executes your procedures, so safety comes first:
| Protection | How |
|---|---|
| Nothing is ever committed | Each execution runs inside a transaction that is always rolled back, with IMPLICIT_TRANSACTIONS ON and two nesting levels, so an inner ROLLBACK or a stray COMMIT in the procedure cannot leak changes. |
| Only development databases | It refuses to connect to any database not listed in allowed_databases. |
| No irreversible side effects | Procedures that send e-mail, run xp_cmdshell, start jobs, use OPENROWSET/OPENQUERY or linked servers are refused by default: a rollback cannot undo them. |
| Big tables are not dumped | Tables above max_rows_per_table are not snapshotted (reported as skipped). |
| SQL injection | Parameter values are always sent as query parameters, never concatenated. |
Captures hold locks on the tables involved for a moment: use a development database.
Requires Python 3.11+ and the Microsoft ODBC Driver 17 or 18 for SQL Server (usually already installed with SQL Server or SSMS). Check which one you have with Get-OdbcDriver | Where-Object Name -like "*SQL Server*" in PowerShell.
pip install sprocguard
The demo scripts live in the examples folder of the repository:
git clone https://github.com/JheysonJhordyHuarauyaRiquelme/sprocguard.git
cd sprocguard
sqlcmd -S localhost -E -i examples/demo.sql # creates DemoShop with two procedures
sprocguard init # writes sprocguard.toml; edit the connection sprocguard inspect dbo.usp_PlaceOrder # parameters, tables, risks sprocguard capture dbo.usp_PlaceOrder --cases examples/cases/usp_PlaceOrder.json sqlcmd -S localhost -E -i examples/regression.sql # a "harmless" refactor sprocguard verify dbo.usp_PlaceOrder # catches the rounding change (exit code 2)
sprocguard.toml (use ODBC Driver 17 for SQL Server if that is the one you have):
[connection]
odbc = "Driver={ODBC Driver 18 for SQL Server};Server=localhost;Database=DemoShop;Trusted_Connection=yes;TrustServerCertificate=yes"
[safety] allowed_databases = ["DemoShop"] max_rows_per_table = 5000 allow_external_side_effects = false
[storage] baseline_dir = ".sprocguard/baselines" # commit this folder tsqlt_dir = ".sprocguard/tsqlt"
sprocguard ships an MCP server and an Agent Skill that teaches agents the workflow: *inspect → design cases → capture → change → verify*.
Claude Code (plugin with the MCP server and the skill):
/plugin marketplace add JheysonJhordyHuarauyaRiquelme/sprocguard
/plugin install sprocguard@sprocguard
Any MCP client (VS Code, Cursor, Claude Desktop...):
{ "mcpServers": { "sprocguard": { "command": "sprocguard", "args": ["serve"] } } }
With uv you can skip the install step: use "command": "uvx", "args": ["sprocguard", "serve"]. sprocguard is also listed in the MCP Registry as io.github.JheysonJhordyHuarauyaRiquelme/sprocguard.
| Tool | What it does | Read-only |
|---|---|---|
inspect_procedure | Parameters, tables read/written, procedures and triggers involved, risks | yes |
suggest_cases | Real parameter values from related tables plus edge values | yes |
capture_baseline | Records the current behavior (refuses to overwrite unless asked) | writes a file |
verify_procedure | Re-runs the cases and lists every difference | yes |
generate_tsqlt_tests | Turns a baseline into tSQLt tests | writes a file |
list_baselines | Lists captured baselines | yes |
sprocguard init create sprocguard.toml
sprocguard inspect [--definition] describe a procedure and its risks sprocguard suggest suggest parameter values sprocguard capture --cases cases.json capture a baseline [--watch schema.table ...] [--overwrite] sprocguard capture-cases capture every cases file (usp_X.json -> dbo.usp_X) [--overwrite] [--skip-missing] sprocguard verify [ ...] verify one, several or all baselines (exit 2 if behavior changed) [--markdown-report report.md] [--only-failures] sprocguard tsqlt generate tSQLt tests (read-only procedures) sprocguard list list baselines sprocguard serve run the MCP server (stdio)
Add --json for machine-readable output.
Use sprocguard verify --only-failures to keep passing procedures to one PASS line and show only failing cases with their differences for changed procedures. JSON output and Markdown reports are unaffected.
This repository is also a GitHub Action, listed on the GitHub Marketplace. It starts a throwaway SQL Server in Docker, builds your database from the scripts in your repository and runs sprocguard verify. The pull request fails when a procedure changed behavior, and the job summary lists every difference.
It compares against one of two references:
mode: base-branch, from v0.3.0): nothing to prepare on your machine.mode: committed).The action builds the database with the scripts of the base branch, captures baselines with your cases files, rebuilds the database with the scripts of the pull request and verifies.
name: Stored procedures
on: pull_request permissions: contents: read jobs: sprocguard: runs-on: ubuntu-latest steps:
db/cases holds one file per procedure, named after it (usp_PlaceOrder.json is dbo.usp_PlaceOrder, sales.usp_Refund.json is sales.usp_Refund), in the same format as sprocguard capture --cases. Procedures that do not exist on the base branch yet are skipped. If the pull request moves or renames the scripts, set base-setup-scripts to the paths on the base branch. Your scripts must create the same test data every time, because both sides are compared on the data they build.
- uses: actions/checkout@v7
To set it up:
sqlcmd..sprocguard/baselines) and a sprocguard configuration file. The action replaces its [connection] with the throwaway server, so it does not need your real connection string; point config at a separate file such as sprocguard.ci.toml if you prefer. The [safety] rules still apply.| Input | Default | What it does |
|---|---|---|
mode | committed | committed or base-branch (see above) |
| cases | | Cases files or folders, one per