← 返回 Skills 市场
leiarenee

AgentMFA

作者 leiarenee · GitHub ↗ · v1.0.11 · MIT-0
cross-platform ✓ 安全检测通过
126
总下载
0
收藏
0
当前安装
8
版本数
在 OpenClaw 中安装
/install agentmfa
功能描述
Request human approval via biometric auth before performing sensitive actions. Use this skill whenever an action is irreversible, destructive, or requires hu...
使用说明 (SKILL.md)

AgentMFA Skill

AgentMFA does not execute actions. It pauses your agent and requests biometric approval from the human operator's mobile app. The agent only proceeds — or aborts — based on the human's decision.

Use this skill before performing any sensitive or irreversible action. The human operator will receive a push notification, review the action, and approve or reject it with biometrics.

About AgentMFA

The MCP server must be configured in your agent runtime before this skill can be used. See the setup instructions at https://github.com/agentmfa/agentmfa-integrations.

For production use, pin the MCP server to a specific version rather than using latest:

npx @agentmfa/[email protected]

Review the package source at https://github.com/agentmfa/agentmfa-integrations/tree/main/mcp before installing. To verify the binary matches the published source, check the SHA256 hash against checksums.txt in the GitHub release:

sha256sum $(which agentmfa-mcp)

When to Use

  • Deleting or modifying production data
  • Deploying code to production
  • Sending emails or messages on behalf of the user
  • Actions that could result in financial charges or transactions
  • Modifying infrastructure (cloud resources, DNS, etc.)
  • Any action explicitly marked as requiring human approval

How to Use

This skill uses the AgentMFA MCP server tools. The MCP server handles all API communication — your agent code makes only tool calls, no direct HTTP calls. The MCP server requires AGENTMFA_API_KEY to be set in your shell environment.

Standard flow (blocking)

1. Call request_approval(action, context, risk_level)
   → returns { id, status: "pending", expires_at, ... }

2. Call wait_for_approval(request_id: \x3Cid from step 1>)
   → blocks until human decides (polls every 3s)
   → returns { status: "approved", code: "..." }
          or { status: "rejected" }
          or { status: "expired" }

3a. status == "approved"  → proceed; treat the code as a sensitive one-time token
3b. status == "rejected"  → abort; inform the user
3c. status == "expired"   → abort; treat as rejected

Non-blocking check

If you need to do other work while waiting, use check_approval_status(request_id) to poll manually instead of wait_for_approval.

Rules

  • Always wait for approval before proceeding — never skip or assume approval
  • Abort on rejection — do not retry the same action without user re-initiation
  • Abort on expiry — a timed-out request is treated as rejected
  • Be specificaction and context should give the human enough detail to decide
  • Handle the code carefully — the one-time approval code returned on approval is a sensitive one-time token; do not write it to logs or external systems

MCP Tools

