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 整合