ForgingStack Mandate Check

io.github.jdkabattles由 GitHub 账号 jdkabattles 发布v0.2.1更新于 Nov 4, 2026

Before your agent acts, check its mandate. One call, one receipt.

发布方自己的服务:check.tattoo: tattoo size and placement guide

已验证STDIO仅桌面安全与监控AI 与机器学习

概览

AI 生成的概览

将 AI 代理拟执行的操作与其授权范围(mandate)进行比对,返回通过/不通过的判定及哈希链收据。

可以做什么
  • 按授权范围检查代理拟执行的操作,返回通过或不通过的判定、原因与收据
  • 按 id 查询历史授权检查收据
  • 查询当前 API 密钥的剩余额度
  • 校验内容包括代理是否匹配、委托主体是否匹配、授权是否过期以及操作是否在允许列表内
适用场景
适用于代理在执行操作前需要确认该操作是否落在既定授权范围内,并希望留下可供日后审计的校验收据的场景。
运行要求
以 stdio 方式在本地运行,通过 uvx 从 PyPI 包启动。需要 FORGINGSTACK_API_KEY(需在托管服务注册获取),并能访问 API 基础地址(可用 FORGINGSTACK_API_BASE 配置)。检查消耗额度,注册赠送 100 点初始额度。
安装前请注意
每次检查消耗 1 点额度,判定为不通过也照常扣费,因此调用会产生费用;仅相同幂等键的重放免费。API 密钥在注册时只显示一次且仅以哈希保存,须立即妥善保存。判定逻辑、收据链与计费均在第三方托管服务上运行,授权数据与操作详情会发送至该服务。它只判断是否符合授权,不判断操作是否明智、合法或安全。

安装

在 SourceWeft 中

  1. 打开 控制台中的 ForgingStack Mandate Check,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

ForgingStack Mandate Check

Before your agent acts, check its mandate. One call, one receipt.

mcp-name: io.github.jdkabattles/forgingstack-mandate-check

This is the public client for Mandate Check. The service itself — the decision logic, the receipt chain, the key store, and billing — runs on ForgingStack's private service and is not in this repo. Copying this repo does not give you the service: you still need an API key and credits, from signup below.

Live API: https://forgingstack-mandate-check.jkbattles.workers.dev

What it checks, in order

  1. Mandate agent matches the calling agent
  2. Mandate principal matches the principal the agent acts for
  3. Mandate expiry is parseable and in the future
  4. Action is in the mandate's allowed actions

Pass or fail, you get a reason and a hash-chained receipt.

What it does not do: decide if an action is wise, legal, or safe. Mandate fit only.

Signup (v1)

bash
curl -X POST https://forgingstack-mandate-check.jkbattles.workers.dev/v1/signup \  -H "Content-Type: application/json" \  -d '{"email":"[email protected]"}'

Returns an API key once and 100 starter credits. Save the key immediately — it is stored only as a hash and cannot be shown again. Email verification is pending, and credit-pack billing is not live yet, so do not expect a purchase flow in v1.

Agent sub-keys

A signed-up human creates a key for each agent, capped and revocable:

bash
curl -X POST https://forgingstack-mandate-check.jkbattles.workers.dev/v1/keys \  -H "X-API-Key: YOUR_PRIMARY_KEY" -H "Content-Type: application/json" \  -d '{"agent_name":"my-agent","credits":20}'

List with GET /v1/keys, revoke with DELETE /v1/keys/{id} — revoking returns unused credits to the primary account.

Use it (MCP, stdio)

Set the key, then run the MCP server in this repo:

bash
export FORGINGSTACK_API_KEY="your-key-here"python -m app.mcp_server

Tools: check_mandate, get_credits, get_receipt. See SKILL.md for when to use it and when not to.

Price

1 credit per check call. A failed decision still costs 1 credit — the check was performed. An idempotent replay (same Idempotency-Key) is free and returns the original receipt.

Files in this repo

  • app/mcp_server.py — MCP wrapper client (stdio, stdlib only)
  • SKILL.md — when to use it, how to read pass/fail
  • agent-card.json — A2A-style discovery card
  • server.json — MCP Registry metadata (draft until PyPI publish)
  • pyproject.toml — package metadata for the MCP client

来源:README.md,提交 315cc45

工具

3

check_mandate

Check an agent action against its mandate. Returns a pass/fail decision and a receipt. Costs 1 credit per call; an idempotency key replay is free.

输入参数action必填mandate必填agent_id必填principal必填idempotency_key

get_credits

Remaining credit balance for the configured API key.

无需输入参数。

get_receipt

Fetch a past mandate-check receipt by id.

输入参数receipt_id必填

版本历史

1
  1. v0.2.1最新Nov 4, 2026

评分

已满足适用检查项的 80%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Check 集成