
Figuard Mcp
io.github.figuard由 GitHub 账号 figuard 发布v1.2.0更新于 Oct 24, 2026
Pre-flight spend authorization for AI agents. Set a budget, enforce limits, audit every decision.
概览
本地 MCP 服务器,为 AI 助手提供 FiGuard 支出管控:创建预算、支出前授权,并审计每一次决策。
- 可以做什么
- 创建和管理支出预算,包括调整额度、延长有效期、恢复被冻结的预算以及批量取消预算,并查看预算状态、已花、预留和可用金额以及可筛选的支出流水。执行支出前授权检查,返回 AUTHORIZED 或 DENIED 及原因,随后确认实际金额、释放失败的预留或作废未使用的预留。针对团队预算创建、查看和撤销按代理限定的委托令牌。可嵌入运行于本地 SQLite 文件,也可连接自建或托管的沙箱 FiGuard 服务器。
- 适用场景
- 当助手需要代你花钱或占用资源,而你希望在付款前设有预算上限、预检审批步骤,并保留每次决策的可审计记录时适用。
- 运行要求
- 需要 Node.js 18+。通过 npx 作为本地 stdio 进程运行。嵌入模式只需本地 SQLite 文件(默认位于用户主目录下)。服务器模式需要在 FIGUARD_BASE_URL 中提供运行中的 FiGuard 服务器地址,并在 FIGUARD_API_KEY 中提供 API 密钥;也提供托管沙箱。后端模式由 FIGUARD_MODE 选择。
安装
在 SourceWeft 中
- 打开 控制台中的 Figuard Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
figuard-mcp
FiGuard MCP server — use FiGuard directly from Claude Code, Cursor, or Claude Desktop without writing any SDK code.
What this does
Adds 14 FiGuard tools to your AI assistant. Instead of writing SDK code, you just talk to Claude:
"Create a $500 travel budget with $300 for flights and $200 for hotels" → Claude calls
figuard_create_budget
"Authorize a $149 economy flight from this budget" → Claude calls
figuard_authorize→ returns AUTHORIZED or DENIED
"The flight ended up costing $147 — confirm the actual amount" → Claude calls
figuard_confirm
Requirements
- Node.js 18+
- A running FiGuard server (local or sandbox)
Setup
Claude Code
Or add to ~/.claude/claude_desktop_config.json manually:
Cursor
Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json globally):
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Using the sandbox (no Docker required)
Point FIGUARD_BASE_URL at the hosted sandbox to try FiGuard without running a local server:
Available tools
Security note
FIGUARD_API_KEY is configured as an environment variable, not a tool argument. Tool arguments appear in LLM context windows — API keys must never be passed as tool parameters.
Session tokens returned by figuard_create_budget are short-lived (they expire with the budget) and are safe to use as tool arguments within a session.
Running FiGuard locally
FiGuard will be available at http://localhost:8080.
来源:packages/mcp/README.md,提交 9bc8430
工具
0版本历史
1- v1.2.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。