Arcane RMCP
ai.dinglebear由 dinglebear.ai 发布v0.4.2更新于 Oct 24, 2026
Rust MCP server and CLI for Arcane Docker and container management.
发布方自己的服务:RMCP
概览
通过 MCP 与命令行界面操作 Arcane,让助理查看与管理 Docker 环境、容器、Compose 项目及相关资源。
- 可以做什么
- 查看 Arcane 状态,以及 Docker 环境、项目、容器、镜像、网络、存储卷、注册表、GitOps、更新、漏洞与系统状态。创建、更新、启动、停止、重启、删除、清理、部署、同步、扫描与备份受支持的 Arcane 资源。对破坏性操作要求明确确认,并在转发前检查操作范围。提供 quick_start 提示与工具结构描述资源,供客户端发现。另附命令行工具,可执行状态查询、诊断与监视。
- 适用场景
- 当你已有 Arcane API 服务器,并希望让 AI 助理通过 MCP 查看或操作 Docker 环境、Compose 项目、容器、镜像、网络与存储卷时使用。也适合需要 GitOps 同步、镜像更新检查或漏洞扫描结果的运维场景。
- 运行要求
- 需在本机运行,通过 npx 启动并下载对应的 rarcane 二进制文件。需设置 RARCANE_API_URL 与 RARCANE_API_KEY,指向已有的 Arcane API 服务器。HTTP 模式还可设置 RARCANE_MCP_TOKEN 或改用 OAuth。
安装
在 SourceWeft 中
- 打开 控制台中的 Arcane RMCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
arcane-rmcp
Arcane Docker and Compose management over MCP and CLI with authenticated stdio and HTTP.
It exposes one MCP tool, arcane, plus the rarcane CLI. Agents can inspect
Arcane environments, manage compose projects, containers, images, networks,
volumes, registries, GitOps syncs, image updates, vulnerability findings, and
system operations through stdio MCP, Streamable HTTP MCP, or direct shell
commands.
30-second path: set RARCANE_API_URL and RARCANE_API_KEY, then run
npx -y @dinglebear/rarcane status -> start loopback HTTP with
RARCANE_MCP_HOST=127.0.0.1 npx -y @dinglebear/rarcane serve -> call tools/call with
{"action":"status"}.
Status: operational RMCP upstream-client server. Write-capable; destructive
Docker and Arcane operations require explicit confirmation. HTTP MCP supports
loopback dev mode, static bearer tokens, and Google OAuth through lab-auth.
Not for: replacing Arcane, bypassing Docker or Arcane authorization, running arbitrary shell commands, storing registry or Git credentials, multi-tenant isolation, or passing Arcane API keys through MCP tool arguments.
Contents
- Naming
- Capabilities And Boundaries
- Install
- Quickstart
- Client Configuration
- Runtime Surfaces
- MCP Tool Reference
- CLI Reference
- Configuration
- Authentication
- Safety And Trust Model
- Architecture
- Distribution Contract
- Development
- Verification
- Deployment
- Troubleshooting
- Related Servers
- Documentation
- License
Naming
| Surface | This repo |
|---|---|
| Repository | arcane-rmcp |
| Rust crate | rarcane |
| Binary / CLI | rarcane |
| npm package | @dinglebear/rarcane |
| npm binary alias | rarcane |
| MCP server name | rarcane in bundled plugin/client config |
| MCP tool | arcane |
| Config home | ~/.rarcane on hosts, /data in containers |
| Env prefixes | RARCANE_*, RARCANE_MCP_*, RARCANE_RMCP_* for npm launcher controls |
The repo and npm package use the upstream service name, while the shipped
binary keeps the historical Rust CLI name rarcane. The MCP server may be
registered as rarcane, but the tool clients call is arcane.
Capabilities And Boundaries
- Read Arcane status plus Docker environment, project, container, image, network, volume, registry, GitOps, update, vulnerability, and system state.
- Create, update, start, stop, restart, delete, prune, deploy, sync, scan, and back up supported Arcane resources through action/subaction dispatch.
- Enforce action scopes and destructive-operation confirmation before forwarding write operations to Arcane.
- Expose the
quick_startprompt andrarcane://schema/mcp-toolresource for client-side discovery. - Provide setup, doctor, and watch commands for local plugin/runtime checks.
| This repo owns | Arcane owns | Explicitly out of scope |
|---|---|---|
| MCP/CLI projection, request validation, auth policy, response shaping, setup checks, schema/resource exposure, and destructive gates. | Docker state, Arcane projects and environments, upstream authorization, registry credentials, GitOps secrets, vulnerability scanner output, and API semantics. | Direct Docker socket access, shell execution, credential storage, generic REST proxy behavior, multi-tenant sandboxing, scheduler behavior, and replacing the Arcane UI/API. |
Install
| Path | Command | Best for | Notes |
|---|---|---|---|
| npm / npx | npx -y @dinglebear/rarcane --help | Local MCP clients and quick trials. | Downloads the matching rarcane binary from GitHub Releases. |
| Release installer | curl -fsSL https://raw.githubusercontent.com/dinglebear-ai/rarcane/main/scripts/install.sh | bash | Host installs without Node. | Installs rarcane for the current Linux host. |
| Docker / Compose | docker compose up -d | Shared HTTP MCP deployments. | Reads .env and exposes container port 40110. |
| Build from source | cargo build --release | Development and audits. | Produces target/release/rarcane. |
| Plugin | claude plugin install plugins/rarcane | Claude Code local plugin setup from this checkout. | Uses the packaged skill and monitor metadata. The plugin ships no lifecycle hooks — run rarcane setup repair once after install. |
npm / npx
Run the stdio MCP server or CLI without a manual binary install:
npx -y @dinglebear/rarcane --help
npx -y @dinglebear/rarcane mcp
npx -y @dinglebear/rarcane status
The npm package downloads rarcane during postinstall. Override download
behavior only when testing packaging:
| Variable | Purpose |
|---|---|
RARCANE_RMCP_SKIP_DOWNLOAD=1 | Skip postinstall binary download. |
RARCANE_RMCP_VERSION or RARCANE_RMCP_BINARY_VERSION | Select the GitHub Release tag. |
RARCANE_RMCP_REPO | Select the GitHub repo used for release downloads. |
RARCANE_RMCP_RELEASE_BASE_URL | Select a custom release base URL. |
Build From Source
git clone https://github.com/dinglebear-ai/rarcane
cd rarcane
cargo build --release
./target/release/rarcane --help
Minimum supported Rust version: 1.90.
Quickstart
1. Configure Arcane
Point the bridge at an existing Arcane API server:
export RARCANE_API_URL=https://arcane.example.com
export RARCANE_API_KEY=...
The API key is read from env or config only. Do not pass it in MCP tool
arguments or CLI --params-json.
2. Run A Safe CLI Call
npx -y @dinglebear/rarcane status
3. Start Loopback HTTP MCP
RARCANE_MCP_HOST=127.0.0.1 npx -y @dinglebear/rarcane serve
In another shell:
curl -sf http://127.0.0.1:40110/health
4. Make A First MCP Call
curl -s -X POST http://127.0.0.1:40110/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"arcane","arguments":{"action":"status"}}}'
Client Configuration
Claude Code Stdio
{
"mcpServers": {
"rarcane": {
"command": "npx",
"args": ["-y", "arcane-rmcp", "mcp"],
"env": {
"RARCANE_API_URL": "https://arcane.example.com",
"RARCANE_API_KEY": "..."
}
}
}
}
Claude Code HTTP
{
"mcpServers": {
"rarcane": {
"type": "http",
"url": "http://127.0.0.1:40110/mcp",
"headers": {
"Authorization": "Bearer ${RARCANE_MCP_TOKEN}"
}
}
}
}
Codex / Labby Gateway
Register Arcane through Labby as an HTTP upstream when sharing one long-running server, or run it directly as stdio for local-only use.
[mcp_servers.rarcane]
command = "npx"
args = ["-y", "arcane-rmcp", "mcp"]
Generic MCP JSON
{
"command": "rarcane",
"args": ["mcp"],
"env": {
"RARCANE_API_URL": "https://arcane.example.com"
}
}
Do not put RARCANE_API_KEY, registry credentials, Git credentials, OAuth
secrets, SSH keys, passwords, or upstream bearer tokens in MCP tool arguments.
Use env, config files, or the MCP client's secret storage.
MCP callers never provide credentials, tokens, keys, or secrets as action
arguments.
Runtime Surfaces
| Surface | Status | Entry point | Purpose |
|---|---|---|---|
| MCP stdio | Supported | rarcane mcp, npx -y @dinglebear/rarcane mcp | Local child-process MCP clients. |
| MCP HTTP | Supported | rarcane serve, POST /mcp | Streamable HTTP MCP for local or shared server deployments. |
| CLI | Supported | rarcane <command> | Scriptable parity and debugging. |
| Prompt | Supported | quick_start | Guides a client through status and public help. |
| Resource | Supported | rarcane://schema/mcp-tool | JSON schema for the arcane tool. |
| REST API | Not shipped | N/A | Arcane already owns the REST API. |
| Web UI | Not shipped | N/A | Arcane already owns the web UI. |
MCP Tool Reference
One MCP tool is exposed: arcane. Pass the required action argument and, for
most domains, a required subaction.
| Action | Common subactions | Scope |
|---|---|---|
help | action reference or domain-specific help | public |
status | local bridge and Arcane config status | rarcane:read |
elicit_name | MCP elicitation demonstration | rarcane:read |
scaffold_intent | side-effect-free scaffold planning handoff | rarcane:read |
environment | list, get, create, update, delete, test | read/write |
project | list, get, create, update, up, down, restart, pull, destroy, redeploy, build | read/write |
container | list, get, create, start, stop, restart, update, delete, stats | read/write |
image | list, get, pull, delete, prune, scan | read/write |
network | list, get, create, delete, prune | read/write |
volume | list, get, create, delete, prune, browse, list-backups, create-backup, delete-backup, restore, restore-files | read/write |
system | docker-info, prune, start-all, stop-all, convert | read/write |
image-update | check-all, check, check-batch, summary | read |
vulnerability | summary, list, scanner-status, ignore, unignore, list-ignored | read/write |
registry | list, get, create, update, delete, test | read/write |
gitops | list, get, create, update, delete, sync, status, browse | read/write |
Action specs in src/actions.rs and the generated schema notes in
docs/MCP_SCHEMA.md are the source of truth for required parameters.
Example read-only tool arguments:
{
"action": "container",
"subaction": "list",
"envId": "default"
}
Example destructive operation:
{
"action": "container",
"subaction": "stop",
"envId": "default",
"id": "my-container",
"params": {
"confirm": true
}
}
CLI Reference
rarcane exposes the same service layer as the MCP tool:
rarcane status
rarcane help --domain container
rarcane call --action container --subaction list --env-id default
rarcane call --action system --subaction docker-info --env-id default
rarcane call --action container --subaction stop --env-id default --id my-container --confirm
rarcane doctor --json
rarcane watch --url http://127.0.0.1:40110
rarcane setup check
rarcane setup repair
--params-json accepts action-specific JSON payloads. Do not use it to pass
credentials.
Configuration
Host installs read ~/.rarcane/.env, ~/.rarcane/config.toml, and process env.
Containers read /data/.env, /data/config.toml, and process env.
| Variable | Default | Purpose |
|---|---|---|
RARCANE_API_URL | unset | Arcane API base URL. |
RARCANE_API_KEY | unset | Arcane API key or bearer token. |
RARCANE_MCP_HOST | 127.0.0.1 | HTTP bind host. |
RARCANE_MCP_PORT | 40110 | HTTP bind port. |
RARCANE_MCP_SERVER_NAME | arcane-rmcp | Advertised MCP server name. |
RARCANE_MCP_TOKEN | unset | Static bearer token for HTTP MCP. |
RARCANE_MCP_NO_AUTH | false | Disable auth only for loopback development. |
RARCANE_NOAUTH | false | Trust an upstream gateway to enforce auth. |
RARCANE_MCP_ALLOWED_HOSTS | unset | Extra accepted Host header values. |
RARCANE_MCP_ALLOWED_ORIGINS | unset | Extra accepted CORS origins. |
RARCANE_MCP_PUBLIC_URL | unset | Public base URL for OAuth issuer metadata. |
RARCANE_MCP_AUTH_MODE | bearer | bearer or oauth. |
RARCANE_MCP_ALLOW_DESTRUCTIVE | false | Bypass the per-call destructive confirmation gate. Do not set in shared deployments. |
RARCANE_HOME | ~/.rarcane | Config/appdata root override. |
RUST_LOG | info | Log filter. |
Authentication
Stdio MCP runs as a local trusted child process and does not use HTTP auth.
HTTP MCP auth policy:
| State | Condition | Behavior |
|---|---|---|
| Loopback dev | Bound to 127.0.0.1, localhost, or [::1] | Local unauthenticated development is allowed. |
| Mounted bearer | Non-loopback with RARCANE_MCP_TOKEN | Requires Authorization: Bearer <token> and action scopes. |
| Mounted OAuth | RARCANE_MCP_AUTH_MODE=oauth | Uses Google OAuth/JWT through lab-auth; static bearer remains supported. |
| Trusted gateway | RARCANE_NOAUTH=true | Assumes a reverse proxy or gateway already enforced auth. |
OAuth mode uses the RARCANE_MCP_* Google OAuth variables documented in
docs/CONFIG.md.
OAuth mode is single-replica: client/session state and signing keys are local to one host. Do not run multiple OAuth replicas until those stores are externalized or safely shared.
Safety And Trust Model
- Arcane API credentials are loaded from config/env only.
- MCP callers select actions and payloads, not upstream credentials.
- Destructive subactions reject unless
params.confirm=trueor CLI--confirmis present. - Unknown actions, unknown subactions, missing environment IDs, missing IDs, and unsafe volume paths are rejected before upstream calls.
- Non-loopback HTTP deployments must use bearer auth, OAuth, or a trusted authenticated gateway.
- This bridge does not sandbox Arcane itself. Arcane remains responsible for Docker authorization and the effects of Docker operations.
Architecture
ArcaneClient (src/arcane.rs) HTTP transport and redacted errors
|
ArcaneService (src/app.rs) action validation, confirmation, response normalization
|
MCP shim (src/mcp/tools.rs) JSON args -> service -> Value
CLI shim (src/cli.rs) argv -> service -> stdout
Distribution Contract
Cargo.toml,Cargo.lock,packages/arcane-rmcp/package.json,.release-please-manifest.json, andserver.jsonmust agree on the released version.- GitHub Releases publish the
rarcanebinary consumed by the npm launcher. - The npm package name is
@dinglebear/rarcane; the installed binary alias israrcane. - Docker/OCI metadata uses
ghcr.io/dinglebear-ai/rarcane:<version>. plugins/rarcane/.mcp.jsonmust launchnpx -y @dinglebear/rarcane mcpso stdio clients start the MCP transport rather than the HTTP server.- The root README is curated. Generated or source-of-truth details live in
src/actions.rs,docs/MCP_SCHEMA.md, and the package/registry manifests.
Development
cargo fmt --check
cargo test
cargo clippy -- -D warnings
cargo build --release
npm --prefix packages/arcane-rmcp run check
Verification
just verify # fmt-check → lint → check → test
just template-check # patterns, plugin layout, schema docs, scaffold contract
npm --prefix packages/arcane-rmcp run check
git diff --check
Runtime smoke:
RARCANE_API_URL=https://arcane.example.com \
RARCANE_API_KEY=... \
rarcane status
HTTP smoke:
RARCANE_MCP_HOST=127.0.0.1 rarcane serve
curl -sf http://127.0.0.1:40110/health
Deployment
Use loopback for local development:
RARCANE_MCP_HOST=127.0.0.1 rarcane serve
Use Docker Compose for shared HTTP deployment:
cp .env.example .env
docker compose up -d
When binding to a non-loopback address, configure RARCANE_MCP_TOKEN,
RARCANE_MCP_AUTH_MODE=oauth, or RARCANE_NOAUTH=true behind an authenticated
gateway.
Troubleshooting
| Symptom | Check |
|---|---|
RARCANE_API_URL is required | Set RARCANE_API_URL in env or ~/.rarcane/.env. |
| Arcane calls return unauthorized | Refresh RARCANE_API_KEY in Arcane and restart the bridge. |
HTTP /mcp returns unauthorized | Set RARCANE_MCP_TOKEN and send Authorization: Bearer <token>. |
| Stdio client hangs or logs JSON errors | Ensure client config runs arcane-rmcp mcp, not the default HTTP server mode. |
| Destructive action is rejected | Add CLI --confirm or MCP params.confirm=true after verifying the target. |
| Port conflict | Set RARCANE_MCP_PORT or stop the process already using 40110. |
Related Servers
- soma - RMCP runtime for provider-backed MCP servers.
- unifi-rmcp - UniFi controller REST API bridge.
- tailscale-rmcp - Tailscale API bridge for devices, users, and tailnet operations.
- unraid - Unraid GraphQL bridge for NAS and server management.
- apprise-rmcp - Apprise notification fan-out bridge for many delivery backends.
- gotify-rmcp - Gotify push notification bridge for sends, messages, apps, and clients.
- yarr - Media-stack bridge for Sonarr, Radarr, Prowlarr, Plex, and related services.
- ytdl-rmcp - Media download and metadata workflow server.
- synapse-rmcp - Local Synapse workflow server for scout and flux actions.
- cortex - Syslog and homelab log aggregation MCP server.
- axon - RAG, crawl, scrape, extract, and semantic search project.
- labby - Homelab control plane and MCP gateway project.
- lumen - Local semantic code search MCP server.
Documentation
docs/API.mdis the curated action-contract overview.docs/CONFIG.mdis the curated configuration and auth reference.docs/QUICKSTART.mdis the curated smoke-test guide.docs/MCP_SCHEMA.mdis the generated/schema-drift contract for actions, resources, prompts, and validation rules.plugins/rarcane/skills/rarcane/SKILL.mdis the agent usage guide.
License
Original Dinglebear-authored portions of this project are licensed under AGPL-3.0-only. Separate commercial licensing is available for organizations that need terms outside the AGPL. Third-party material remains under its original license. See LICENSING.md.
来源:README.md,提交 7d16337
工具
0版本历史
1- v0.4.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Rmcp 集成
RMCP
dev.rmcp官方发布者
搜索并查看已收录的远程 MCP 服务器及其工具,返回服务器记录、端点信息、风险提示和安装说明。
YTDL RMCP
ai.dinglebear
本地运行的 Rust MCP 服务器,让助手搜索 YouTube、用 yt-dlp 下载音视频、写入标签并传输媒体,以及同步 Plex 播放列表。
Unraid RMCP
ai.dinglebear
本地 MCP 服务器兼 CLI,让助手通过 Unraid 的 GraphQL API 处理 NAS、Docker、虚拟机和存储相关任务。
Unraid RMCP
ai.dinglebear
本地运行的 Rust MCP 服务器兼命令行工具,让助手通过 Unraid 的 GraphQL API 查询和管理 NAS,涵盖阵列、Docker、虚拟机和存储。
UniFi RMCP
ai.dinglebear
本地 MCP 服务器兼 CLI,让助手读取 UniFi Network 控制器的客户端、设备、WLAN 和健康状态,并在具备管理员权限时执行变更操作。