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 集成