SQAI — deterministic, read-only structured data

io.github.thyn-ai由 GitHub 帳號 thyn-ai 發布v0.1.20更新於 Oct 27, 2026

SQAI MCP server — four governed, deterministic, read-only data tools. Free login to execute.

發布方自己的服務:Deterministic

已驗證STDIO僅桌面資料庫資料與分析

概覽

AI 產生的概覽

本機 stdio MCP 伺服器,為助理提供受治理、確定性、唯讀的結構化資料查詢與運算工具,可讀取 CSV 等資料來源。

可以做什麼
  • 探索資料來源、欄位名稱、型別、允許的操作以及運算簽章
  • 執行一次確定性的唯讀查詢或運算,被截斷的結果可透過 result_id 取回
  • 試跑查詢以檢視解析後的執行計畫、計畫雜湊與驗證結果,或檢查運算簽章並預覽雜湊
適用情境
適合希望助理在不寫原生 SQL、也沒有任何寫入路徑的前提下,對 CSV 等結構化資料回答問題,並需要策略校驗、可重放且帶溯源資訊的結果時使用。
執行需求
透過 npx 以 stdio 方式在本機執行(需要 Node.js)。資料來源透過 SQAI_SOURCES 環境變數以 JSON 陣列提供,元素可為路徑、URL 或內嵌列資料。執行工具需要免費的社群登入(sqai login 裝置註冊)或 SQAI_API_KEY 環境變數;僅檢視工具清單不需憑證。選用的 SQAI_DEPLOYMENT_URL 用於選擇私有部署。
安裝前請注意
每次工具呼叫(包括讀取本機 CSV)都受授權檢查限制,未登入或未提供 SQAI_API_KEY 時會回傳 login_required 錯誤。授權流程只傳遞簽章權杖,不傳輸資料;運算層在首次使用時會自動佈建簽章的託管執行環境。資料來源可填 URL,這會向對應位址發出請求。工具宣告為唯讀且非破壞性。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SQAI — deterministic, read-only structured data,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

SQAI — Structured Query AI

SQAI is the deterministic, read-only structured-data tool for AI agents, with governed execution and replayable provenance.

Apache-2.0 · TypeScript + Python · built on Algenta as the underlying substrate · a Thyn product

The model proposes meaning. SQAI controls execution: typed intent in, policy-checked deterministic execution, replayable results with full provenance out. No raw SQL, no eval, no write path.

Architecture

LayerPackageWhat it is
AI SDK tools@thyn-ai/sqai-ai-sdk (npm)Three Vercel AI SDK 7 tools — listSources, queryData, explainQuery
Product SDK@thyn-ai/sqai (npm)SQAI query plane + full computation plane
Product SDKsqai (PyPI)Same SQAI surface, 1:1 vocabulary
CLI@thyn-ai/sqai-cli (npm, bin sqai)sqai doctor --parity, sqai runtime install/verify/status/stop
Capability contractEmbedded SQAI contractThe generated, hash-pinned inventory of every capability SQAI exposes
Execution substrateAlgenta (exact-pinned)Underlying deterministic execution substrate and managed signed runtime bundle

Quickstart (AI SDK)

ts
import { generateText } from "ai";import { createSQAI } from "@thyn-ai/sqai-ai-sdk";
const sqai = createSQAI({ sources: [{ data: "./data/sales.csv", name: "sales" }] });
const { text } = await generateText({  model: "openai/gpt-5-mini",  tools: sqai.tools(),  prompt: "Which region had the highest total revenue?",});

No server. No daemon for the query plane. The computation plane provisions a signed managed runtime transparently on first use.

MCP server

The same four governed tools are available to any MCP host (Claude Desktop, Cursor, …) as a stdio server — descriptions, Zod schemas, and execute functions are read straight off the AI-SDK tool objects, never forked:

bash
npx @thyn-ai/sqai-mcp
json
{  "mcpServers": {    "sqai": {      "command": "npx",      "args": ["-y", "@thyn-ai/sqai-mcp"],      "env": {        "SQAI_SOURCES": "[{\"data\": \"./data/sales.csv\", \"name\": \"sales\"}]"      }    }  }}

Introspection (initialize / tools/list) needs no credentials — zero environment is a valid configuration. Executing any of the four tools requires a free community login (sqai login once / device registration, or SQAI_API_KEY) — fully offline thereafter; without it every tools/call returns a structured login_required error. SQAI_DEPLOYMENT_URL keeps its usual semantics from @thyn-ai/sqai.

ToolWhat it does
listSourcesDiscovery: sources with exact field names, types, and allowed operations; computation-catalog search; per-module signatures.
queryDataOne deterministic, read-only query or computation; truncated results stay retrievable via result_id.
explainQueryDry-run: resolved plan, plan_hash, validation — or a computation-signature check with a preview invocation_hash.

All three are annotated readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false. All three execute under the one uniform license gate: free on 1 machine with a one-time device registration (sqai login) — licensing moves a signed token, never your data; without it, every tool call — local CSV reads included — returns a structured login_required error by design.

What works today

  • Query plane (connect / resolve / query / verify / ask) — in-process, both languages
  • Full SQAI computation plane behind capability-contract validation
  • Policy allow-lists (sources, fields, functions) the model can never override
  • Cross-language conformance: identical values, plan_hash, intent_signature
  • Model-context truncation with opaque result handles

Repository layout

contracts/        generated capability contract + tested version pairpackages/sdk/     @thyn-ai/sqai (TypeScript product SDK)packages/ai-sdk/  @thyn-ai/sqai-ai-sdk (Vercel AI SDK tools)packages/cli/     sqai CLI (doctor, runtime verbs)packages/mcp/     @thyn-ai/sqai-mcp (MCP stdio server)packages/python-sdk/  sqai (PyPI)examples/         runnable examples (AI SDK registry example)scripts/          contract sync + parity gatedocs/             GitBook (docs.sqai.com)

Key documents

DocPurpose
docs/quickstart-ts.mdTypeScript quickstart
docs/quickstart-python.mdPython quickstart
docs/ai-sdk-tools.mdTool schemas and truncation contract
docs/determinism.mdHashes, envelopes, "deterministic within the declared execution scope"
docs/licensing.mdFree developer tier, entitlements, runtime bundle trust
SECURITY.mdSecurity policy

來源:README.md,提交 3ba3811

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

3
  1. v0.1.20最新Sep 25, 2026
  2. v0.1.18Sep 23, 2026
  3. v0.1.16Sep 23, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Deterministic 整合