Onexur Manager MCP

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

MCP server for Manager.io bookkeeping: read-first with opt-in scoped task and write tools

概览

AI 生成的概览

将 AI 助手连接到 Manager.io 记账实例,可读取账务数据、运行诊断与对账,并可选地执行受范围限制的写入操作。

可以做什么
读取和浏览 Manager 记录:列出资源与记录、获取单条记录和固定资产,并查看服务器身份与已启用的范围。运行报表快捷工具与重建报表:应收应付账龄、银行余额、试算平衡表、损益表、资产负债表、税务汇总、分类账交易及重建报表。运行诊断与对账:查找失效发票引用、未分配或重复交易、核对发票余额、查看账户分类账与银行活动、识别暂记账户候选并执行期间对账。提出并应用更正、重新分配和发票重建,需单独的确认步骤并写入审计日志。启用写入范围后可使用按意图设计的任务工具(如开票、收款、付款、记账凭证)以及按资源划分的创建、更新和删除工具。
适用场景
适合在 Manager.io 中记账、希望助手解释余额、查找未付发票、汇总账户活动、执行对账与诊断检查,或重建历史日期报表而无需编写脚本的场景。写入默认关闭,也适合只需要只读分析的用户。
运行要求
本地需 Python 3.10 及以上和 uv,通过 uvx 运行。需在 MANAGER_API_URL 中提供可访问的 Manager API 基础地址,并在 MANAGER_API_KEY 中提供 Manager 设置里创建的访问令牌(以 X-API-KEY 发送)。写入和删除权限须分别通过 MANAGER_MCP_WRITE_SCOPES 和 MANAGER_MCP_DELETE_SCOPES 开启。一个进程只连接一个 Manager 实例。
安装前请注意
API 密钥可访问真实账务数据,请勿提交到版本库。启用写入或删除范围后,助手可修改或删除记录,raw 范围会开放所有领域的创建与更新。重建报表并非 Manager 官方报表,涉及税务或增值税申报时不应替代官方报表。若自行以 HTTP 模式部署且未设置 MANAGER_MCP_HTTP_AUTH_TOKEN,任何能访问该主机和端口的客户端都可调用全部工具。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Onexur Manager MCP

An MCP (Model Context Protocol) server that connects AI assistants such as Claude and ChatGPT to a Manager accounting instance. It exposes Manager's data and operations as a set of scoped tools. The default is read-only, with reporting, diagnostic and reconciliation tools available out of the box and every write capability behind explicit configuration.

This project began as a fork of manager-mcp 0.2.6. See Attribution below.

1. Project description

Onexur Manager MCP lets an AI assistant read and, where explicitly permitted, act on a Manager accounting instance through a structured tool interface rather than free-form API calls. The server enforces a tiered permission model so that read access and write access are each opted into separately, and delete access is opted into separately again.

Typical uses:

  • Ask an assistant to explain a balance, find unpaid invoices, or summarise account activity.
  • Run reconciliation and diagnostic checks (duplicate transactions, unallocated payments, broken invoice references, suspense account candidates) without writing a script.
  • Rebuild a trial balance, profit and loss or aged balances as at a past date from Manager's ledger, clearly labelled as a reconstruction and not an official report.
  • Propose and, after review, apply corrections to specific transaction types, always through an explicit propose then apply pattern rather than a direct write.

Nothing that changes Manager is registered by default. Every write request is also checked against a permanent denylist before any scope is consulted (see Configuration).

2. Installation

The package is named mcp-manager.io, the Python module is manager_mcp, and the commands are manager-mcp and manager-mcp-dev. It requires Python 3.10 or later and uv.

Until the first release is published to PyPI, run it from a clone:

bash
git clone https://github.com/onexurOSS/mcp-manager.io.gitcd mcp-manager.iouv syncuv run manager-mcp

After publication, no clone is needed:

bash
uvx --from mcp-manager.io manager-mcp

The server speaks MCP over stdio. To use it from a client, configure the client to run one of the commands above with your Manager connection details as environment variables, for example:

json
{  "mcpServers": {    "manager": {      "command": "uvx",      "args": ["--from", "mcp-manager.io", "manager-mcp"],      "env": {        "MANAGER_API_URL": "http://127.0.0.1:55667/api2",        "MANAGER_API_KEY": "your-access-token"      }    }  }}

Client integrations in this repository:

  • mcpb/ holds the manifest for a Claude Desktop extension bundle. Built bundles are not committed. The manifest runs the published mcp-manager.io package through uv, so it works once the package is published.
  • .cursor-plugin/plugin.json is a Cursor plugin manifest.
  • For other clients, such as a .cursor/mcp.json or .vscode/mcp.json entry in your own project, use the pattern above.

