mcpField
T
three.ws Autopilot

three.ws Autopilot

本地服务
three.wsAI 与智能体255今天更新

关于 three.ws Autopilot

three.ws Autopilot 是供 Agent 管理自身执行边界与行动流程的认证 MCP 服务。它在服务端强制执行权限范围、SOL 支出上限和确认规则,也涵盖不可撤销的转账。

主要功能

  1. 01配置权限范围和 SOL 上限
  2. 02生成并查看提案
  3. 03预览、调整和执行行动
  4. 04驳回提案并撤销可逆行动
  5. 05查看活动凭据和信任等级

适用场景

  1. 01设定 Agent 可执行的操作及支出上限
  2. 02执行前审查提议的行动
  3. 03查看自主行动的记录

MCP 相关

向 MCP 客户端提供自动驾驶配置、提案、执行、撤销、活动和信任相关工具。访问需要 three.ws 凭据;服务端会强制执行行动限制,包括真实 SOL 转账的限制。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"nirholas-autopilot": {
"command": "npx",
"args": [
"-y",
"@three-ws/autopilot-mcp"
],
"env": {
"THREE_WS_API_KEY": "<THREE_WS_API_KEY>",
"THREE_WS_BASE": "<THREE_WS_BASE>",
"THREE_WS_TIMEOUT_MS": "<THREE_WS_TIMEOUT_MS>"
}
}
}
}
启动命令npx -y @three-ws/autopilot-mcp
需要配置的环境变量
THREE_WS_API_KEY密钥REQUIRED. The agent owner's three.ws credential — a three.ws API key (sk_live_… / sk_test_…) or an OAuth access token. Sent as Authorization: Bearer on every request; every autopilot endpoint is owner-scoped and rejects unauthenticated calls. This credential can move real SOL via execute_proposal — treat it like a password. THREE_WS_TOKEN / THREE_WS_BEARER are accepted aliases.
THREE_WS_BASEBase URL of the three.ws API that serves the autopilot endpoints. Override only when self-hosting or targeting a preview deployment.
THREE_WS_TIMEOUT_MSPer-request timeout in milliseconds. Proposal generation runs a real server-side LLM pass, so the default is generous.

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
npm@three-ws/autopilot-mcp0.2.2

工具

11

收录的工具列表 · 更新于 2 周前

参数类型必填说明
agentIdstring是要读取其 autopilot 配置的 three.ws Agent 的 UUID。必须是凭据所有者的 Agent。

详细介绍

three.ws

@three-ws/autopilot-mcp

AI Agent 自主执行的专属控制平面——设置自动驾驶范围、每日 SOL 支出上限和自动执行,然后通过任意 MCP 客户端运行提议 → 执行 → 撤销工作流。

npm 许可证 node MCP 注册表 three.ws


一个通过 stdio 为 AI Agent 提供专属执行控制平面的 Model Context Protocol 服务。Agent 可配置其获准执行操作的边界——能力范围、每日 SOL 支出上限、自动执行和确认策略——然后驱动完整的提议 → 审核 → 执行 → 撤销工作流。全程无需人工介入,但所有边界都由服务端强制执行:超出范围或超出预算的操作会被拒绝,绝不会执行。

这是自主 Agent 方案的关键一环。自动驾驶配置和执行过去只能通过 three.ws UI/API 使用;此服务将其开放出来,让 Agent 能管理自身的护栏并在其范围内采取行动。

⚠️ 此服务需要身份验证,且以写操作为主。 execute_proposal 可能会在 Solana 主网上转移真实 SOL,而且不可撤销。它只发送原生 SOL——Agent 不会出售或发送 $THREE(只会买入、持有或销毁)。范围、每日 SOL 支出上限和确认机制均由 three.ws 后端强制执行;此服务无法绕过这些限制。

安装

npm install @three-ws/autopilot-mcp

也可以使用 npx 运行(无需安装):

npx @three-ws/autopilot-mcp

快速开始

Claude Code,只需一行(提供你的 three.ws 凭证):

THREE_WS_API_KEY=sk_live_… claude mcp add autopilot -- npx -y @three-ws/autopilot-mcp

Claude Desktop / Cursor(claude_desktop_config.json 或 mcp.json):

{
	"mcpServers": {
		"autopilot": {
			"command": "npx",
			"args": ["-y", "@three-ws/autopilot-mcp"],
			"env": {
				"THREE_WS_API_KEY": "sk_live_…"
			}
		}
	}
}

使用 MCP Inspector 检查可用功能:

THREE_WS_API_KEY=sk_live_… npx -y @modelcontextprotocol/inspector npx @three-ws/autopilot-mcp

身份验证

所有自动驾驶端点都仅限所有者访问,因此此服务需要身份验证。将 Agent 所有者的 three.ws 凭证设置为 THREE_WS_API_KEY——可以是 three.ws API 密钥(sk_live_… / sk_test_…)或 OAuth 访问令牌。每次请求都会通过 Authorization: Bearer … 发送该凭证,用于识别所有者;Agent 只能管理该用户拥有的 Agent。该凭证可通过 execute_proposal 授权执行真实 SOL 转账——请像密码一样妥善保管。THREE_WS_TOKEN 和 THREE_WS_BEARER 也可用作别名。

工具

