
Mcp Installation
com.proabono由 proabono.com 發布v0.4.0更新於 Oct 25, 2026
Installs ProAbono into a website from the IDE: hosted pages, rights sync, catalogue, billing.
概覽
一個本機 MCP 伺服器,協助程式助理把 ProAbono 計費整合進網站:託管頁面、訂閱流程、用量權益、Webhook 與 API 參考。
- 可以做什麼
- 檢索 ProAbono 文件與 API 契約,取得端點參數與結構,並依指定語言產生整合程式碼。
- 適用情境
- 當你正在程式碼庫中整合 ProAbono In-Site,希望助理產生客戶入口、訂閱流程、用量同步與通知端點的程式碼並驗證結果時使用。也適合讀取自己的方案目錄、客戶、訂閱、用量與發票,以及依據真實契約回答 API 問題。
- 執行需求
- 需要 Node.js 20 或更新版本,透過 npx 以 stdio 在本機執行。必須提供七個環境變數,缺少任一項伺服器會拒絕啟動:PROABONO_API_BASE、PROABONO_BUSINESS_ID、PROABONO_SEGMENT_REF、PROABONO_AGENT_KEY、PROABONO_API_KEY、PROABONO_PORTAL_SECRET 與 PROABONO_WEBHOOK_SECRET。需要能連線至 ProAbono API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Installation,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
ProAbono MCP Installation
A local MCP server that installs ProAbono into your site, from your IDE.
It gives your coding assistant the ProAbono documentation, the API Live contract and your own ProAbono configuration, so it can run the In-Site installation with you end to end, generate integration code already filled in with your real business identifier, Segment, offers and Features, read your account back to verify the result, and answer API questions from the real contract instead of guessing.
It runs locally, over stdio, against whatever account your credentials open. It has no environment concept of its own: your credentials are the only boundary.
Install
Claude Code
VS Code
In .vscode/mcp.json:
Cursor
In .cursor/mcp.json (or ~/.cursor/mcp.json for every project):
Requires Node.js 20 or later.
Configuration
The server reads seven environment variables and nothing else. It refuses to start if any is missing, naming the ones it needs.
All seven are in your ProAbono BackOffice, on one page: Integration → MCP. PROABONO_API_BASE must begin with https://, and PROABONO_BUSINESS_ID must be digits only.
Put them in the env block of your MCP client entry, in a file git ignores. That keeps each set of seven attached to one project and one ProAbono account — which is what you need once you have two sets, since sandbox and production are two accounts with different endpoints, identifiers and keys. Declare one entry per account, for example proabono-sandbox and proabono-production, each with its own env.
.vscode/mcp.jsonand.cursor/mcp.jsonsit inside your repository: add them to.gitignorebefore pasting a value into them. Cursor also reads~/.cursor/mcp.json, outside every repository.- Claude Code:
--scope userkeeps the entry outside the repository. A project.mcp.jsonis normally committed, so write${PROABONO_API_KEY}and the other six there instead of the values — Claude Code expands them from your environment. - VS Code can also prompt for a value through the
inputssection ofmcp.json, which keeps it out of the file. - Avoid shell exports: they hold one set per shell and per machine, and hand your production keys to every project you open.
- The server does not read a
.envfile. It reads its process environment only.
No value you supply is ever logged, returned by a tool, put in an error message, or inlined into generated code. Generated code references the variable names.
First prompt
With the server added and the seven variables set, open your project and paste this into your assistant:
When it works, step 1 answers with the server version and a configuration whose status is complete, listing the seven variable names — never a value. If the ProAbono tools are not there at all, the server refused to start: a variable is missing, and the error naming it is in your MCP client's log. get_server_info never reports an incomplete configuration, because the server does not start on one.
The generators return code and edit none of your files; your assistant places it. The one file the server writes is .proabono/installation.json, the installation state: it carries no credential, is meant to be committed so a later session resumes where this one stopped, and is not written when a tool is called with record_state: false.
Point your keys at a Sandbox account to run this. verify_insite_installation makes sure the customer it verifies against exists — it creates one under an mcp-verify- reference when you name none — and the tools that usually come next — create_update_customer, create_subscription, the Usage writes, bill_customer — create real data in whatever account your credentials open.
Example prompts
Once the installation is under way, these are the questions a developer asks next. Your assistant picks the tools; the second column is the ones it usually reaches for.
What it covers today
The version you installed is in CHANGELOG.md, and get_server_info reports it:
- The three In-Site steps, end to end: the Customer Portal embed with its security hash, the Subscription Workflow round trip, and the Usage synchronization with its cache, its gate and its resynchronization.
- The notification endpoint, with signature verification, deduplication and the BackOffice procedure that activates it.
- Verification: steps 2 and 3 exercised against your account, the go-live rules checked against your own files, and the twelve-item checklist.
- Catalogue and account introspection: offers, Features, customers, subscriptions, Usages, invoices.
- Writes across the lifecycle: customers and their settings, billing addresses, subscriptions and each of their four transitions, Usage writes for all three Feature types, balance lines and billing.
- Documentation and API reference: natural-language search over the ProAbono corpus and the API Live contract.
Not in it, and planned: advanced In-Site options — CSS customization of the hosted pages, and further specific workflows.
Widget and plug-in installations (WordPress and similar) are out of scope by design: this server installs ProAbono In-Site, by code, whatever your stack would lend itself to.
Offers, Features, webhooks, pricing pages and the workflow redirect URL are configured in your ProAbono BackOffice, and the API cannot create them: the server reads them, names what is missing, and gives you the BackOffice path.
Tools
Writes marks a tool that changes data in the account your credentials open. It runs as soon as your assistant calls it, with no confirmation step: your credentials are the only boundary.
Documentation
Installation
Code generation
Catalogue
Customers
Subscriptions
Usage and rights
Invoicing and balance
Server
No tool in this server destroys billing history: deleting a customer, a subscription or an invoice is out of scope in any account, and ProAbono's customer-suspension, invalidation and link-revocation endpoints exist and are deliberately not exposed. anonymize_customer is the one tool whose effect cannot be undone, and it is not a destruction — it erases personal data and keeps the invoices and the subscription history, which is what a GDPR erasure asks of a billing system.
Troubleshooting
Building from source
The published package is self-contained: the ProAbono API contract and documentation are copied into dist/resources/ at build time, so nothing is fetched at run time.
A clone builds the same way, with no credential and no access to anything of ours:
Both sources the build vendors live in this repository, under resources/: the API Live contract in resources/open-api/ and the documentation corpus in resources/docs/. The contract is a copy of the one ProAbono maintains internally. npm run build and npm test refresh it from there when that source is reachable, and use the committed copy when it is not — which is the case in CI and in any clone of this repository — and say which on every run. See resources/open-api/index.md.
Support
Issues and questions: [email protected].
When reporting a problem, include the output of get_server_info — it reports the server version and which variables are configured, and never their values.
Beyond this server:
Licence
MIT. See LICENSE.
來源:README.md,提交 7efb549
工具
0版本歷史
2- v0.4.0最新Sep 30, 2026
- v0.1.0Sep 18, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分