Enterich

dev.interlusion由 interlusion.dev 發布v0.4.0更新於 Nov 7, 2026

A service for ERPNext accounting behind OAuth: fixed tools, drafts only, one agent user's rights

概覽

AI 產生的概覽

以 OAuth 保護的 ERPNext 會計 MCP 伺服器:提供固定的讀取與僅草稿工具,權限限於單一 ERPNext 代理使用者。

可以做什麼
  • 列出並讀取物料等主檔資料以及客戶、供應商
  • 列出並讀取銷貨發票、進貨發票、稅務範本、應收與應付
  • 列出並讀取會計科目、成本中心、日記帳分錄、總帳與試算表
  • 列出並讀取銀行帳戶、銀行交易與付款單
  • 建立和更新銷貨發票、銷貨退回、進貨發票、進貨退回、日記帳分錄與付款單的草稿
適用情境
適合讓助理查詢 ERPNext 會計資料,或準備草稿單據交由人員審核並送出,而不必給它通用的 ERPNext API 橋接或過帳權限。
執行需求
以本機服務方式執行(容器映像,Streamable HTTP),僅限桌面。需要 ERPNext 站台網址、公開網址、公司名稱,以及 ERPNext 代理使用者的 API key 與 secret(ENTERICH_ERPNEXT_API_KEY、ENTERICH_ERPNEXT_API_SECRET)。另需外部 OAuth 授權伺服器:issuer、JWKS 網址、client ID、subject、resource URL,以及選用的 scope 與簽章演算法。
安裝前請注意
需要專用代理使用者的 ERPNext API key 與 secret,該使用者在 ERPNext 中的角色決定伺服器能力上限。它會建立和更新草稿單據,送出前應在 ERPNext 中由人員審核。存取權杖由外部授權伺服器驗證;ENTERICH_MAX_DRAFTS_PER_HOUR 預設未設定,即不限制草稿數量。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

[Enterich's logo: a drake in a cap, holding a microphone, with an MCP chain]

Enterich

An MCP server for ERPNext with hard limits: a short, fixed list of tools, tokens from an external OAuth authorization server, and only the rights of one ERPNext user.

Status: Every operation is tested against a model of ERPNext v16's API, and weekly against a real ERPNext v16 site. The changelog lists the releases.

What it is

  • A separate service, not a Frappe app. It calls ERPNext's REST API with the API key of a dedicated agent user and holds no other ERPNext credential. Whatever the service does, ERPNext's role for that user is the upper limit.
  • A resource server for the MCP authorization spec. It serves the protected resource metadata, answers a missing token with 401, and checks every access token itself (issuer, audience, client, subject). Sign-in happens at an external authorization server such as Keycloak.
  • A fixed list of operations, each with its own purpose and input schema, read and write separated. No generic document access, method calls or file access.
  • Client-neutral. It speaks plain MCP (Streamable HTTP) and doesn't rely on any client asking before a write.

What it is not

  • Not a general ERPNext API bridge: tools that take a DocType, report name, method name, field list, filter expression or file path as input are out of scope.
  • Not a way to post: no tool submits, cancels, amends, deletes or discards a document. The agent prepares drafts; a person reviews and submits them in ERPNext (reviewing drafts).
  • Not affiliated with or endorsed by Frappe Technologies. ERPNext and Frappe are their trademarks.

Tools

Enterich offers 37 tools. A deployment may offer fewer (ENTERICH_TOOLS); every tool works on one company, within the rights ERPNext gives the agent user.

Master data (REQ-003)

Items.

ToolTitleKind
list_itemsList itemsread
get_itemGet itemread

Order to cash (REQ-004)

Customers, sales invoices, receivables.

ToolTitleKind
list_customersList customersread
get_customerGet customerread
list_sales_invoicesList sales invoicesread
get_sales_invoiceGet sales invoiceread
list_sales_tax_templatesList sales tax templatesread
report_accounts_receivableAccounts receivableread
create_draft_sales_invoiceCreate draft sales invoicecreate draft
update_draft_sales_invoiceUpdate draft sales invoiceupdate draft
create_draft_sales_returnCreate draft sales returncreate draft
update_draft_sales_returnUpdate draft sales returnupdate draft

Procure to pay (REQ-005)

Suppliers, purchase invoices, payables.

ToolTitleKind
list_suppliersList suppliersread
get_supplierGet supplierread
list_purchase_invoicesList purchase invoicesread
get_purchase_invoiceGet purchase invoiceread
list_purchase_tax_templatesList purchase tax templatesread
report_accounts_payableAccounts payableread
create_draft_purchase_invoiceCreate draft purchase invoicecreate draft
update_draft_purchase_invoiceUpdate draft purchase invoiceupdate draft
create_draft_purchase_returnCreate draft purchase returncreate draft
update_draft_purchase_returnUpdate draft purchase returnupdate draft

Record to report (REQ-006)

Accounts, cost centres, journal entries, ledger, trial balance.

ToolTitleKind
list_accountsList accountsread
list_cost_centersList cost centresread
list_journal_entriesList journal entriesread
get_journal_entryGet journal entryread
report_general_ledgerGeneral ledgerread
report_trial_balanceTrial balanceread
create_draft_journal_entryCreate draft journal entrycreate draft
update_draft_journal_entryUpdate draft journal entryupdate draft

Bank and cash (REQ-007)

Bank accounts, bank transactions, payments.

ToolTitleKind
list_bank_accountsList bank accountsread
list_bank_transactionsList bank transactionsread
get_bank_transactionGet bank transactionread
list_payment_entriesList payment entriesread
get_payment_entryGet payment entryread
create_draft_payment_entryCreate draft payment entrycreate draft
update_draft_payment_entryUpdate draft payment entryupdate draft

Scope

Enterich is maintained for our own use. Contributions are welcome (contributing); support isn't promised. Report vulnerabilities privately, as the security policy describes.

Documentation

Start at docs/README.md. The most important parts:

Licence

Apache-2.0. Why: ADR-006.

來源:README.md,提交 0ff4da7

工具

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

版本歷史

3
  1. v0.4.0最新Nov 7, 2026
  2. v0.3.0Nov 3, 2026
  3. v0.2.1Nov 1, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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