
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 分