Achlens

io.github.mscott9160-web由 GitHub 帳號 mscott9160-web 發布v0.1.2更新於 Oct 24, 2026

Local-first MCP server and CLI for validating and generating synthetic ACH files.

已驗證STDIO僅桌面金融開發者工具

概覽

AI 產生的概覽

本地優先的 MCP 伺服器與命令列工具,用來驗證、解說、遮罩並產生合成 ACH 檔案,不會進行任何銀行或網路呼叫。

可以做什麼
  • 驗證 ACH 檔案並彙整其內容
  • 分頁檢視解析後的定長記錄,解說控制總計與路由檢查結果
  • 查詢 ACH 代碼,並預設遮罩敏感欄位
  • 依種子產生可重現的合成 ACH 測試檔案
  • 修復檔案中衍生的控制值
適用情境
適合在處理 ACH 付款檔案格式時,讓助理檢查結構與控制總計、解說驗證結果,或產生可重現的合成測試資料。著重開發與測試,而非真實付款處理。
執行需求
以本機 Python 程序透過 stdio 執行,可用 uvx(或 pip)從 PyPI 安裝。未宣告帳號、API 金鑰或環境變數。若要讓伺服器依路徑讀取檔案,需設定 ACHLENS_ALLOWED_ROOTS,否則須直接傳入檔案內容。
安裝前請注意
僅限合成資料使用;專案聲明本身不是銀行閘道、法遵顧問或傳輸系統。敏感欄位預設會遮罩,但仍應避免輸入真實帳號或付款資料。控制值修復與產生會寫出檔案內容,使用前請先檢視輸出。依路徑存取受 ACHLENS_ALLOWED_ROOTS 限制。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Achlens,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Achlens

[PyPI] [Python] [License] [CI]

Achlens is a local-first Python MCP server and CLI for inspecting synthetic ACH files. It parses fixed-width records, validates structure and control totals, explains findings, masks sensitive fields, repairs derived controls, and generates deterministic test files. It never transmits ACH files or makes bank/network calls.

Use synthetic data only. This project is not a bank gateway, compliance advisor, or transmission system.

Quick Start

text
uv syncuv run achlens --helpuv run achlens validate tests/fixtures/golden/sample_valid.achuv run achlens generate --sec PPD --entries 5 --seed 7 > synthetic.ach

In Windows PowerShell, use an explicit ASCII encoding because PowerShell's default > redirection can write UTF-16 output that is not valid ACH text:

powershell
uvx achlens generate --sec PPD --entries 5 --seed 7 |	Set-Content -Encoding ascii synthetic.ach

Run the MCP server over stdio:

text
uv run achlens serve

MCP Client Setup

Install the published package with uvx; it starts the server locally over stdio and does not transmit ACH files.

VS Code and Copilot

Create .vscode/mcp.json in your workspace:

json
{  "servers": {    "achlens": {      "type": "stdio",      "command": "uvx",      "args": ["achlens"]    }  }}

Claude Desktop

Add the following entry to the mcpServers object in Claude Desktop's MCP configuration:

json
{  "achlens": {    "command": "uvx",    "args": ["achlens"]  }}

By default, MCP tools accept ACH content directly but cannot read local paths. To allow read-only access to a specific directory, set ACHLENS_ALLOWED_ROOTS in the server environment to that directory. Use synthetic ACH data only.

The MCP server exposes validation, summaries, parsed-record paging, control explanations, routing checks, code lookup, synthetic generation, and control repair. See docs/tools.md for the current tool surface.

Sensitive fields are masked by default. Configure ACHLENS_ALLOWED_ROOTS to enable MCP path inputs; otherwise provide file content directly. See SECURITY.md for the data and write boundaries.

Development

This project uses uv.

text
uv syncuv run achlens --helpPYTHONPATH=. uv run pytest -quv run ruff check .uv run ruff format --check .uv run mypy --strict src

Without uv

The CLI and test suite also work with plain pip:

text
pip install -e . pytestachlens --helpachlens validate tests/fixtures/golden/sample_valid.achachlens generate --sec PPD --entries 5 --seed 7PYTHONPATH=. pytest

Set PYTHONPATH=. from the repository root when running tests so fixture and script imports resolve. In Windows PowerShell, use $env:PYTHONPATH = "."; pytest.

Never add real payment data, account numbers, or ACH files to this repository.

來源:README.md,提交 2887fbd

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。