
Agent Q
io.github.stelis-dev由 GitHub 账号 stelis-dev 发布v0.2.2更新于 Oct 24, 2026
Local MCP server for requesting signatures from Agent-Q Firmware.
概览
本地 MCP 服务器,让 AI 助手向独立的 Agent-Q 签名设备请求 Sui 签名,签名权限保留在硬件上。
- 可以做什么
- 请求 Sui 交易签名,支持内联或同一会话内分阶段提交的交易字节
- 在用户授权模式下请求 Sui 个人消息签名
- 创建账户、读取策略、提交策略提案和查询状态请求
- 把受限请求从本地宿主进程转发给 Agent-Q 固件,由固件按设备本地策略或设备端审批关卡处理
- 对不支持的链和方法返回签名结果或明确的失败
- 适用场景
- 当助手需要签署 Sui 交易或个人消息,且希望签名密钥留在独立的 Agent-Q 设备上而不是助手或宿主进程中时使用。适合围绕 Agent-Q 固件和 Sui 工具的开发与演示环境,不适合真实资产的托管。
- 运行要求
- 以本地 npm 包(@stelis/agent-q)通过 stdio 在桌面端运行。需要 Node.js 以及可连接的、运行固件的 Agent-Q 签名设备,宿主进程负责向设备转发请求。未声明任何环境变量、请求头或身份验证。
安装
在 SourceWeft 中
- 打开 控制台中的 Agent Q,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Agent-Q
Development status: Agent-Q is an active development project with hardware-tested Sui signing paths for CLI, MCP, and supported provider flows. The current StackChan CoreS3 Firmware path uses DEV_PROFILE material intended for development and demos, not real-asset custody. See Current Status for storage and profile limitations.
Concept
Agent-Q separates execution surfaces from signing authority.
Execution capability is not signing authority. Agent-Q keeps that boundary explicit for agent-driven and local Sui signing flows.
This README describes the Agent-Q authority-boundary architecture for local Sui
signing flows. Current implementation status and profile limitations are tracked
in docs/IMPLEMENTATION_STATUS.md.
MCP clients, Sui CLI, and supported Sui app adapters submit bounded requests
through the local agent-q host process. AI agent runtimes usually reach
Agent-Q through MCP clients. The host relays requests; it does not store
signing material, decide policy, or approve signing.
Agent-Q Firmware runs on a separate signing device. It holds signing material and policy for the implemented material profile, checks device state and request contents, applies the implemented policy or device-local approval gate, and returns signed results or explicit failures.
Signing request transport stays local. Signing authority stays on the device. Requesters can ask for signatures, but they cannot hold signing material, choose the authorization mode, or approve their own requests.
Structure
Agent-Q has three roles:
- requesters create signing, account, policy read, policy proposal submission, or status requests. MCP clients, Sui CLI, Sui app adapters, and the Admin Page are request surfaces, not signing authorities.
- the host process is the local
agent-qprocess. It exposes MCP stdio tools, the local HTTP API, the Admin Page, and adapter-facing request surfaces, then relays bounded requests to Firmware. - Agent-Q Firmware is the software running on the signing device. Firmware owns policy checks, device-local approval gates, signing, persistence, and cleanup, and holds signing material for the implemented material profile.
Agent-Q uses a simple authority model:
- requesters create requests;
- the host process relays requests;
- Firmware handles each implemented request type according to device-local state.
For signing requests, Firmware decides whether the implemented policy or device-local approval gate permits signing.
Unsupported chains and methods fail explicitly.
Use Agent-Q
- Sui users can register
agent-q-sui-signeras a Sui CLI external signer. Seepackages/agent-q/README.md. - MCP clients can run the local server and call Agent-Q MCP tools. See
packages/agent-q/README.md. - Sui app developers can use the Sui provider package for supported Wallet
Standard adapter flows. See
packages/provider-sui/README.mdandpackages/sample-sui-dapp-kit/README.md. - Sui zkLogin browser setup and sign-only transaction checks live in the
non-production test web sample. See
packages/sample-zklogin-test-web/README.md. - Firmware and hardware developers working on device-owned signing policy,
local approval, and bounded signing flows should start with
firmware/README.md.
Packages
Current Implementation Highlights
The current implementation includes these device-owned paths. They are development/demo capabilities; Current Status below defines the DEV_PROFILE and product-active limits.
- Device-local BIP-39 setup: Firmware can generate a new 12-word BIP-39 backup phrase on the device, display it for backup, and store DEV_PROFILE root entropy only after local backup confirmation and repeated local PIN entry.
- Device-local mnemonic restore: Firmware can accept a 12-word BIP-39 import through the device UI, verify the checksum, and enter the same local PIN setup path. USB, host process, and MCP mnemonic import are not implemented.
- Sui zkLogin active identity: the browser test flow can prepare and propose bounded zkLogin proof material through the provider/Web Serial path. Firmware reviews the proposal on device, requires local PIN approval, stores one bounded proof record, and projects the active zkLogin Sui account. When zkLogin is active, the same signing request path produces a zkLogin signature envelope after the normal Firmware authorization gate. Firmware stores no raw JWT.
- Large Sui transaction payloads:
sign_transactionsupports inlinetxBytesand same-session staged payload delivery for larger Sui transaction bytes, up to the Sui serialized transaction maximum. This is a payload and adapter input capacity, not a claim that every Sui transaction shape is semantically signable; unsupported or unbindable shapes fail before signing. - Sui sponsored transaction receive path: Firmware has a device-local Sui account setting that controls whether it accepts transactions where the parsed sender is the active account and the parsed gas owner is a different sponsor. When accepted, Agent-Q still returns only the active sender's signature; sponsor signature collection and transaction execution assembly are outside Agent-Q.
Request Flow
Current signing routes are summarized below. In this README, product-active
means the matching source, docs, tests, build, current-tree target hardware
evidence, and visual evidence are complete in docs/IMPLEMENTATION_STATUS.md.
A route can be implemented and hardware-tested while product-active evidence is
still being completed.
The current implementation contains Sui zkLogin active identity paths, but
docs/IMPLEMENTATION_STATUS.md does not mark them product-active. The sample
test web exercises browser-to-device proof setup and sign-only transaction
checks over Web Serial. Enoki, OAuth, prover work, and Google OAuth testnet
setup stay in the browser test layer; Agent-Q receives only bounded proof
proposals. The sample does not display JWTs or proof JSON and does not write
them to browser storage.
Unsupported chains and unsupported methods fail explicitly. Chains are exposed through the shared protocol; Agent-Q does not create separate chain-specific product APIs.
Authority Boundary Basics
This section explains who may request work and who may decide. DEV_PROFILE storage and product-active status are covered in Current Status.
- The host process, MCP, Sui CLI tools, providers, apps, and agents are requesters, not signing authority.
- The host process does not store signing material and does not make signing or policy decisions.
- Firmware holds signing material and policy for the implemented material profile and owns signing decisions.
- Firmware chooses the signing authorization gate from device-local state. Requests cannot choose policy authorization mode or user authorization mode.
- Agent-Q cannot verify what happened inside an agent, app, wallet UI, or host process before a signing request was created.
- All external requests are untrusted input. Firmware must parse bounded request contents before signing.
Current Status
Detailed status lives in docs/IMPLEMENTATION_STATUS.md.
Current implementation includes the Sui signing routes listed above, MCP tools,
provider-sui, and StackChan CoreS3 Firmware paths. Hardware smoke coverage is
recorded in docs/IMPLEMENTATION_STATUS.md; product-active signing support is
claimed only when the matching status row says the source, docs, tests, build,
hardware, and visual evidence are complete.
Current limitations:
- The current StackChan CoreS3 Firmware path uses DEV_PROFILE material intended for development and demos, not real-asset custody.
- In DEV_PROFILE, root entropy, the active policy record, and the local PIN verifier are stored in ordinary NVS. Secure Boot, Flash Encryption, and NVS Encryption are not configured.
- DEV_PROFILE is the only implemented material profile.
- Sui is the only executable chain.
- Sui transaction parsing is bounded and offline. Agent-Q does not simulate Sui execution or fetch chain state.
- Sui sponsored transaction support is limited to the sender-bound receive path described above. Agent-Q does not produce, collect, or assemble sponsor signatures and does not execute or submit Sui transactions.
- Policy-authorized personal-message signing is not implemented.
- Sui zkLogin browser-to-device setup, clear, reconnect, and signing paths are not product-active.
- Browser dapp signing requires the provider/browser runtime path, not the Node-local provider factory.
Advanced
- Protocol contract:
specs/PROTOCOL.md - Security model:
docs/SECURITY_MODEL.md - State model:
docs/STATE_MODEL.md - Current policy schema and Sui policy facts:
docs/POLICY_SCHEMA.md - Implementation status:
docs/IMPLEMENTATION_STATUS.md - Firmware overview:
firmware/README.md - StackChan CoreS3 target:
firmware/src/stackchan-cores3/README.md
Development
Install workspace dependencies:
Build all packages:
Run the root test suite:
Firmware build instructions are target-specific. Start with
firmware/README.md and the target README under firmware/src/<hardware-id>/.
.WORK/ is for local planning, scratch files, and investigation materials. It
is not tracked by Git and must not be required by user-facing build or runtime
instructions.
来源:README.md,提交 be66548
工具
0版本历史
1- v0.2.2最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。