Skip to main content
Glama

FinalApproval MCP 服务器

用于 FinalApproval 的独立 Model Context Protocol 服务器 —— 为 AI 智能体的操作设置人工审批网关。

您的智能体调用 submit_approval;人工在您的 FinalApproval 控制台的品牌化页面进行审核;当人工做出决定时,频道配置的 Webhook 会触发回调。

这是 stdio 版本,适用于本地 / 无头 / CI / 目录索引(Glama)使用。如果您需要托管的、支持 OAuth 的 Streamable-HTTP 服务器,请将 MCP 客户端指向 https://www.finalapproval.io/mcp。

范围

v0.1 版本提供一个工具:

工具

状态

备注

submit_approval

✅ 已发布

创建待审批请求。解析时触发 Webhook。

wait_for_resolution

计划中

依赖于公开的 GET /api/v1/approvals/:id。目前请使用 Webhook。

list_pending

计划中

依赖于公开的 GET /api/v1/approvals。

get_approval

计划中

依赖于公开的 GET /api/v1/approvals/:id。

如需使用目前完整的工具集,请使用托管端点 https://www.finalapproval.ai/mcp (OAuth 2.1, 作用域 approvals:write)。

Related MCP server: Approval Gate

设置

  1. 登录 finalapproval.ai 并创建一个频道。复制其 API 密钥(以 fa_ 开头)并配置 Webhook URL。

  2. 使用 FINALAPPROVAL_API_KEY 环境变量运行 MCP 服务器。

Claude Code / Cursor (Node)

npx -y @finalapproval/mcp-server

配置片段 (Claude Code ~/.claude.json):

{
  "mcpServers": {
    "finalapproval": {
      "command": "npx",
      "args": ["-y", "@finalapproval/mcp-server"],
      "env": {
        "FINALAPPROVAL_API_KEY": "fa_..."
      }
    }
  }
}

Docker

docker run --rm -i \
  -e FINALAPPROVAL_API_KEY=fa_xxx \
  ghcr.io/finalapproval/final-approval-mcp:latest

(已发布镜像即将推出;您也可以在本地构建:docker build -t finalapproval-mcp .。)

环境变量

变量

必需

默认值

用途

FINALAPPROVAL_API_KEY

是

—

频道 API 密钥 (以 fa_ 开头)

FINALAPPROVAL_URL

否

https://www.finalapproval.ai

用于自托管 / 开发环境的覆盖设置

闭环处理

submit_approval 会立即返回一个待处理的审批 ID。实际的决策结果通过频道的 Webhook 返回,而不是通过 MCP 返回。您的宿主应用程序(智能体的服务器)必须实现一个 Webhook 接收器,用于验证 HMAC 签名,并在 approved 时执行受控操作,或在 denied 时记录日志。请参阅 FinalApproval 文档 获取 Webhook 有效载荷架构。

开发

npm install
npm run build
FINALAPPROVAL_API_KEY=fa_... npm start

许可证

MIT

Available Tools

1 tool
submit_approvalSubmit an approval requestA

Create a pending approval in the FinalApproval channel whose API key is configured in this MCP server. The channel's webhook fires when the human approves or denies. Use this before any irreversible agent action (sending email, merging a PR, publishing a post, running a migration, etc).

ParametersJSON Schema
NameRequiredDescriptionDefault
titleYesShort headline shown in the approval list.
bodyYesHTML body shown to the human reviewer. Tailwind utility classes are supported. Include the actual content being gated (diff, PR body, email text) — the reviewer decides from this card alone.
dataNoMachine-readable payload attached to the approval. Echoed back to the channel's webhook on resolution — put the structured args your callback will need to execute the gated action.

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: the approval is pending until human action, webhook firing on resolution, and the irreversible nature of gated actions. However, it lacks details on error handling, rate limits, or authentication requirements beyond the API key mention.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured in two sentences: the first defines the tool's purpose, and the second provides critical usage guidelines. Every phrase adds value, with no redundant or unnecessary information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no annotations and no output schema, the description provides strong contextual completeness by explaining the approval workflow, webhook behavior, and use-case guidance. It adequately compensates for the lack of structured fields, though it could benefit from mentioning response format or error cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, providing full parameter documentation. The description adds minimal parameter semantics beyond the schema—it mentions the channel's API key context but doesn't elaborate on parameter usage or constraints. Baseline 3 is appropriate since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Create a pending approval') and the target resource ('in the FinalApproval channel'), with specific context about the channel's API key configuration. It distinguishes this as a submission tool for approval requests, which is unambiguous even without sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool ('before any irreversible agent action') and lists concrete examples of such actions (sending email, merging a PR, etc.). This gives clear context for application without needing sibling tool comparisons.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev0.1.0
    • First observedsubmit_approval

TDQS

A4.1/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool has a clear and distinct purpose for submitting approvals.

Naming Consistency5/5

The tool name 'submit_approval' follows a clear verb_noun pattern. Since there is only one tool, consistency is inherently perfect with no deviations or mixed conventions.

Tool Count2/5

A single tool is too few for most practical server purposes, as it severely limits functionality and scope. While it might serve a narrow use case, it feels thin and incomplete for typical agent workflows.

Completeness2/5

The server's domain appears to be approval workflows, but with only a submit tool, there are significant gaps. Missing operations likely include checking approval status, listing pending approvals, or handling approvals programmatically, which could cause agent failures.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to pause execution at critical decision points and request human review before proceeding. Provides tools for creating interrupts, polling for decisions, and managing approvals through a simple REST API interface.
    9 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides a human approval gate for AI agents, enabling interactive inline cards for approving, editing, or rejecting actions before they are executed.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Pauses AI agent execution and routes approval requests to humans via Slack or email, with cryptographically signed proof of the human's decision.
    23 npm
    MIT