工具类型功能
get_autopilot_config只读读取 Agent 的防护措施:是否启用、范围、自动执行、每日 SOL 上限、确认策略,以及信任度。
set_autopilot_config写入 · 幂等使用部分补丁更新这些防护措施(授予范围、设置每日 SOL 上限、启用/停用)。不执行任何操作。
generate_proposals写入运行 Agent 的思维流程:将高显著性记忆和反思转化为附有来源引用的真实候选操作。
list_proposals只读提案队列——包含 ID、类型、理由、参数、状态和引用来源。可按状态筛选。
dryrun_proposal只读预览执行提案将会执行的操作(范围/上限/余额检查),但不采取任何操作。
adjust_proposal写入 · 幂等在执行前编辑待处理提案的参数(调整阈值、金额、频率)。由服务端验证。
execute_proposal写入 · 破坏性执行真实操作。⚠️ wallet_transfer 会在主网上转移真实 SOL,且无法撤销——需要 confirm:true。绝不会发送 $THREE。
dismiss_proposal写入丢弃待处理提案;记录一条反馈记忆,让 Agent 不再提出该提案。
undo_action写入撤销可逆的执行操作(删除警报规则/简报);记录一条反馈记忆。SOL 转账无法撤销。
list_autopilot_activity只读仅追加的签名回执日志——记录每项自主操作、其结果、来源和签名。
compute_trust只读Agent 获得的信任级别(sandbox → trusted → autonomous),根据真实操作历史计算。

五个读取工具反映实时状态(提案、回执、信任度可能在调用之间发生变化),因此都不是幂等的。set_autopilot_config 和 adjust_proposal 是幂等写入(重复应用相同值不会产生变化)。generate_proposals、execute_proposal、dismiss_proposal 和 undo_action 都会执行真实操作。

输入参数

除 list_autopilot_activity 外,每个工具都需要 agentId(你拥有的 Agent 的 UUID);list_autopilot_activity 的 agentId 为可选参数(省略时会汇总你所有 Agent 的数据)。

  • get_autopilot_config / compute_trust / generate_proposals — agentId。
  • set_autopilot_config — agentId,以及以下任意参数:enabled(bool)、scopes({ create_alert?, briefing?, wallet_transfer? })、autoExecute({ create_alert?, briefing? })、dailySpendSol(数字,SOL;0 表示禁用支出)、requireConfirm(bool)。
  • list_proposals — agentId、status(pending | executed | dismissed | undone | failed)、limit(1–200)。
  • dryrun_proposal / dismiss_proposal / undo_action — agentId、proposalId。
  • adjust_proposal — agentId、proposalId、params(该提案类型的完整替换参数)。
  • execute_proposal — agentId、proposalId、confirm(bool——不可逆的 SOL 转账必须提供)。
  • list_autopilot_activity — agentId(可选)、limit(1–200)、cursor(取自先前的 next_cursor)。

循环

// 1. Grant the agent a reversible capability
// set_autopilot_config
> { "agentId": "…", "enabled": true, "scopes": { "create_alert": true } }
{ "ok": true, "config": { "enabled": true, "scopes": { "create_alert": true, "briefing": false, "wallet_transfer": false }, "daily_spend_sol": 0, "require_confirm": true } }

// 2. Let the agent propose actions from its memory
// generate_proposals
> { "agentId": "…" }
{ "ok": true, "createdCount": 1, "source": "memory",
  "created": [ { "id": "p_…", "kind": "create_alert", "title": "Alert when $THREE crosses $0.01",
                 "rationale": "You noted interest in $THREE around $0.01 — I'll watch it.", "status": "pending" } ] }

// 3. Preview before acting
// dryrun_proposal
> { "agentId": "…", "proposalId": "p_…" }
{ "ok": true, "preview": { "kind": "create_alert", "willDo": "Create a real alert rule… Reversible.",
                           "checks": [ { "label": "Scope \"create_alert\" granted", "ok": true } ], "blocked": false } }

// 4. Execute for real (reversible kind — no confirm needed)
// execute_proposal
> { "agentId": "…", "proposalId": "p_…" }
{ "ok": true, "receipt": "Created a price above alert.", "actionId": "1843", "proposal": { "status": "executed" } }

// 5. Changed your mind? Undo it.
// undo_action
> { "agentId": "…", "proposalId": "p_…" }
{ "ok": true, "proposal": { "status": "undone" } }

要支出真实 SOL,所有者必须已授予 scopes.wallet_transfer、设置大于 0 的 dailySpendSol,并且(除非已预先授权)必须使用 confirm:true 重新调用 execute_proposal。以上三项均由服务端检查。Agent 只会支出 SOL——绝不会出售或发送 $THREE。

要求

  • Node.js >= 20。
  • Agent 所有者的 three.ws 凭证(THREE_WS_API_KEY)。
  • 网络可访问 https://three.ws(或你自己的 THREE_WS_BASE)。
环境变量
变量必需默认值说明
THREE_WS_API_KEY是—three.ws API 密钥(sk_live_…)或 OAuth 访问令牌。属于机密信息,可能会转移实际的 SOL。
THREE_WS_BASE否https://three.ws仅在自行托管或指向预览环境时覆盖。
THREE_WS_TIMEOUT_MS否60000每个请求的超时时间(生成过程会在服务端运行一次大模型)。

链接


属于 three.ws SDK 套件的一部分 — 3D AI Agent、链上身份和 Agent 支付。
网站 · 更新日志 · GitHub

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。