Tool Purpose
request_approval(action, context?, risk_level?) Submit approval request, returns request ID
wait_for_approval(request_id, timeout_seconds?) Block until decided, returns status + code
check_approval_status(request_id) Single non-blocking poll
安全使用建议
This skill appears coherent, but verify before installing: 1) Inspect the npm package source (github link) and pin to a specific release (do not use unpinned npx latest). 2) Verify the binary checksum after installation to ensure it matches the release. 3) Review the privacy/security policy and what fields (action, context) are sent to api.agentmfa.ai — avoid including secrets or full sensitive payloads in the context. 4) Limit the AGENTMFA_API_KEY scope if possible and rotate keys regularly. 5) Consider running the MCP binary in a restricted environment (limited network access/logging) while you evaluate its behavior. 6) If you require higher assurance, perform an internal code audit of the mcp/ subdirectory and review the npm package's maintainers and release history.
功能分析
Type: OpenClaw Skill Name: agentmfa Version: 1.0.11 The agentmfa skill implements a human-in-the-loop approval system using an MCP server (@agentmfa/mcp) to gate sensitive agent actions behind biometric authentication. The documentation in SKILL.md and the reference files provide clear, security-conscious instructions for the AI agent, including mandatory approval checks and error handling. No evidence of malicious behavior, data exfiltration, or prompt injection was found.
能力标签
cryptocan-make-purchasesrequires-sensitive-credentials
能力评估
Purpose & Capability
The skill is an MFA/approval gateway and requires a local MCP binary (installed from an npm package) and an AGENTMFA_API_KEY. These requirements are proportionate to a service that pauses agent actions and forwards approval requests to api.agentmfa.ai. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md instructs the agent to use the local MCP tools (request_approval, wait_for_approval, check_approval_status) and explicitly says the MCP server performs outbound HTTPS calls. The instructions do not tell the agent to read unrelated system files or to transmit extra data. It warns not to log one-time approval codes (good).
Install Mechanism
Installation is via an npm package (@agentmfa/mcp) that creates a local binary (agentmfa-mcp). Using a published npm package is expected for this purpose, but npm packages run arbitrary code on install — follow the skill's own advice to pin versions and review the repository and checksums before installing.
Credentials
Only AGENTMFA_API_KEY is required and declared as the primary credential. That is reasonable for a third-party approval service. Users should confirm the API key's scope and what data the service receives in approval requests (action/context may include sensitive details).
Persistence & Privilege
The skill does not request always:true or system-wide configuration changes. It installs a local helper binary (normal for this use). Model invocation is enabled (default) which is standard; this alone is not a coherence problem.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentmfa
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentmfa 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.11
- Added security best practices for production use, recommending MCP server version pinning instead of using latest. - Included instructions to verify the MCP server binary hash against published checksums before installing. - No code changes; documentation updates only.
v1.0.10
- Minor update to rules language: clarified that the approval code is a sensitive one-time token and should not be written to logs or external systems. - No functional or interface changes.
v1.0.9
- Updated skill metadata format to streamline environment and installation requirements. - Now explicitly defines AGENTMFA_API_KEY as the primary environment variable in metadata. - Modernized the structure under the "openclaw" key for clarity and compatibility. - No functional or file changes to skill behavior.
v1.0.8
- Added skill homepage URL to metadata for easier reference. - No other changes to functionality or documentation.
v1.0.7
- Added structured metadata under the "openclaw" key, specifying required binaries, install instructions for npm, and required environment variables. - No changes to the core functionality or usage documentation of the skill.
v1.0.6
- Added documentation for the required environment variable AGENTMFA_API_KEY, including details and description. - Updated metadata to include the required environment variable section. - Enhanced documentation to clarify open source status of MCP server source code. - Minor wording improvements and clarification in usage and rules sections.
v1.0.5
- Clarified that AgentMFA pauses the agent and does not execute actions directly. - Added an "About AgentMFA" section detailing the MCP server, API key setup, privacy policy, and source code links. - Provided clear MCP server requirements and setup instructions. - Updated guidance on handling the TOTP code, emphasizing its sensitivity and not logging it unnecessarily. - Improved instructions for usage, environment variable requirements, and tool flows.
v1.0.4
- Improved documentation with detailed usage instructions, standard flows, and best practices - Clarified use cases for requesting biometric approval on sensitive actions - Added comprehensive guidelines for handling approval, rejection, and expiry scenarios - Provided MCP tool descriptions for better integration and understanding
元数据
Slug agentmfa
版本 1.0.11
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 8
常见问题

AgentMFA 是什么?

Request human approval via biometric auth before performing sensitive actions. Use this skill whenever an action is irreversible, destructive, or requires hu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 126 次。

如何安装 AgentMFA?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentmfa」即可一键安装,无需额外配置。

AgentMFA 是免费的吗?

是的,AgentMFA 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

AgentMFA 支持哪些平台?

AgentMFA 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 AgentMFA?

由 leiarenee(@leiarenee)开发并维护,当前版本 v1.0.11。

💬 留言讨论