Archstone

io.github.Archstone-Romania由 GitHub 帳號 Archstone-Romania 發布v0.26.0更新於 Nov 4, 2026

Compile your own business capabilities from declarative YAML and serve them as MCP tools.

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

把以宣告式 YAML 描述的業務能力編譯成 MCP 工具,並在本機以 stdio 提供,讓助理呼叫你自己的後端。

可以做什麼
  • 從現有 OpenAPI 文件或 Postgres 目錄草擬清單
  • 驗證並編譯清單,檢視模型能看到與永遠看不到的內容
  • 透過 stdio 或 HTTP 把編譯後的能力當成 MCP 工具提供
  • 產生可攜的 IR 產物,並嵌入到你自己的 agent 迴圈中
  • 用錄製的樣本回放真實後端以回報漂移,執行離線上線前檢查,並回讀執行稽核紀錄
適用情境
當你希望 AI 助理透過以 YAML 描述的工具呼叫自己的業務系統,而不是手寫整合程式碼,並且希望在協定或後端變動時重新產生工具時使用。
執行需求
透過 npx 或全域安裝 npm CLI 作為本機程序執行,需要 Node 22 以上版本。清單存放在你自己的儲存庫中。README 稱 build 與 serve 不需要網路、帳號或金鑰;HTTP 服務使用權杖參數。
安裝前請注意
能力可被宣告為寫入或不可逆,因此工具呼叫可能改動後端資料;README 稱 effect 等級由人工確認而非推斷。以 HTTP 提供服務需要權杖。示範端點及其預訂工具與本機 CLI 無關,並非必需。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Archstone,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

其他 MCP 客戶端

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

README

Archstone — connect your business to every AI

A compiler for AI capabilities. Describe what your business can do once, in business terms. Archstone compiles it into tools an AI agent can discover and call — MCP today, other protocols as they arrive. Nobody hand-writes integration code.

Open source, Apache-2.0.

[Buy Me A Coffee]

Find what you need

I want to…Go to
See it working in 60 secondsTry it
Generate a manifest from my OpenAPI specStart from an API you already have
Install the CLI and know what each command doesInstall · Commands
Understand the model (CDL → IR → tools)How it works
Call capabilities from my own agent loopEmbed it
Know what Archstone guaranteesGuarantees
Learn the languageCDL specification · glossary
Walk through it end to endOnboarding guide
Know what is free and what is soldOpen source and commercial
ContributeContributing

Try it — 60 seconds, nothing to install

A capability compiled by Archstone is running live:

https://demo.archstone.dev/mcp
  • Claude app (web, desktop or mobile): Settings → Connectors → Add custom connector → paste the URL, then ask about a trip. Works on the Free plan.

  • Claude Code:

    bash
    claude mcp add --transport http archstone-tourism https://demo.archstone.dev/mcp

    The read-only tools need no key. The demo's booking tools do; its two public keys are listed in the showcase. To send one, add the server with the header after the name and URL (--header takes every word that follows it, so placed earlier it swallows them):

    bash
    claude mcp add --transport http archstone-tourism https://demo.archstone.dev/mcp \  --header "Authorization: Bearer <key>"

The whole integration behind it is 12 lines of business YAML — no HTTP, no JSON Schema, no MCP SDK. Everything else was generated.

Want this in front of your own systems? [email protected].

Start from an API you already have

bash
archstone init openapi.yaml --out manifest --company acme --domain catalog

init drafts a manifest from an OpenAPI document, asks you what no spec can answer, and writes nothing unless the result compiles.

[archstone init reading an OpenAPI document and writing a compiling CDL manifest]

Details: onboarding → archstone init. The spec in the recording is examples/demo/stays-openapi.yaml.


Install

bash
npm install -g @archstone/cli     # or: npx @archstone/cli <command>

Node 22+. Your manifest lives in your own repository; the CLI is a stateless compiler that needs no checkout of this one (why).

Commands

CommandWhat it does
archstone init <openapi>Draft a manifest from an OpenAPI document (or, with --source postgres --dsn-env <VAR>, from a Postgres catalog)
archstone apply <dir>Validate and compile to IR; --exposure lists what a model sees and what it never sees, and which capabilities are exposed, unlisted or not exposed (retired, unbound)
archstone build <dir>Write a portable IR artifact for embedding
archstone serve <dir>Serve MCP tools over stdio; --http --token <t> for HTTP
archstone verify <dir>Replay recorded fixtures against the live backend and report drift; --json for CI
archstone doctor <dir>Offline pre-production checklist
archstone adopt <dir>Declare a field the backend started returning (interactive)
archstone audit <log>Read back the execution audit trail

apply also warns about what an irreversible capability still lacks — here, removing its declared failures adds a warning, and restoring them clears it:

