
Sapiom
io.github.sapiom由 GitHub 帳號 sapiom 發布v0.20.0更新於 Nov 7, 2026
Local Sapiom developer MCP for authoring, testing, deploying, and inspecting agents.
概覽
本機 Sapiom 開發者伺服器,讓編碼助理建立、測試、部署、執行與檢視 Sapiom 代理,並把網頁應用發布為沙箱或 App Link 網址。
- 可以做什麼
- 建立、型別檢查並在本機執行代理專案,能力呼叫以樁替代
- 連結、複製、部署、執行、檢視雲端執行並送出訊號
- 建立、檢視與取消觸發器(cron、一次性、事件、webhook),並輪替 webhook 簽章密鑰
- 寫入並驗證沙箱資源,部署臨時預覽網址或發布持久的 App Link
- 列出、調整與刪除 App Link,包含 webhook 與支出上限設定
- 產生代理地圖,呈現系統、代理、步驟與程式碼可證的連線
- 適用情境
- 適合在編碼助理中開發或維運 Sapiom 代理、Sapiom 代管網頁應用,想把撰寫、測試、部署、檢視的循環集中在一處時使用。若只需要抓取、搜尋等 Sapiom 能力工具,則不需要它。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node.js 與網路存取。聯網工具需要 Sapiom API 金鑰,透過瀏覽器登入取得並快取於憑證檔中;環境預設為 production,可用 SAPIOM_ENVIRONMENT 切換。本機撰寫工具不需 Sapiom 驗證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Sapiom,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@sapiom/mcp
The local developer MCP server for Sapiom. It runs on your machine over
stdio under the server name sapiom-dev. Today it gives a coding agent the
tools to scaffold, test, deploy, and inspect Sapiom agents, and to put a web app
behind a live sandbox URL or a durable App Link; the namespace leaves room for
other developer tooling later.
Not the capability surface. This is not the remote "Sapiom" MCP (the hosted connector with
sapiom_sandbox_*, scrape, search, … capability tools).sapiom-devexposes no direct capability tools. Its local check and Local Run path uses stubbed capabilities without Sapiom capability spend; deploys, cloud builds, production runs, signals, and schedules operate Sapiom cloud state and may be metered. See the two Sapiom MCP servers for which to use when.
Install
No global install — run it on demand with npx:
In Claude Code:
Configuration
The server targets the production environment by default. Override it with the
SAPIOM_ENVIRONMENT environment variable:
production(aliasprod) →app.sapiom.ai/api.sapiom.ai— the default.staging(aliasdev) →app.sapiom.dev/api.sapiom.dev.
Both resolve from built-in presets, so no config file is required. A custom
target can be defined in ~/.sapiom/credentials.json (the server prints the
expected shape if it encounters an unknown environment name).
The API key only travels over https://, or plain http:// to a loopback host
(localhost, *.localhost, 127.0.0.1, [::1]). A custom target on any other
http:// host is refused before the request is sent. On a trusted private
network, set SAPIOM_ALLOW_INSECURE_HTTP=1 in the server's env.
Authentication
The first networked call (link, deploy, run, inspect, signal) needs a
Sapiom API key. Run sapiom_authenticate and the server opens a browser
login flow, then caches the resulting key per environment in
~/.sapiom/credentials.json. After that, tools work without re-authenticating.
sapiom_status reports who you're authenticated as; sapiom_logout clears the
cached credentials.
The local authoring tools (scaffold, check, run_local) need no Sapiom
authentication. scaffold may query npm for current dependency versions;
check imports the definition; and run_local executes the author's ordinary
local code. Only ctx.sapiom.* calls are replaced by stubs, so direct network,
filesystem, environment, and process effects in author code remain real.
Tools
A typical loop: scaffold → write step code → run_local until green → link
→ deploy → run → inspect.
For a web app rather than an agent: sandbox_configure → sandbox_preview
while iterating (a throwaway URL that dies with the sandbox) → app_publish
once the link needs to be permanent or shared. app_publish reads the same
sapiom.json sandbox resource, uploads the source as a stored text-only bundle
(≤ 10 MiB), and returns a durable https://apps.sapiom.ai/{org}/{slug} URL that
wakes the app on demand — republishing the same slug updates it in place. See
the sapiom-sandbox-preview skill for the routing rules.
Once a link exists, app_list, app_settings and app_delete manage it without
leaving the terminal. Webhooks are off by default: app_settings { slug, webhooksEnabled: true } turns them on, after which third parties POST to
https://apps.sapiom.ai/{org}/{slug}/hook/<path> (the /hook prefix is
stripped and the body forwarded byte-exact, so Slack/Stripe/GitHub signature
checks run inside the app). These settings need the org.write permission —
publish authority alone is not enough — and a refusal comes back as a message
naming the permission and the fields, for the agent to relay rather than retry.
The agent map
sapiom_dev_map returns the map Agent Studio draws, computed from code on every
call; nothing about agents or edges is stored. Pass a project folder (root, default the working
directory) and optionally a git ref (HEAD, a branch, a commit) to draw that
version:
The scan finds every folder with a sapiom.json or a defineAgent and reads:
- Edges, agent to agent, each with the file and line that proves it:
agents.run/agents.launch(launch),schedules.createon another agent (timer), andevents.emitmatched to the agents an event type triggers (event). A target counts when the code makes it knowable: a literal, a const (local or imported), every value of a const map indexed at run time, a zod.default()on the input field the call reads, or aprocess.envkey set insapiom.json. Anything else is listed underunresolved. - Systems: connected components over those edges. Agents that only share a
vault key, database or connector are not joined; the shared resource shows in
each agent's
sharedlist. Name a system in a committed.sapiom/map.json:{ "systems": [{ "agent": "intake", "name": "Support desk" }] }. - Steps from
agents check(needs the agent's dependencies installed). - Triggers and deploy state from the signed-in account, plus a
fleet.json's declared triggers. Signed out,platformsays so and the map still draws. changedSinceRef: the agent's folder differs fromref(fromHEADwhen drawing the working copy).
To map agents you describe yourself, without scanning, pass agents:
Each agent takes slug and optionally path, description, deployed,
steps ({ entry, steps: [{ id }], transitions: [{ from, to, kind }] }),
calls ({ to, kind: "launch" | "signal" | "timer", evidence? }), emits,
triggers and resources. The same systems rule applies.
Labels. Signed in, the tool asks Jev (jev-1.13.0, one batched
decisions.evaluate call) for each described agent's role (intake, worker,
orchestrator, reporter, monitor or utility) and for the label of each launch or
event edge (hands work to, feeds data to or monitors). A label appears only when
its probability p is at least 0.8. Answers are cached in
<root>/.sapiom/cache/map-labels.json (ignored by git from inside the folder;
in memory for a described map), keyed by a hash of the question's facts, so an
unchanged agent is never re-asked and its label never flips. In a scanned
project, when an agent changes, the label it showed stays unless the new answer
differs and clears 0.8.
Signed out, with platform: false, or when Jev fails or takes over 5 s, the map
comes back with labels: "unavailable" and is otherwise the same.
How capabilities fit in
Agents authored here call Sapiom capabilities — sandboxes, repositories,
coding agents, search, storage, content generation — through
@sapiom/tools (ctx.sapiom.*). run_local resolves those calls
from stubs; deploy and production run cross into authenticated cloud operations
and can be metered. This MCP never grows a per-capability tool of its own —
capabilities live in
@sapiom/tools and the remote sapiom MCP. See
the positioning doc for the full policy.
Sending feedback
sapiom_send_feedback relays a user's product feedback (a bug, a rough edge, a
feature request) to the Sapiom team. The agent sends only what the user said;
the server attaches package version, platform, arch, node version, environment
and a timestamp itself, so the model never has to read those off the machine.
A host embedding this server can advertise its own version with
SAPIOM_HARNESS_VERSION — it rides along as clientMeta.harnessVersion,
which is what makes "which build is this user on" answerable during triage. The
field is omitted entirely when the variable is unset, never filled with a
placeholder. @sapiom/harness sets it automatically.
Usage analytics
The server emits anonymous usage analytics (one tool.call event per tool
invocation: tool name, arguments, duration, ok/error class) via
@sapiom/analytics-core to the hosted Sapiom collector
by default. Opt out at any time with SAPIOM_TELEMETRY_DISABLED=1 or
DO_NOT_TRACK=1 — either makes the emitter a complete no-op (nothing is sent,
nothing is written to disk). Local-only tools (sapiom_dev_agents_scaffold,
sapiom_dev_agents_check, sapiom_dev_agents_run_local) report only each
argument's name and size, never its value. SAPIOM_ANALYTICS_ENDPOINT overrides the
destination. Telemetry is a synchronous in-memory enqueue that never throws,
never blocks a tool call, and can never change a tool result.
License
MIT
來源:packages/mcp/README.md,提交 bc010c4
工具
0版本歷史
3- v0.20.0最新Oct 9, 2026
- v0.19.2Oct 6, 2026
- v0.16.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分