ChatGPT Apps need a hosted HTTP endpoint. This package is stdio only.

3. Configuration

One process talks to one Manager instance, configured through environment variables:

VariablePurpose
MANAGER_API_URLBase URL of the Manager API, including /api2 when required. Required.
MANAGER_API_KEYAccess token created in Manager Settings, sent as X-API-KEY. Required.
MANAGER_MCP_WRITE_SCOPESComma-separated write scopes. Empty by default.
MANAGER_MCP_DELETE_SCOPESComma-separated delete scopes. Empty by default, and never implied by write scopes.
MANAGER_MCP_AUDIT_LOG_PATHWhere corrective writes are logged as JSON lines (before and after state). Defaults to ~/.manager_mcp/audit_log.jsonl.
MANAGER_MCP_DEV_SUPERVISORSet to 1 to restart the server automatically when source files change. Development use only.

The older MANAGER_MCP_ALLOW_WRITES, ALLOW_WRITES and MANAGER_MCP_WRITES variables are rejected with an error that points to the two scope variables above.

Never commit your API key. Keep it in the environment of the MCP client or in a private env file.

Transports

stdio is the default and the only transport a registry-launched (uvx) process uses. HTTP is additive and opt-in for self-hosted deployments that need this server reachable over a network rather than only through local stdio pipes:

VariablePurpose
MANAGER_MCP_TRANSPORTstdio (default) or http.
MANAGER_MCP_HTTP_HOSTBind host for HTTP mode. Defaults to loopback (127.0.0.1) when unset.
MANAGER_MCP_HTTP_PORTBind port for HTTP mode. Defaults to 8000 when unset.
MANAGER_MCP_HTTP_AUTH_TOKENOptional bearer token. When set, every HTTP request must carry a matching Authorization: Bearer <token> header or is rejected with 401 before it reaches any tool.

HTTP mode exposes the exact same tools, the exact same scope/policy enforcement, and the exact same single-Manager-instance-per-process model as stdio -- only the transport changes. It does not add multi-tenancy or multiple Manager instances per process; that belongs in a separate gateway service in front of this one.

Security note: MANAGER_MCP_HTTP_AUTH_TOKEN is a single shared secret for the whole process, checked at the transport layer -- it is not per-caller identity, OAuth, or a replacement for a real auth boundary. When it is unset, HTTP mode has no transport-level authentication at all: any client that can reach the configured host:port can call every tool this process exposes, subject only to the scope/denylist policy above (which governs what can be done, not who may connect). That is only safe when network placement -- loopback binding, a private Docker network, a VPN, or a gateway/reverse proxy that performs the real authentication -- is genuinely the sole access control. The server prints a warning to stderr at startup when running in HTTP mode with no token configured, rather than staying silent about it. Given this server can expose real bookkeeping data (and, depending on configured scopes, write/delete access to it), operators are strongly encouraged to set the token, place the server behind a gateway, or both.

Permission scopes

Valid scopes are quotes, orders, parties, items, sales, purchases, banking, payroll and ledger, plus raw, an escape hatch that enables the full create and update (or delete) set for every domain. A recommended starting point for day-to-day bookkeeping is banking,sales,parties.

With no scopes set, 30 read-only tools are registered. Enabling a scope registers only the tools for that domain. Scopes are additive and independent, and unknown scope names are refused at startup. With every write and delete scope enabled, up to 126 tools are registered.

Every request that would change Manager passes a policy check first. Requests to paths such as access tokens, the chart of accounts, tax codes, exchange rates, starting balances, bank reconciliation, custom fields, email settings and the customer portal are permanently denied, whatever scopes are enabled.

4. Tool descriptions

Read tools (registered by default, 30 in total)

  • Discovery and raw access: list_resources, list_records, get_record, get_fixed_asset and get_server_info (server identity, process, git state, registered tools and active scopes).
  • Legacy report shortcuts: aged_receivables, aged_payables, bank_balances, trial_balance, profit_and_loss, balance_sheet and tax_summary. These return Manager's current state or raw feeds and are not finished reports (see Reporting limitations).
  • Reporting layer (reporting.py): manager_report_catalogue, get_report_definition, ledger_transactions, reconstructed_trial_balance, reconstructed_profit_and_loss, reconstructed_aged_receivables and reconstructed_aged_payables.
  • Diagnostics (diagnostics.py): find_records, find_broken_invoice_references, find_unallocated_transactions, find_duplicate_transactions, verify_invoice_balance, account_ledger, bank_activity, find_suspense_candidate_accounts and general_ledger_summary.
  • Reconciliation (reconciliation.py): reconcile_period.
  • list_incomplete_reconstructions (corrections.py): invoice-reconstruction attempts that started but have not completed, from the local audit log only.

