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.

概覽

AI 產生的概覽

一個本機 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 的網路。
安裝前請注意
七個變數中有四個是密鑰(PROABONO_AGENT_KEY、PROABONO_API_KEY、PROABONO_PORTAL_SECRET、PROABONO_WEBHOOK_SECRET),不要寫進會被提交的檔案,建議先使用沙箱帳戶。許多工具未經確認即寫入真實資料,包括客戶新增或更新、訂閱、用量回報、餘額項目與開立發票。anonymize_customer 無法復原。verify_insite_installation 可能會建立測試客戶。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

ProAbono MCP Installation

[npm] [Licence]

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

bash
claude mcp add --transport stdio proabono --scope user -- npx -y @proabono/mcp-installation

VS Code

In .vscode/mcp.json:

json
{  "servers": {    "proabono": {      "type": "stdio",      "command": "npx",      "args": ["-y", "@proabono/mcp-installation"]    }  }}

Cursor

In .cursor/mcp.json (or ~/.cursor/mcp.json for every project):

json
{  "mcpServers": {    "proabono": {      "command": "npx",      "args": ["-y", "@proabono/mcp-installation"]    }  }}

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.

VariableHolds
PROABONO_API_BASEThe API endpoint, https://api-{business_id}.proabono.com
PROABONO_BUSINESS_IDYour numeric business identifier
PROABONO_SEGMENT_REFThe Segment your customers and offers belong to
PROABONO_AGENT_KEYBasic auth username
PROABONO_API_KEYBasic auth password
PROABONO_PORTAL_SECRETHMAC key for the portal security hash
PROABONO_WEBHOOK_SECRETSecret for the notification signature

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.json and .cursor/mcp.json sit inside your repository: add them to .gitignore before pasting a value into them. Cursor also reads ~/.cursor/mcp.json, outside every repository.
  • Claude Code: --scope user keeps the entry outside the repository. A project .mcp.json is 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 inputs section of mcp.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 .env file. 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:

text
Help me install ProAbono in this project.
1. Call get_server_info to confirm the server is reachable, and tell me which version you are talking to.2. Call installation_status to see whether an installation was already started here.3. Run install_insite: tell me which stack you detected and why, check the prerequisites with me, then take me through the three In-Site steps and the notification endpoint in order, placing the generated code where my signed-in user is known.4. List what I still have to do by hand in the ProAbono BackOffice.5. When the code is in place, run verify_insite_installation and walk me through the go-live checklist.
Answer every question about the ProAbono API from search_documentation and get_api_reference, never from memory.

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.

You askTools it usually triggers
"Which offers does my Segment expose, and which Features do they carry?"list_offers, list_features
"Generate a pricing table over my real offers for this page, identified so a signed-in customer can subscribe in place."generate_pricing_table
"Someone else started the ProAbono installation in this project. Where does it stand, and what is left in the BackOffice?"installation_status
"Wire the notification endpoint into this app, and tell me how to activate it in the BackOffice."scaffold_notification_endpoint
"Plan the portal lifecycle for me: upgrade, downgrade, dunning."plan_integration
"Create a customer, subscribe them to my first offer, and show me their Usages."create_update_customer, create_subscription, get_usages
"What would it cost this customer to go from 5 to 10 seats, and is it allowed?"quote_usage_change
"Which endpoint lists a customer's invoices, and what does it return? Write the call in Go."search_documentation, get_api_reference, generate_integration_code

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

ToolWhat it doesWrites
search_documentationNatural-language search across the ProAbono documentation and the API Live contract.
get_api_referenceParameters and schema for a given endpoint or object.

Installation

ToolWhat it doesWrites
install_insiteThe whole In-Site installation, end to end: stack detection, the prerequisites gate, the three steps in order, and the progress recorded in .proabono/installation.json.
installation_statusWhere the installation stands: what is done, what was generated where, what is pending in the BackOffice, what was skipped.
install_customer_portalThe Step 1 in-site embed, with the security hash, for your stack.
link_subscription_workflowStep 2: the encrypted query read from Links, both ways of opening a workflow, and the single return route covering all five outcomes.
sync_usage_rightsThe Step 3 rights module: the Usage read, the cache and its expiry, the gate, the write-back for a Feature your application changes, and the resynchronization.
scaffold_notification_endpointThe webhook endpoint: signature verification, the validation handshake, deduplication, a fast acknowledgement, and the BackOffice procedure that activates it.
verify_insite_installationSteps 2 and 3 exercised against your account — on the customer you name, created if missing, or on a new one — the go-live rules checked against your files, and the twelve-item checklist.yes

