Erbina

io.github.noahhyden由 GitHub 账号 noahhyden 发布v0.3.0更新于 Nov 1, 2026

Bootstrap, verify, and update CLI tools & MCP servers in Claude Code from recipes; audit scopes.

概览

AI 生成的概览

仅用于 Claude Code 的 MCP 服务器,按精选配方安装、接入并验证命令行工具和其他 MCP 服务器,并审计 MCP 服务器的配置位置。

可以做什么
  • 查找与查看配方:列出、搜索、按分类浏览配方,并在不执行任何命令的情况下预览配方将要运行的命令
  • 安装与管理工具:按配方引导安装、更新、卸载和固定命令行工具或 MCP 服务器,支持试运行
  • 审计 MCP 配置:检查更新、查看各作用域中配置了哪些 MCP 服务器、找出失效服务器并移除
  • 运行诊断:提供 doctor 工具排查受管环境的问题
适用场景
适合让智能体在 Claude Code 中搭建开发环境,例如安装命令行工具、注册其他 MCP 服务器,并梳理分散在用户级和项目级作用域中的 MCP 配置。它只由智能体驱动,没有面向人的命令行入口。
运行要求
以单个 Python 文件通过 uv 在本地运行,需要 Claude Code。配方可能依赖 brew、winget、cargo、go、pipx 或 curl 等包管理器,具体取决于安装方式。会读取 ~/.claude.json 和项目的 .mcp.json,并调用 claude mcp list 命令。
安装前请注意
配方中的命令以普通进程、使用你的真实权限运行,不在 Claude Code 的 Bash 沙箱内,因此恶意配方等同于恶意 shell 脚本;只对来自可信代码库且你已阅读过的配方执行引导安装。安装、更新和卸载会改动系统,且没有自动回滚。Windows 支持为尽力而为,winget 标识可能解析到外观相似的软件包。服务器本身不发送遥测、不自行发起网络请求,但配方命令可能会。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Erbina,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

erbina

A Claude-Code-only MCP server that bootstraps your dev environment from one prompt — install, wire, and verify CLI tools and other MCP servers from curated recipes, and see where every MCP server lives across your scopes.

[CI] [Release] [License: Apache 2.0] [MCP]

[An interactive Claude Code session driving erbina: one prompt inspects the httpie recipe to show the plan, then bootstraps it — installing via pipx and verifying http --version for real]

Claude Code scatters MCP config across up to four files in two apps, with no single place that knows what's installed where (#27458, #8288, #5963). erbina is an MCP server an agent drives — there is no human entry point. Every recipe is a contract: detect → install → configure → verify, idempotent by construction, where success means the tool actually runs. Recipes compose (requires:, profiles), cover the full lifecycle (update, uninstall, doctor), and a weekly CI job installs a subset for real on macOS, Linux and Windows.

Install

A single Python file run by uv — it declares its dependencies inline, so there's no venv to manage.

bash
git clone https://github.com/noahhyden/erbina# --scope user makes it available everywhereclaude mcp add erbina --scope user -- uv run --script /absolute/path/to/erbina/server.py

Then just ask: "use erbina to set up ataegina" — the agent inspects the recipe, shows you exactly what it will run, then bootstraps and verifies it.

Needs uv and Claude Code, plus whatever a recipe's install method uses (brew, winget, cargo / go / pipx, or a curl fallback). Every method is guarded, so only one that exists on your machine ever runs.

Safety model

erbina runs as an ordinary sibling process of Claude Code — not inside its Bash sandbox — so a recipe's commands execute with your real privileges. The safety model is consent before execution: inspect_recipe and bootstrap(dry_run=true) show you the exact commands first, and the server instructs the agent to surface that plan before any real run.

A recipe's install.methods[].run is a shell command string, so a malicious or compromised recipe file is equivalent to a malicious shell script, and erbina does not — and cannot — sandbox it. Only bootstrap recipes you have read, from a checkout you trust.

erbina reads ~/.claude.json and any project .mcp.json to answer "what MCP servers are installed, and where", and shells out to claude mcp list. It sends no telemetry and makes no network calls of its own — the only outbound activity is whatever a recipe's own commands do when you bootstrap it.

Found a vulnerability? Report it privately through GitHub Security Advisories, not a public issue.