[archstone apply warning that an irreversible capability declares no failures]

Each command is covered in the onboarding guide. Working from a checkout of this repository instead? Use pnpm apply, pnpm serve, … — see contributor onboarding.


How it works

capabilities.yaml   →   *.capability.yaml   →   bindings/*.binding.yaml(what the company      (each capability:        (how a capability maps offers — the index)    business shape only)     to a real backend)
        └──────── archstone apply ────────┘        └── archstone serve ──┘             parse → validate → compile → IR          emit MCP tools → agent
  • CDL (Capability Definition Language) describes what you offer — business terms only.
  • Bindings say how each capability reaches a backend (REST or SQL). The SQL connector guide walks through a Postgres one.
  • The compiler lowers both to a target-agnostic IR; emitters turn the IR into tools.

Change the protocol and you regenerate instead of rewriting. Change the backend and the CDL does not move. A worked example: examples/manifests/booking/.

Embed it in your own agent

No MCP server process needed — load a built IR with @archstone/agent:

typescript
import { fromIR } from "@archstone/agent";
const archstone = fromIR(compiledIR);const tools = archstone.tools("anthropic"); // or "openai-chat", "openai-responses", "gemini", "json-schema"const result = await archstone.execute("tourism.search", { location: "Paris" });

A mountable Streamable-HTTP MCP handler is available at @archstone/agent/mcp. Full API: packages/agent.

Guarantees

These are ratified decisions, not implementation details — each links to its reasoning.

GuaranteeDecision
A provider field your manifest does not declare never reaches a modelADR-0008
A field a model invents never reaches your systemADR-0011
build and serve never need a network call, an account or a keyADR-0005
No feature that is free today becomes paidADR-0005
Ranking in any selection Archstone performs is not for saleADR-0006
effect (read / write / irreversible) is confirmed by a person, never inferredOnboarding

All decision records: docs/adr/.


Who is running it

ArtVinci, a custom-framing business, answers customer questions through a capability compiled by Archstone — real catalog, prices computed live by their own backend. Case study.

Why a compiler, and not an MCP server

The first MCP server is an afternoon's work. The fifth — ChatGPT, Gemini and whatever ships next, each shaped slightly differently, all on top of an API that keeps changing — is the real cost. Archstone is a compiler that, in its first release, generates an MCP server, so that maintenance does not multiply with every new protocol.

Open source and commercial

Everything needed to turn a manifest into something an agent can call — language, compiler, IR, emitters, embedded SDK and CLI — is Apache-2.0 and stays that way. What we will sell is operating it for you: hosted audit retention, managed rate limits, drift monitoring and multi-tenant hosting. See ADR-0005.


Documentation

TopicWhere
Onboarding (providers, embedders, contributors)docs/ONBOARDING.md
CDL specification (normative, 1.0, frozen)docs/cdl-specification.md
Why CDL looks the way it doesRFC-0002
Machine schemacdl.schema.json
Glossarydocs/glossary.md
Identity and principalsdocs/IDENTITY.md
Architecture decisionsdocs/adr/
A Postgres database as a backend (sql connector)docs/guides/sql-connector.md
End-to-end demo with Claudeexamples/demo/README.md
Supported versionsSUPPORT.md
Reporting a vulnerabilitySECURITY.md — never a public issue
ChangesCHANGELOG.md

Repository layout

packages/  schema/           load and shape-validate manifests (cdl.schema.json)  compiler/         semantic validation, lowering to IR  emitter-support/  shared substrate for every emitter  runtime/          registry, MCP emitter and transport, verify  agent/            embedded SDK  init/             OpenAPI → manifest drafting  cli/              the archstone commandproviders/  rest/  sql/       backend adaptersexamples/           manifests and the Claude demodocs/               spec, ADRs, RFCs, onboarding

How this project uses generative AI

Archstone is written with substantial AI assistance — Anthropic's Claude, through Claude Code — for implementation, tests and documentation. The decisions are not generated: every structural choice is an ADR, argued and ratified by an accountable person before the code, and a patch nobody can explain does not merge. Commits with generated code name the model in their co-authorship trailer. What we ask of contributors: CONTRIBUTING.md.

Contributing

CONTRIBUTING.md and the contributor onboarding. Node 22+, pnpm 11+; pnpm typecheck && pnpm test green before you open a PR.

License

Copyright 2026 NousVigil LLC. Licensed under Apache-2.0; see also NOTICE.

來源:README.md,提交 55d696f

工具

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

版本歷史

6
  1. v0.26.0最新Sep 30, 2026
  2. v0.25.0Sep 25, 2026
  3. v0.24.0Sep 24, 2026
  4. v0.23.0Sep 20, 2026
  5. v0.22.1Sep 17, 2026
  6. v0.11.5Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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