
SandBase Harness
io.github.sandbaseai由 GitHub 帳號 sandbaseai 發布v0.3.8更新於 Oct 24, 2026
Stdio MCP bridge for SandBase Harness agents, sessions, turns, artifacts, and cancellation.
概覽
以 stdio 連接自架 SandBase Harness 執行環境的 MCP 橋接,讓助理操作 agent、工作階段、輪次、產物與取消。
- 可以做什麼
- 以 stdio 將 MCP 用戶端接入 SandBase Harness 執行環境
- 操作 agent、工作階段與輪次,包含送出訊息與取消工作
- 存取工作階段產物與可續接的事件串流,用於重播與除錯
- 透過執行環境 API 使用 agent、環境、記憶、檔案與憑證等資源
- 適用情境
- 當你已在本機或自有基礎設施中執行 SandBase Harness 執行環境,並希望由支援 MCP 的助理或外掛用戶端直接驅動其 agent 與工作階段,而非手動呼叫 HTTP API 時使用。
- 執行需求
- 需要一個可透過 MANAGED_AGENTS_URL 所指位址連線的 SandBase Harness 執行環境。橋接以本機程序方式執行,並以容器映像形式提供。當所連線的執行環境要求驗證時,需提供 MANAGED_AGENTS_API_KEY。執行環境本身需要 Node.js 22+、npm 10+ 以及模型供應商 API 金鑰;Docker 為選用。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 SandBase Harness,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
SandBase Harness
[GitHub stars] [Listed on deepseek-plugin.org] [Release] [Official MCP Registry] [Discussions] [CodeQL] [License]
AI-readable project metadata: llms.txt · installation guide
A local-first runtime for AI agents. Sessions, sandboxed tools, memory, credentials, audit trails, and a built-in Console — all running on your machine or in your own infrastructure.
[SandBase Harness architecture]
Why
Agent SDKs handle the model loop. Production agents need more: persistent
sessions, tool governance, sandbox boundaries, credential handling, memory,
auditability, and a UI for humans to inspect what happened. managed-agents
is that runtime layer — not a visual workflow builder and not another model SDK.
Features
- Claude Managed Agents-style
/v1API and local Console - SQLite metadata by default for agents, sessions, environments, credential vaults, memory stores, files, skills, and API keys — local file/skill bytes in the workspace state directory
- Resumable Server-Sent Events for session replay and debugging
- One active model provider boundary configured through Settings V2
- Sandbox backends: local process, Docker (per-session containers), Kubernetes (kubectl exec/cp), self-hosted worker queue
- MCP toolsets, permission policies, built-in tools, and skill packages
- TypeScript SDK at
managed-agents/sdk - Release gate:
npm run release:check
Quick Start
Requirements: Node.js 22+, npm 10+, and a model provider API key (OpenAI, Anthropic, MiniMax, or any OpenAI-compatible endpoint). Docker is optional and only needed for Docker-backed sandboxes.
init writes a workspace into the directory you run it from: an agent, a skills
folder, and config.yaml, whose provider reference is the ${OPENAI_API_KEY}
environment variable. start serves the API and the Console on
http://127.0.0.1:3000.
Two steps finish the setup, both on Settings > Setup at http://127.0.0.1:3000/dashboard:
- The provider. Paste your API key into the provider form and save. The page
then reports that the saved configuration is not active yet, so restart the
runtime — stop it with Ctrl+C and run the
startcommand again, or use the restart button. A saved setting only takes effect at startup. If your provider is not in the list, choose the OpenAI-compatible vendor and set its base URL. - The model. In the Agent models panel, set the model ID your provider
actually serves —
deepseek-chatfor DeepSeek, for example. An agent carries its own model ID, so thegpt-4othatinitwrites is not valid for every provider, and a wrong ID fails the turn withmodel_not_found.
Send the first message from the Console: open Sessions, create a session for the agent, and type into the composer. From a terminal it is one command:
chat sends that one message and exits once the turn settles; without
--message it keeps the session open and streams until you interrupt it.
--tool-approval allow
preauthorizes the tool calls the agent may make, which the init template
otherwise parks for approval and waits for a person to answer; see CLI.
The unscoped managed-agents name on npm is not this project. Until an
official scoped package is announced in this repository, install only from the
tagged GitHub source release shown above. Do not run npx managed-agents or
npm install managed-agents.
Try it in Codespaces
The included development container installs dependencies and builds the runtime. When the terminal is ready, start the server on the forwarded port:
Open the forwarded SandBase Harness Console port, then configure a model in Settings > Setup. Codespaces usage may be billed by GitHub; the local quick start above remains free and keeps all runtime data on your machine.
Screenshots
Use the Official SDK
The runtime answers its own /v1 API on that same port, and an official
Anthropic TypeScript SDK client drives it unchanged: point the client's
baseURL at the runtime, give it the runtime API key, and the quickstart in
examples/official-sdk runs a whole turn —
message, tool call, tool result, final reply — against it. That example is
executed on every pull request by
tests/conformance/official-sdk-quickstart.test.ts, so the compatibility it
describes is compatibility that is tested rather than claimed.
The same surface is specified in docs/api.md, and this repository's own TypeScript SDK is documented under SDK below.
CMA compatibility
Coverage of the published Claude Managed Agents contract is declared entry by
entry in src/core/capabilities/matrix.ts:
of the official SDK's route surface (110 method/path pairs as of SDK
0.131.0), 90 routes are mounted and 20 refuse by name; no route is deferred.
Partial and Unsupported entries always name their reason.
The table below is generated by npm run docs:compat, and a contract-honesty
test fails when it drifts from the matrix.
Full compatibility table (generated)
CLI
apply is the declarative form of the same API: a Markdown file whose
frontmatter is the agent definition (the body below --- becomes the system
prompt), a .yaml environment document, or a Markdown deployment manifest
(frontmatter carries name, agent, environment, schedule; the body
becomes the initial user.message). The resolved ids land in
managed-agents-lock.json beside the files, so re-running apply after an
edit updates the same resource instead of creating a duplicate — commit the
lock file with the manifests. A later file may reference an earlier one by
name, so apply coding-assistant.md environment.yaml deployment.md wires the
deployment to the rows the first two files created.
A turn whose tool needs approval parks instead of failing, and chat asks before
running it, then lets the runtime continue the same turn. --tool-approval allow
decides every such call in advance, which is what a script or a CI job uses, and
deny refuses them. With no terminal to prompt, the default ask answers nothing
and exits non-zero with the calls that are waiting named, so a script states its
policy rather than inheriting one. A custom tool is the exception: only your own
client can produce its result, and chat says so and exits non-zero. See
usage.
SDK
The /v1 API follows Claude Managed Agents resource shapes, so you can also
point the Anthropic SDK at the local runtime:
Authentication
Open by default. Authentication activates when at least one API key exists:
Clients send Authorization: Bearer <key>.
Integrations and examples
- DeepSeek Harness plugin — run this runtime as a DSH plugin over MCP
stdio: install, preflight, tool list, and troubleshooting live in
examples/deepseek-harness. A DSH project can also take a portable Skill from GitHub source —npx --yes github:sandbaseai/sandbase-skills add multi-source-searchinstalls into.dsh/skills/multi-source-search. - Agent Plugins 1.0 clients (Copilot CLI, VS Code) and the standalone
MCP bridge container — see
agent-plugin/PLUGIN.md. - Use cases — the Showcase walks through an auditable coding agent, DSH as an interactive front end, and controlled code execution across Local, Docker, Kubernetes, and self-hosted sandboxes.
- Agent configuration — the YAML agent definition,
config.yaml, and the workspace layout live in the usage guide; curl walkthroughs for every resource are in docs/api.md.
Documentation
- Machine-readable project metadata
- Agent / MCP installation guide
- Agent Plugin marketplace manifest
- Installation
- Usage Guide
- API Reference
- Skills
- DeepSeek V4
- MiniMax
- Deployment
- Architecture
- DeepSeek Harness integration
- Contributing
- Citation metadata
- Changelog
Development
release:check runs typecheck, tests, both builds, npm pack --dry-run, CLI
init smoke, and examples/basic startup smoke.
Star and share
If this runtime solves a real agent-infrastructure problem for you, star the repository so other builders can find it.
Ecosystem directories, community guides, and related projects are in docs/ecosystem.md. Community use-case discussions: memory migration between Codex, Claude Code, and DSH, sandbox and filesystem protection for third-party plugins.
License
來源:README.md,提交 fdd7ea5
工具
0版本歷史
1- v0.3.8最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分