跳过安装。2 分钟内即可运行。
在 cloud.anythingmcp.com 开始免费试用,一键添加 Rivile GAMA,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。
摘要
通过 Rivile API v2 将立陶宛 ERP 与会计系统 Rivile GAMA 连接到 Claude 或 ChatGPT:往来单位、商品、库存余额和价格、采购与销售单据、欠款和付款、科目余额和科目表,支持 T-SQL 筛选。编辑功能在安装时关闭。
试试这样问
Rivile GAMA 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Rivile GAMA、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Rivile GAMA + Meta Muse
通过 Rivile API v2 将立陶宛 ERP 与会计系统 Rivile GAMA 连接到 Claude 或 ChatGPT:往来单位、商品、库存余额和价格、采购与销售单据、欠款和付款、科目余额和科目表,支持 T-SQL 筛选。编辑功能在安装时关闭。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
RIVILE_API_KEY
步骤 1 — 获取凭证
在 Rivile 为你开通 API v2 之后,设置连接器只需几分钟。你需要 Rivile GAMA 119 或更高版本、与 Rivile 签订的 API 访问协议、在 GAMA 数据库旁运行的 Manorivile-Gateway,以及 Rivile 随服务发放的 API 密钥。
- 确认 Manorivile-Gateway 已安装在能访问你的 GAMA 数据库的电脑或服务器上。它由你的 Rivile 合作伙伴安装,必须保持运行,否则所有调用都会失败。
- 把 Rivile 给你的 API 密钥原样粘贴到
RIVILE_API_KEY,不要加引号或空格。格式是用户名、点、密钥,例如XW3CDDX.Bfnjvrurjygzuj...。 - 安装连接器并运行
rivile_list_divisions:它会列出你的部门(padaliniai),说明密钥和网关都能正常工作。
密钥以 GAMA 用户的身份工作:点前面的部分就是 API 所代表的 Rivile GAMA 用户,所以 AI 能看到的就是该用户能看到的。此外,Rivile 会在 API 协议中按密钥开通方法:未开通的方法会返回 "neturi leidimo vykdyti metodą" 的提示。
每次调用都可能被 Rivile 计费:Rivile 按请求次数对 API 计费。因此 AI 更倾向于一次精确筛选的调用,而不是翻很多页;需要更多数据时,它按最后一条记录的键继续筛选,而不是一直往后翻页。
Rivile 的命名方式:表名由一个字母加两位数字组成(N08 往来单位,N17 商品和服务,I06 采购与销售单据,明细为 I07),字段名是表代码加后缀:N08_KODAS_KS 就是 N08 表中的往来单位代码。筛选条件是不带 WHERE 的 T-SQL 条件,例如 n08_pav like '%ACME%',或单据日期介于两个 YYYY-MM-DD 日期之间。代码使用大写,小数用点号。
可读取的内容:往来单位卡片(客户和供应商都在其中),含代码、增值税号、地址和付款条件;商品和服务卡片;按商品、部门、对象和批次统计的库存余额,包括已预留数量;各部门的价格;带明细的采购与销售单据,也可关联部门、往来单位和商品字段;调拨、报废等内部业务;按单据列出的欠款及到期日(最适合做逾期清单)以及每个往来单位的欠款合计;借贷业务;银行和现金收付款及其核销的单据;收付款登记簿;总账分录以及某期间的科目余额和发生额;科目表、对象、采购与销售代码、增值税分类(PVM klasifikatoriai)、币种、合同以及导入导出批次。rivile_call_read_method 可调用任何其他读取方法,例如价目表、计量单位、固定资产、CRM 或员工。
安装时关闭:rivile_edit_client、rivile_edit_product、rivile_edit_document 和 rivile_create_document。每次调用在 Rivile GAMA 中新建、修改或删除一条记录,rivile_create_document 则会把一整张带明细的采购或销售单据记入账簿。管理者只开启需要的工具,即便开启后,AI 也会先给你看往来单位、明细和合计,等你确认。
限制:每个列表最多返回 100 条记录,不加筛选时单据的第一页是最新的单据。Rivile 允许每个密钥每秒 10 次请求;遇到 429 时,AI 至少等待一秒。
常见错误:401 表示 API 密钥错误或已过期。502 表示 Manorivile-Gateway 没有运行或无法连接数据库。504 表示数据库响应太慢:请缩小筛选范围。400 会连同数据库的提示指出出错的字段或筛选条件,或者说明该密钥无权执行这个方法。
该连接器没有付款、POS、礼品卡或工资的写入工具,也没有任何工具会动用资金。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Muse 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Muse 以自定义连接器的形式添加远程 MCP 服务器,并通过 OAuth 登录。
- 在 Muse 中打开 Settings → Connectors,选择 Add custom connector。
- 粘贴 MCP 服务器 URL
https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。 - Muse 会打开 AnythingMCP 的登录页面:登录并批准访问。
- 在聊天中,向 Muse 提出需要用到
Rivile GAMA的工具的请求。
你也可以在聊天中完成设置,适用于网页版、iOS 和 Android 应用以及 WhatsApp。给 Muse 发送这条消息:
Create a Custom Connector for a new remote MCP server, then connect to it:
Name: AnythingMCP
Transport: remote streamable HTTP
URL: https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID
Auth: OAuth
自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Muse 从 Meta 的云端连接,因此 localhost 无法使用。
可用工具
| Tool | What it does |
|---|---|
rivile_list_clients | List clients (N08 client cards: customers and suppliers alike) with code, name, company and VAT codes, address, payment terms and type… |
rivile_list_products | List product and service cards (N17) with code, name, type (N17_TIPAS 1 product, 2 service), group, units and VAT |
rivile_list_stock_balances | List stock balances (I17): quantity, reserved quantity and value per product, unit, division (warehouse), object and series |
rivile_list_product_prices | List product prices per division (I33): sales prices, price lists and validity dates |
rivile_list_documents | List purchase and sales documents (I06 headers): invoices, receipts and returns with type (I06_OP_TIP), number, dates, client, amounts, VAT… |
rivile_list_documents_extended | List purchase and sales documents with division, client and product fields joined in (GET_I06_LIST_EXT), for sales by division, client or… |
rivile_list_document_debts | List what is still owed on purchase and sales documents not yet transferred (GET_I06_DEBT): client, document number, currency, debit and… |
rivile_list_internal_operations | List internal operations (I09 headers with I10 lines): stock transfers between divisions, write-offs and other internal documents |
rivile_list_debt_operations | List debit and credit operations (I31): offsets, debt transfers and other settlements between clients that are not invoices or payments |
rivile_list_debts_detailed | List detailed debts by document (I44): client, document number, document and due dates, debit and credit, currency and module (I44_MODUL… |
rivile_list_debts_summary | List debt balances (T03): how much each client owes or is owed in total |
rivile_list_payment_operations | List payment operations (I53): bank and cash payments and receipts with their lines and the documents they settle |
rivile_list_receipts_payments_register | List the register of receipts and payments (I04): incoming and outgoing money per date, client and account |
rivile_list_ledger_operations | List general ledger operations (I02 journal entries with their lines) |
rivile_get_account_balances | Get general ledger account balances and turnover for a period (GET_I02_LIST_EXT), optionally summed by account, division, object or… |
rivile_list_chart_of_accounts | List the chart of accounts (N01): account codes, names and types |
rivile_list_divisions | List divisions (N07, padaliniai): warehouses, shops and departments that hold stock and prices |
rivile_list_objects | List objects (N06): cost centres or projects used to split documents and postings |
rivile_list_purchase_sales_codes | List purchase, sales and other codes (N25): service and cost codes used on document lines instead of products |
rivile_list_vat_classifiers | List VAT classifiers (N63, PVM klasifikatoriai) used on documents and for the i.SAF and VAT return |
rivile_list_currencies | List currencies (N45) and their codes as used on documents and debts |
rivile_list_contracts | List contracts (N51) with client, dates, amounts and terms |
rivile_list_import_export_operations | List import and export operations (B00): batches loaded into or exported from Rivile GAMA and their state |
rivile_call_read_method | Call any other read method of the Rivile GAMA API by name (any GET_ method, or an MGAMA_GET_ method of the HR module), for data no… |
rivile_edit_client | Create, update or delete a client card (EDIT_N08) |
rivile_edit_product | Create, update or delete a product or service card (EDIT_N17) |
rivile_edit_document | Update or delete the header of a purchase or sales document (EDIT_I06), or create one without lines |
rivile_create_document | Create a purchase or sales document with its lines in one call (EDIT_I06_FULL): header I06 with lines I07 |
示例提示
- “哪些往来单位的欠款已逾期超过 30 天?每家各欠多少?”
- “商品 10045 在每个部门各有多少库存?其中多少已被预留?”
- “给我看本月 UAB Statybų centras 的销售单据,包括合计和增值税。”
- “给我 9 月各总账科目的余额和发生额,按科目汇总。”
- “上周收到了哪些付款?它们各核销了哪些发票?”
FAQ
Muse 在哪些地区可用? Meta 目前在美国和加拿大提供 Muse,可在网页版、iOS 和 Android 应用以及 WhatsApp 中使用。
Meta 会审核这个连接器吗? 不会。Meta 不审核自定义连接器。Muse 只能看到你在 AnythingMCP 中为此 MCP 服务器启用的工具,你也可以随时在 Settings → Connectors 中断开它。
下一步
这份指南对你有帮助吗?