ActTrace

io.github.goww7由 GitHub 账号 goww7 发布v0.1.0更新于 Oct 24, 2026

Classify AI systems under the EU AI Act and generate Article 50 transparency notices.

发布方自己的服务:Halal Terminal

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

ActTrace 是一个本地 MCP 服务器,帮助开发者按欧盟《人工智能法案》对 AI 功能进行风险分类,并生成第 50 条透明度声明。

可以做什么
通过确定性规则引擎对 AI 功能进行欧盟《人工智能法案》风险分类,可使用 acttrace_classify 工具或 classify 接口,返回有文档说明的分类结果,另有无需密钥的免费诊断入口。为指定的 AI 系统生成可直接使用的第 50 条透明度声明,可选择声明类型和语气,通过 acttrace_generate_transparency_notice 工具或 notices 接口完成。每条响应都附带“非法律意见”免责声明,金融服务类用例被明确标记为超出范围。
适用场景
适合非金融类 SaaS 或科技公司的工程团队,用于快速、可重复地初步判断某个 AI 功能对应《人工智能法案》的哪类风险,并获得一份透明度声明草稿作为起点。它是工作流辅助工具,不能替代合格的法律审查。
运行要求
以 Python 包形式通过 uvx(acttrace-mcp)在本地以 stdio 运行,也可作为 Claude Code 插件使用;README 还描述了用 uvicorn 和 Docker 运行 API 服务。README 称 MCP 服务器离线运行且无需 API 密钥,而 HTTP 接口使用 X-API-Key 请求头并按令牌计费。
安装前请注意
输出明确不是法律意见,也不构成合规认证;分类结果和声明应视为需律师审阅的草稿。README 描述了 HTTP 接口的 API 密钥签发和令牌计费,金融服务类用例不在范围内。清单声明无身份验证和环境变量,与 README 中 X-API-Key 的描述不一致。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

ActTrace

A developer-facing EU AI Act compliance API for non-financial SaaS and technology companies. ActTrace gives an engineering team three things, self-serve, over an API or via MCP:

  1. A deterministic risk classification of an AI feature under the EU AI Act.
  2. A ready-to-ship Article 50 transparency notice.
  3. A free diagnostic as the public entry point.

Not legal advice. ActTrace provides operational compliance workflow support and documentation drafts. It does not provide legal advice, does not certify compliance, and does not replace review by qualified counsel. Every response carries this disclaimer.

ActTrace is scoped for non-financial companies. Financial-services use cases (banking, trading, portfolio/investment advice, credit scoring, …) are deliberately classified out_of_scope_financial_services.

Install — Claude Code plugin / MCP server

ActTrace ships as a Claude Code plugin: an acttrace skill plus a local MCP server. The MCP server runs via uvx — a deterministic rules engine, offline, no API key.

/plugin marketplace add goww7/acttrace/plugin install acttrace@acttrace

Then ask Claude "Is my chatbot EU AI Act compliant?" or "Write an Article 50 notice for our support assistant." The MCP server also runs standalone with any MCP client: uvx acttrace-mcp.

Quickstart

bash
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt.venv/bin/uvicorn acttrace.app:app --reload --port 8080
bash
# 1. Free diagnostic — no key neededcurl -s localhost:8080/api/acttrace/diagnostics/free -H 'content-type: application/json' -d '{  "feature_name": "AI reply assistant",  "description": "Drafts suggested customer support replies for agents.",  "user_facing": true, "model_provider": "OpenAI", "use_case": "support_assist"}'
# 2. Mint an API keyKEY=$(curl -s -XPOST localhost:8080/api/keys/generate | python3 -c 'import sys,json;print(json.load(sys.stdin)["api_key"])')
# 3. Classify (15 tokens)curl -s localhost:8080/api/acttrace/classify -H "X-API-Key: $KEY" -H 'content-type: application/json' -d '{  "feature_name": "AI reply assistant",  "description": "Drafts customer support replies shown to agents.",  "use_case": "support_assist", "user_facing": true, "model_provider": "OpenAI"}'
# 4. Generate an Article 50 notice (10 tokens)curl -s localhost:8080/api/acttrace/notices -H "X-API-Key: $KEY" -H 'content-type: application/json' -d '{  "ai_system_name": "Support Copilot", "notice_type": "chatbot", "tone": "plain"}'

Endpoints

Method & pathAuthTokensPurpose
POST /api/acttrace/diagnostics/freenone0Public risk diagnostic
POST /api/acttrace/classifykey15Documented risk classification
POST /api/acttrace/noticeskey10Article 50 transparency notice
POST /api/keys/generatenone0Issue a free-plan key
GET /api/healthnone0Liveness

Auth is X-API-Key. Responses carry X-Request-ID, X-Plan, X-Tokens-Charged, X-Tokens-Remaining, X-RateLimit-*. Errors are structured {"code","message","detail"} (401/403/429).

MCP

python -m acttrace.mcp_server --sse --port 8002 exposes two tools — acttrace_classify and acttrace_generate_transparency_notice — authenticated with the same X-API-Key. A Claude Code skill is in skill/acttrace/.

Tests

bash
.venv/bin/python -m pytest -q

54 tests: classification engine (7 acceptance fixtures), conflict guard, notice generator, and HTTP API contract.

Deploy

docker-compose.yml builds a standalone two-container stack (API + MCP) on ports 8080 / 8002 with its own volume — isolated from FinanceData2. To go live, append caddy-acttrace.snippet to the shared Caddyfile (replace the placeholder domain). See BLUEPRINT.md for the full build contract.

Layout

acttrace/  app.py config.py dependencies.py  middleware/   api_key_auth.py  routers/      acttrace.py  keys.py  services/     acttrace_service.py  acttrace_classification_service.py                acttrace_notice_service.py  acttrace_constants.py                api_key_service.py  repositories/ acttrace_repository.py  api_key_repository.py  schemas/      acttrace.py  mcp_server/   server.py  __main__.py  context.py  tools/acttrace.pyskill/acttrace/ SKILL.md  README.mdtests/

来源:README.md,提交 7ddd518

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

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

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Halalterminal 集成