io.github.figuard/figuard-mcp
NPM · FIGUARD-MCP · SCANNED AUG 3
Pre-flight spend authorization for AI agents. Set a budget, enforce limits, audit every decision.
Available components
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →
Supply Chain Security87
- No malware found by supply-chain analysis.Pass
- Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree.Partial
- No install/post-install scripts declared.Pass
- Only part of the dependency tree could be resolved (95 of 99), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (Apache-2.0).Pass
- Actively maintained (last published 47 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability64
- AI-judged instruction clarity (excellent).Pass
- Context-footprint check failed: tool/resource definitions use about 3118 tokens (~194/item across 16 items; 16 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management27
- Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.
npm · figuard-mcp
claude mcp add figuard-figuard-mcp -- npx -y figuard-mcp
codex mcp add figuard-figuard-mcp -- npx -y figuard-mcp
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"figuard-figuard-mcp": {
"type": "local",
"command": [
"npx",
"-y",
"figuard-mcp"
],
"enabled": true
}
}
} openclaw mcp add figuard-figuard-mcp --command npx --arg -y --arg figuard-mcp
mcp_servers:
figuard-figuard-mcp:
command: "npx"
args: ["-y", "figuard-mcp"] {
"mcpServers": {
"figuard-figuard-mcp": {
"command": "npx",
"args": [
"-y",
"figuard-mcp"
]
}
}
} Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 3 Aug 26 +4
- Stability: unverified → 0.27 ▲ functional
- 2 Aug 26 +45
- Provenance: unverified → fail ▼ security
- Install scripts: unverified → pass ▲ security
- Known CVEs: unverified → partial ▲ security
- Malware scan: unverified → pass ▲ security
- Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
- Security disclosure: fail → unverified ▼ functional
- Tool coverage: 100 → unverified ▼ functional
- MCP protocol: unverified → pass ▲ functional
- Maintenance: unverified → pass ▲ functional
- Dependency health: unverified → partial ▲ functional
- License: unverified → pass ▲ functional
- Schema quality: unverified → excellent ▲ functional
- First check of Schema quality: unverified functional
- Licence: Apache-2.0 functional
- 1 Aug 26 −16
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
- 31 Jul 26 −9
- Provenance: unverified → fail ▼ security
- Malware scan: pass → unverified ▼ security
- Install scripts: unverified → pass ▲ security
- Maintenance: unverified → pass ▲ functional
- License: unverified → pass ▲ functional
- Licence: Apache-2.0 functional
- 27 Jul 26 43
First indexed and scored.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 3 Aug 2026 · Analysed npm/[email protected]
Provenance none
Ecosystem: npm · Outcome: none
Dependencies 95 packages
95 packages in the resolved dependency tree · 94 deprecated · 29 stale.
The dependency tree was only partially resolved, so these counts may be incomplete.
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.
figuard_authorize ~579
Pre-flight authorization — ask FiGuard if a spend is permitted before taking any action. Returns AUTHORIZED (with event_id) or DENIED (with denial_reason). Always call this before spending. Only proceed if the result is AUTHORIZED. The idempotency_key must be unique per logical spend intent — reuse the same key on retries so the same spend is never double-authorized. After the action succeeds call figuard_confirm; if it fails call figuard_fail. IMPORTANT: When the budget has allocations, pass the exact category string from the budget's allocation_categories field — do not use synonyms or plural forms (e.g. use 'flight' not 'flights').
| Name | Type | Req | Description |
|---|---|---|---|
| action_type | string | yes | Type of action being authorized (e.g. 'PURCHASE', 'REFUND', 'LLM_CALL', 'API_CALL'). |
| agent_id | string | yes | Identifier for the agent making this request (e.g. 'booking-agent', 'refund-agent'). |
| claimed_category | string | — | Category of this spend (e.g. 'flight', 'hotel'). Required when the budget has allocations. |
| claimed_item_type | string | — | Specific item type (e.g. 'economy_ticket', 'hotel_room'). Used for STRICT enforcement mode. |
| description | string | yes | Human-readable description of what the agent is about to do (e.g. 'Book NYC to LAX flight'). |
| dry_run | boolean | — | When true, runs all enforcement checks and returns AUTHORIZED/DENIED but writes nothing to the ledger. Use for testing. |
| idempotency_key | string | — | Optional. Unique key for this spend intent. Use a UUID or stable identifier. Reuse on retries — never generate a new key for the same logical spend. When omitted, the SDK auto-generates a UUID v4 (sa… |
| parent_event_id | string | — | event_id of the parent spend if this is a sub-agent call. Used to build the causal chain. The parent event must be in AUTHORIZED or CONFIRMED state — passing a DENIED or VOIDED parent_event_id will r… |
| requested_quantity | number | yes | Amount to reserve. For USD budgets this is dollars. For token budgets this is the token count. |
| reserve | boolean | — | Optional (default true). Set false for an orchestrator/coordinator spend-tree root that should hold NO capacity and have no confirmation timeout — sub-agents authorize against the budget directly. Us… |
| session_token | string | yes | The session_token returned by figuard_create_budget. Never expose this in logs. |
| trace_id | string | — | Optional run ID to link all events from a single agent run together for debugging. |
No output schema declared.
No examples provided.
figuard_cancel_batch ~126
Cancel one or more budgets. Use this to cancel a single budget (pass one ID) or up to 100 at once. This is the correct tool when the user asks to cancel, close, void, or abandon a budget — not figuard_void (which only cancels individual spend events, not budgets). Already-terminal budgets (EXPIRED, CANCELLED, EXHAUSTED) are included in the response without an error — the call is idempotent per budget.
| Name | Type | Req | Description |
|---|---|---|---|
| budget_ids | array | yes | List of budget IDs to cancel. Maximum 100. |
No output schema declared.
No examples provided.
figuard_confirm ~127
Confirm a previously authorized spend after the action succeeds. Pass the actual amount spent — it may differ from the authorized amount (e.g. authorized $340, flight cost $337.50). This releases the difference back to the budget. Always confirm after a successful action.
| Name | Type | Req | Description |
|---|---|---|---|
| confirmed_quantity | number | yes | Actual amount consumed. May be less than the authorized amount. |
| event_id | string | yes | The event_id returned by figuard_authorize. |
| external_transaction_id | string | — | Optional reference from your payment processor (e.g. Stripe charge ID) for audit purposes. |
No output schema declared.
No examples provided.
figuard_create_budget ~687
Create a new FiGuard budget for an agent session. Returns a session_token that must be passed to figuard_authorize. The session_token is only returned once — store it for the duration of the agent session. Use currency (e.g. 'USD') for monetary budgets. Use unit (e.g. 'tokens') for resource budgets. Optionally add allocations to ring-fence spend by category (e.g. separate limits for flights and hotels). Pass external_reference to make this call idempotent: if a live budget with that reference already exists it is returned (HTTP 200) instead of creating a duplicate. If the reference exists but with a different configuration, a 409 is returned. Use this to safely handle orchestrator restarts.
| Name | Type | Req | Description |
|---|---|---|---|
| allocations | array | — | Optional category-level caps. Each allocation is an independent maximum — flights capped at $300 means flights can never exceed $300, regardless of what other categories spend. Allocation limits must… |
| anomaly_detection_enabled | boolean | — | When true, FiGuard monitors spend requests for statistical anomalies. Recommended for production. |
| auto_pause_on_anomaly | boolean | — | Controls anomaly response mode. When true (default), an anomalous request pauses the budget — no further spend until a human resumes it. When false (advisory mode), the anomalous request is still den… |
| currency | string | — | ISO 4217 currency code (e.g. 'USD', 'EUR'). Required for monetary budgets. Omit for resource budgets. |
| expires_in | string | — | How long the budget is valid. Accepts '24h', '7d', '30m', or a number of seconds. Defaults to '24h'. |
| external_reference | string | — | Optional stable identifier for this budget (e.g. 'run-abc-123', 'order-456'). When provided, re-calling figuard_create_budget with the same external_reference returns the existing live budget instead… |
| intent_context | string | — | Optional human-readable description of what this budget is for (e.g. 'Book travel to NYC for user_123'). |
| total_limit | number | yes | Maximum total amount the agent is allowed to spend. For USD budgets this is dollars, not cents. |
| unit | string | — | Resource unit label (e.g. 'tokens', 'api_calls'). Required for resource budgets. Omit for monetary budgets. |
| user_id | string | yes | Identifier for the user or agent session this budget belongs to. |
| velocity_max_amount_per_hour | number | — | Max total requestedQuantity per rolling 1-hour window. |
| velocity_max_per_day | number | — | Max authorize attempts per rolling 24-hour window. |
| velocity_max_per_minute | number | — | Max authorize attempts per rolling 1-minute window. Denied with VELOCITY_LIMIT_EXCEEDED when exceeded. |
No output schema declared.
No examples provided.
figuard_create_delegation_token ~181
Create a scoped delegation token for a fleet budget. Each sub-agent (e.g. per-customer refund agent) gets its own token with per-category spend caps. The sub-agent calls figuard_authorize with this token exactly as it would with a normal session token — FiGuard enforces both the per-token caps and the fleet-level allocations transparently. The session_token is returned once — hand it to the sub-agent immediately and store it securely.
| Name | Type | Req | Description |
|---|---|---|---|
| budget_id | string | yes | The fleet budget ID to delegate from. |
| caps | array | yes | Per-category spend caps for this sub-agent. Only listed categories are cap-enforced at the delegation level. Categories not listed pass through to the fleet allocation only. |
| label | string | yes | Human-readable label for this token, e.g. 'refund-agent-order-123'. |
No output schema declared.
No examples provided.
figuard_extend_budget ~169
Extend a budget's expiry window. Use this to keep a long-running agent alive past its original expiry. The new expiry must be later than the current one and at most 24 hours from now. Can be called repeatedly (e.g. extend by 2 hours every 2 hours for a 6-hour task). Returns 409 if the budget is CANCELLED or EXHAUSTED. Returns 400 if the new expiry is earlier than the current one.
| Name | Type | Req | Description |
|---|---|---|---|
| budget_id | string | yes | The budget ID to extend. |
| expires_at | string | — | Absolute ISO 8601 expiry timestamp. Mutually exclusive with expires_in. |
| expires_in | string | — | Relative duration from now (e.g. '2h', '30m'). Mutually exclusive with expires_at. |
No output schema declared.
No examples provided.
figuard_fail ~116
Mark an authorized spend as failed when the action did not succeed (e.g. payment processor declined, API error). This releases the reserved funds back to the budget so they can be used again.
| Name | Type | Req | Description |
|---|---|---|---|
| error_message | string | — | Optional human-readable error detail for the audit log. |
| event_id | string | yes | The event_id returned by figuard_authorize. |
| reason | string | yes | Short reason code for the failure (e.g. 'PAYMENT_DECLINED', 'API_ERROR', 'TOOL_ERROR'). |
No output schema declared.
No examples provided.
figuard_fund_budget ~191
Adjust a budget's totalLimit in-place without creating a new session. Use CREDIT to top up a nearly-exhausted budget mid-run, DEBIT to reduce it, RESET to set a new absolute limit, or RESET_SPENT to start a fresh billing period (zeroes quantitySpent and reactivates EXHAUSTED budgets). Returns the budget state before and after the operation.
| Name | Type | Req | Description |
|---|---|---|---|
| amount | number | yes | Amount to apply. Must be positive. |
| budget_id | string | yes | ID of the budget to fund. |
| operation | string | yes | CREDIT: add amount to totalLimit. DEBIT: subtract amount (rejected if result < quantitySpent). RESET: set totalLimit to exactly amount. RESET_SPENT: zero quantitySpent, set new totalLimit, reactivate… |
| reason | string | — | Optional note recorded in the response for audit purposes. |
No output schema declared.
No examples provided.
figuard_get_budget ~69
Get the current state of a budget — total limit, amount spent, amount reserved, amount available, status, and per-category allocations. Use this to check remaining budget before planning an agent's actions.
| Name | Type | Req | Description |
|---|---|---|---|
| budget_id | string | yes | The budget ID (starts with 'bgt_'). |
No output schema declared.
No examples provided.
figuard_get_delegation_token ~56
Get the current state of a delegation token — label, status, per-category cap usage. The raw session_token is never returned, only the prefix.
| Name | Type | Req | Description |
|---|---|---|---|
| token_id | string | yes | The delegation token ID. |
No output schema declared.
No examples provided.
figuard_get_ledger ~149
Query the authorization ledger for a budget — returns a paginated list of spend events (authorized, confirmed, denied, voided, failed). Use this to review what an agent has spent or to debug a denial.
| Name | Type | Req | Description |
|---|---|---|---|
| budget_id | string | yes | The budget ID (starts with 'bgt_'). |
| decision | string | — | Filter by event decision. Omit to return all events. |
| page | number | — | Page number, zero-indexed. Defaults to 0. |
| size | number | — | Events per page. Defaults to 20, max 100. |
| trace_id | string | — | Filter by trace ID to see only events from a specific agent run. |
No output schema declared.
No examples provided.
figuard_get_spend_tree ~80
Get the hierarchical spend tree for a budget — every event and its causal children (parent → child chains). Use to inspect what an agent (and its sub-agents) actually spent, including denied attempts. Returns roots and a total event count.
| Name | Type | Req | Description |
|---|---|---|---|
| budget_id | string | yes | The budget ID (starts with 'bgt_'). |
No output schema declared.
No examples provided.
figuard_resume_budget ~159
Resume a budget that was paused by anomaly detection or manually. A budget is paused when a spend request is statistically unusual (autoPauseOnAnomaly=true) or via PATCH /budgets/{id}. A human must review and provide an override reason before the budget can be used again. Requires override_reason explaining why the pause was reviewed and cleared.
| Name | Type | Req | Description |
|---|---|---|---|
| budget_id | string | yes | The budget ID (starts with 'bgt_'). |
| override_by | string | — | Optional identifier for the operator or system performing the override (e.g. 'ops-team', 'user_456'). |
| override_reason | string | yes | Required explanation for why the budget is being resumed (e.g. 'Reviewed — legitimate bulk purchase approved by ops team'). |
No output schema declared.
No examples provided.
figuard_revoke_delegation_token ~77
Revoke a delegation token immediately. Any subsequent figuard_authorize call using this token will be rejected with INVALID_SESSION_TOKEN. Already-authorized events are not affected. Fires DELEGATION_TOKEN_REVOKED webhook. Idempotent.
| Name | Type | Req | Description |
|---|---|---|---|
| token_id | string | yes | The delegation token ID to revoke. |
No output schema declared.
No examples provided.
figuard_update_budget ~234
Update an existing budget's settings: total limit, velocity caps, expiry, trust mode, or status. Use trust_mode='FULL_ENFORCEMENT' to leave shadow mode and start blocking, or 'SHADOW' to observe without blocking. For crediting/debiting funds with audit semantics, prefer figuard_fund_budget instead.
| Name | Type | Req | Description |
|---|---|---|---|
| budget_id | string | yes | The budget ID (starts with 'bgt_'). |
| expires_at | string | — | New absolute ISO 8601 expiry (e.g. '2026-12-31T23:59:59Z'). |
| status | string | — | Budget status override (advanced). |
| total_limit | number | — | New total spend limit. |
| trust_mode | string | — | 'SHADOW' (run all checks, block nothing) or 'FULL_ENFORCEMENT' (block denied spends). |
| velocity_max_amount_per_hour | number | — | New per-hour amount cap. |
| velocity_max_per_day | number | — | New per-day authorize cap. |
| velocity_max_per_minute | number | — | New per-minute authorize cap. |
No output schema declared.
No examples provided.
figuard_void ~118
Cancel an authorized reservation that was never used. Use this when the agent decides not to proceed with an action after authorizing it (e.g. user cancelled, better option found).
| Name | Type | Req | Description |
|---|---|---|---|
| event_id | string | yes | The event_id returned by figuard_authorize. |
| reason | string | yes | Short reason for voiding (e.g. 'USER_CANCELLED', 'BETTER_OPTION_FOUND', 'PLAN_CHANGED'). |
| void_child_events | boolean | — | When true, also void child events in the causal chain. Defaults to false. |
No output schema declared.
No examples provided.