Write tools (registered only when the matching scope is enabled)

  • Task tools (task_tools.py) shaped around an intent, for example issue_sales_invoice, issue_purchase_invoice, record_customer_payment, record_supplier_payment, record_expense, transfer_between_accounts and post_journal_entry. These are the recommended write path.
  • Per-resource create_* and update_* tools for each enabled scope, and delete_* tools for each enabled delete scope. create_fixed_asset and update_fixed_asset (fixed_assets.py) need the ledger scope.
  • Corrections (corrections.py): propose_correction and apply_correction, propose_*_reconstruction and apply_*_reconstruction for purchase and sales invoices, reallocate_payment_line and reallocate_receipt_line, and snapshot_and_void, which is preferred over the plain void_document tool. Nothing here writes without a separate apply step after a proposal, and each corrective write is recorded in the audit log.

Descriptions and schemas for every registered tool are available from your MCP client, and get_server_info reports which are active.

5. Reporting limitations

Manager's API does not return finished reports. The report view routes are application only and answer HTTP 401 to an API key, and this project neither calls nor imitates them. The reporting tools work from what the API does return, and label what they return. The full guide is docs/reporting.md.

  • Reconstructions are never authoritative. reconstructed_trial_balance, reconstructed_profit_and_loss, reconstructed_aged_receivables and reconstructed_aged_payables are calculated by this server from Manager's account level ledger. Each result carries authoritative: false and official_manager_report: false, with its source, calculation method, as-at date and ledger completeness. A match with a figure in Manager does not make a reconstruction official.
  • Reconstructed ageing can differ from Manager's. Ageing here uses transaction dates and applies payments oldest first, whereas Manager uses due dates and actual allocations, so bucket splits can differ. Party totals are checked only against the control account total.
  • Current state tools reject dates. aged_receivables, aged_payables, bank_balances and tax_summary show balances as they are today. If you pass a date or period they refuse the request, and they never return today's figures for a past date.
  • Dates on the ledger are filtered here. Manager ignores date parameters on its /transactions ledger feed, so the server fetches the complete ledger and filters it itself. Results are never silently truncated. Paged results report totals and a next position, and feeds report whether they are complete.
  • Not available from the API: Manager's own group and subtotal layout, invoice due dates and allocations as at a past date, VAT returns, and finished report output.

Do not treat any reporting tool as a substitute for Manager's own reports where precision matters, for example VAT or tax filings.

6. Licensing

Onexur Manager MCP is distributed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).

This project incorporates material from manager-mcp 0.2.6, which remains licensed under the MIT License. Incorporating that material under this project's distribution does not transfer or extinguish the existing MIT rights and copyright in the upstream-derived portions; those rights remain in effect for recipients. See NOTICE for the full attribution statement and PROVENANCE.json for a file-level breakdown of which parts of this repository are upstream-derived (MIT) and which are original to Xalterra Ltd, trading as Onexur (AGPL-3.0-or-later).

A commercial license, covering use of Xalterra Ltd's Onexur-owned code without the obligations of the AGPL, is available. Contact [email protected] for terms.

The complete AGPL-3.0-or-later text is reproduced in LICENSE-AGPL, and the complete MIT License text is reproduced in LICENSE-MIT.

7. Attribution

This project incorporates material from manager-mcp 0.2.6, released under the MIT License, copyright (c) 2026 manager-mcp contributors.

A detailed, file-level breakdown of which parts of this repository are upstream-derived and which are original to Xalterra Ltd, trading as Onexur, is maintained in PROVENANCE.json, alongside a human-readable summary in PROVENANCE_SUMMARY.md. Historical upstream release notes (versions 0.1.0 through 0.2.6) are preserved unchanged in docs/upstream-history.md. Current release notes are in CHANGELOG.md.

The complete MIT License text is reproduced in LICENSE-MIT. See NOTICE for the full attribution statement.

8. Trademark disclaimer

"Manager" and any associated logos are trademarks of their respective owner. This project is an independent, third-party integration and is not affiliated with, endorsed by, or sponsored by Manager or its publisher. No Manager branding, logos, or proprietary API description material are distributed with this project.


Contributing

See CONTRIBUTING.md and CLA.md. Contributions to files identified in PROVENANCE.json as upstream-derived remain subject to the upstream MIT license; contributions to Onexur-original files are covered by the project's Contributor License Agreement (version 1.0), which you accept by posting a comment on your pull request, as CONTRIBUTING.md describes.

Further reading

来源:README.md,提交 666207b

工具

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

版本历史

2
  1. v1.1.0最新Sep 28, 2026
  2. v1.0.1Sep 27, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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