Code generation

ToolWhat it doesWrites
generate_pricing_tableA pricing table over your real offers.
plan_integrationThe ordered plan for a journey: installation, subscription funnel, portal lifecycle, usage metering, notifications.
generate_integration_codeCode for a task in the language you name, from the contract and the documentation.

Catalogue

ToolWhat it doesWrites
list_offersThe offers your Segment exposes.
list_offers_for_customerThe offers one customer may take, and the upgrade options of a running subscription.
get_offerA single offer by reference.
list_featuresThe Features of your Business.

Customers

ToolWhat it doesWrites
get_customerA customer by reference.
create_update_customerCreate a customer, or update one that already carries the reference. One tool: the endpoint is an upsert.yes
get_billing_addressThe address invoices are issued against.
update_billing_addressUpdate that address, changing only the fields you supply.yes
get_payment_settingsPayment type, billing mode, grey-list flag, invoice note and next billing date, in one read.
set_next_billing_dateSet the date of the customer's next billing.yes
set_invoice_noteSet the note printed at the bottom of every upcoming invoice of the customer.yes
set_payment_methodRecord a manual payment method; Card and DirectDebit are driven by the payment gateway.yes
anonymize_customerIrreversible. The GDPR erasure path: it erases the personal data and keeps the invoices and the subscription history. ProAbono refuses it while the customer has an invoice due, and erases nothing.yes

Subscriptions

ToolWhat it doesWrites
get_subscription, list_subscriptionsWhat a customer is subscribed to.
create_subscriptionSubscribe a customer to an offer.yes
start_subscriptionStart a draft subscription, or restart a suspended one.yes
upgrade_subscriptionMove a subscription to another offer.yes
suspend_subscriptionSuspend it; start_subscription reverses that.yes
terminate_subscriptionTerminate it, at the end of the term by default.yes

Usage and rights

ToolWhat it doesWrites
get_usagesA customer's current Usages, as ProAbono sees them.
quote_usage_changePrice an intended change, and check it is allowed, before applying it.
push_usage_incrementReport consumption of a Consumption Feature.yes
push_usage_quantitySet the provisioned quantity of a Limitation Feature.yes
push_usage_enablingSwitch an OnOff Feature.yes

Invoicing and balance

ToolWhat it doesWrites
get_invoiceA debit invoice, with its PDF URL when it publishes one — an invoice read right after it is issued may not publish one yet.
get_credit_noteA credit note, with its TypeCredit, its reason and its PDF URL when it publishes one.
list_invoicesA customer's billing documents, both kinds together.
create_balance_lineA debit, or a credit when the amount is negative.yes
bill_customerInvoice whatever is sitting in the balance.yes

Server

ToolWhat it doesWrites
get_server_infoVersion and configuration status, values excluded.

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

SymptomCauseFix
The ProAbono tools do not appear in your assistant, and your MCP client's log says a configuration variable is missingThe server refused to start: a variable is missing or emptySet every variable the message names in the env block of the entry, then restart the client
The log says PROABONO_API_BASE must be an https:// endpointThe endpoint does not begin with https://Use https://api-{business_id}.proabono.com, with your own business identifier
The log says PROABONO_BUSINESS_ID must be the numeric business identifierThe identifier holds something other than digitsKeep the digits only: no prefix, no quotes, no spaces
A tool answers ProAbono API error 401The Agent key or the API key is wrongCopy both again from your BackOffice
A tool answers ProAbono API error 401, and both keys are rightThe endpoint and the keys come from two different accountsTake all seven variables from the same account

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:

bash
npm ci && npm run build && npm test

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.4.0最新Sep 30, 2026
  2. v0.1.0Sep 18, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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