Tools

  • Discover — list_recipes, search_recipes, list_categories, inspect_recipe (the consent surface: shows what would run, executes nothing)
  • Act — bootstrap, update, uninstall, pin
  • Audit — check_updates, audit_scopes, find_dead_mcps, remove_mcp, doctor

Each tool's own description is its documentation — the agent reads it at call time. Everything that executes takes dry_run=true.

How a recipe works

Four phases an agent executes. From recipes/ataegina.yaml:

yaml
detect:   { command: "ataegina --version", expect_exit: 0 }   # skip install if presentinstall:                                                       # first guard to pass wins  methods:    - { id: homebrew, when: "command -v brew", run: "brew install noahhyden/tap/ataegina" }    - { id: curl,     when: "command -v curl", run: "curl -fsSL .../install.sh | sh" }configure: { steps: [ { run: "ataegina init --yes", needs_project_dir: true, optional: true } ] }verify:   [ { command: "ataegina --version", expect_exit: 0 } ]

A kind: mcp-server recipe instead wires a server into a chosen scope via claude mcp add <name> --scope ${scope} -- … (see recipes/fetch.yaml); a kind: profile installs nothing itself and just requires: a curated set. Because each when: guard runs in the host shell, methods self-select per OS. Optional blocks (requires:, version:, update:, uninstall:) and the full contract are in SCHEMA.md.

[!WARNING] Windows support is best-effort. Most winget ids were resolved in bulk against the winget catalog and are only spot-checked, so one may be wrong or resolve to a look-alike package — verify what got installed. A bad winget method fails cleanly rather than breaking a POSIX bootstrap.

Auto-updating tools

A recipe opting in with a version: block gets check_updates (compares installed vs latest via packaging, never claims an update it can't parse, skips pinned tools) and update (upgrades, then re-runs verify; on failure it marks the tool broken and returns a rollback_plan — there is no automatic rollback). erbina records what it manages in ~/.erbina/state.json.

Checking automatically (opt-in)

erbina has no CLI, so nothing calls check_updates on a timer — the agent has to. Both options below only nudge the agent; neither updates anything without your confirmation.

SessionStart hook. Point one at examples/erbina-session-start.sh, which prints a payload whose additionalContext asks the agent to run check_updates. In .claude/settings.json (or ~/.claude/settings.json for all projects):

json
{  "hooks": {    "SessionStart": [      {        "matcher": "startup|resume",        "hooks": [          { "type": "command", "command": "bash /ABSOLUTE/PATH/TO/erbina/examples/erbina-session-start.sh" }        ]      }    ]  }}

Scheduled routine. Or create a /schedule routine whose prompt asks the agent to run check_updates and report the summary before applying anything.

Headless / CI usage

A non-interactive claude -p run has no trust prompt, so load the server with --mcp-config and pre-approve its tools with --allowedTools — without that a headless call can call nothing, which is the one thing CI users trip on.

bash
# erbina.mcp.json: { "mcpServers": { "erbina": {#   "command": "uv", "args": ["run", "--script", "/absolute/path/to/erbina/server.py"] } } }claude -p "use erbina to list recipes, then inspect ripgrep" \  --mcp-config erbina.mcp.json --strict-mcp-config \  --allowedTools mcp__erbina__list_recipes mcp__erbina__inspect_recipe

Add mcp__erbina__bootstrap to install for real. --strict-mcp-config makes the run use only that file, never your global config.

What this is not

Not a package manager you run by hand (mcpm / brew / aqua), not a discovery registry (Smithery), and not reproducible provisioning (Nix / chezmoi / a Brewfile — an LLM-driven setup is the wrong tool for that). erbina's niche is the intersection: agent-run, verify-on-install recipes spanning CLI tools and MCP servers, aware of Claude Code's scopes.

Recipes

500+ live in recipes/; agents find them with search_recipes and list_categories. Adding one — a single YAML file following SCHEMA.md, with a cheap detect and an honest verify — is the most useful contribution. See CONTRIBUTING.md.

License

Apache 2.0. The names erbina and Noah Hyden and the project's logos are trademarks, not covered by that licence — see TRADEMARKS.md. Fork the code freely; just give your fork its own name.

来源:README.md,提交 3e16ed7

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.3.0最新Nov 1, 2026
  2. v0.2.1Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分