Fusion Holds & Funds Desk MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Fusion Holds & Funds Desk MCP Why isn't invoice INV-100245 paying? Show me its holds and period status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Fusion Holds & Funds Desk MCP
A Model Context Protocol (MCP) server for the Oracle Fusion Cloud ERP holds and funds desk. It answers the question an AP analyst asks a dozen times a day — why is this invoice not paying? — by pulling the invoice, the holds on it, the accounting period status, and the budgetary control result into one place, with the resolution steps and the owning team attached to each hold.
It is read-only. Nothing here releases a hold, opens a period, or reserves funds.
The one rule: funds balances are never invented
This server reports funds statuses and failure reasons. It reports a funds balance only when Oracle Budgetary Control hands one over.
It never estimates a balance, never derives one by arithmetic from invoice amounts, never carries one forward from an earlier call, and never emits a placeholder number that a reader could mistake for a real funds position. When Budgetary Control does not supply a figure, every numeric field comes back null alongside dataAvailability: "unavailable", the reason it is unavailable, and instructions on where to get the real number.
The rule is enforced in code, not just documented. Every balance record passes through sealBalances in src/domain/fundsPolicy.ts, which strips numeric fields unless the record was built directly from a Budgetary Control API response, and get_budgetary_control_impacts re-asserts the invariant before returning. Mock mode drops balances unconditionally, even if a fixture tries to supply them.
Related MCP server: Cronhaus Inbox MCP Server
Tools
Tool | What it answers |
| The facts: header, amounts, validation/approval/payment/accounting status, matched purchase orders, lines. |
| What is holding the invoice, what each hold code means, who owns the fix, whether revalidation clears it, and the steps that do. |
| Whether the AP and GL periods allow accounting for a given period or accounting date. |
| The funds check result, the control budgets involved, and which lines and distributions failed and why. |
A typical run: get_invoice to establish the facts, get_invoice_holds to see what is blocking it, then get_accounting_period_status or get_budgetary_control_impacts depending on which category of hold came back.
Identifying an invoice
Pass invoiceId when you have it. An invoice number is unique only within a supplier and business unit, so add supplierName, supplierNumber, or businessUnit to disambiguate. If more than one invoice still matches, the tool returns an AMBIGUOUS_MATCH error listing the candidates rather than picking one for you.
Result shape
Every tool returns a readable text summary plus structuredContent validated against a published output schema:
meta— which tool ran, whether it was mock or live, the source resource, and the retrieval timestamp.The payload — invoice, holds, periods, or budgetary control result.
Guidance —
nextStepsorrecommendedActions, prioritised, with the owning team named.disclaimers— including the balance rule above, and a mock-mode warning when applicable.
Failures come back as MCP tool errors (isError: true) carrying a machine-readable code (NOT_FOUND, AMBIGUOUS_MATCH, AUTH_FAILED, RESOURCE_UNAVAILABLE, TIMEOUT, RATE_LIMITED, UPSTREAM_ERROR, INVALID_ARGUMENT, CONFIG_INVALID) and remediation steps — never a fabricated result.
Install and build
Requires Node.js 18.17 or newer (Node 20+ recommended).
git clone https://github.com/kumr192/fusion-holds-funds-desk-mcp.git
cd fusion-holds-funds-desk-mcp
npm install
npm run buildThen verify the build:
npm test # unit and integration tests
npm run smoke # starts the built server over stdio and calls every tool
npm run doctor # prints the resolved configuration; probes the pod in live modeRunning on Windows
The steps below are what to run on a Windows machine from PowerShell. Everything is cross-platform — no WSL, no build tools, no Python.
1. Install Node.js. Get the current LTS from nodejs.org, then confirm it in a new PowerShell window:
node --version
npm --version2. Clone and build.
cd $HOME\code
git clone https://github.com/kumr192/fusion-holds-funds-desk-mcp.git
cd fusion-holds-funds-desk-mcp
npm install
npm run buildnpm install && npm run build is the whole setup. The build writes dist\index.js, which is the file the MCP client launches.
3. Confirm it works before wiring it into a client.
npm test
npm run smokenpm run smoke starts the server exactly as an MCP client would, calls all four tools, and checks that no funds balance leaks out of mock mode. All checks should pass.
4. Note the absolute path to dist\index.js.
(Resolve-Path .\dist\index.js).Path5. Add it to mcp.json. Use the path from the previous step. In JSON, backslashes must be doubled (\\), or you can use forward slashes.
For Cursor, the file is %USERPROFILE%\.cursor\mcp.json (or .cursor\mcp.json inside a project, for a project-scoped server). For Claude Desktop it is %APPDATA%\Claude\claude_desktop_config.json. Both use the same mcpServers shape:
{
"mcpServers": {
"fusion-holds-funds-desk": {
"command": "node",
"args": ["C:\\Users\\shiv\\code\\fusion-holds-funds-desk-mcp\\dist\\index.js"],
"env": {
"FUSION_MODE": "mock"
}
}
}
}Ready-to-edit copies are in examples/mcp.mock.json and examples/mcp.live.json.
6. Restart the MCP client so it picks up the change. The server should appear with four tools.
7. Try it. Ask: "Why is invoice INV-1001 on hold?" or "Is the GL period open for FEB-26?"
Switching to live. Change the env block to point at your pod:
{
"mcpServers": {
"fusion-holds-funds-desk": {
"command": "node",
"args": ["C:\\Users\\shiv\\code\\fusion-holds-funds-desk-mcp\\dist\\index.js"],
"env": {
"FUSION_MODE": "live",
"FUSION_BASE_URL": "https://your-pod.fa.us2.oraclecloud.com",
"FUSION_USERNAME": "AP_INTEGRATION_USER",
"FUSION_PASSWORD": "...",
"FUSION_DEFAULT_LEDGER": "US Primary Ledger",
"FUSION_DEFAULT_BUSINESS_UNIT": "US1 Business Unit"
}
}
}
}Before restarting the client, check the credentials and resource paths from the terminal — npm run doctor validates the configuration and probes the invoices resource, so a bad password or a wrong path surfaces as a clear message instead of a failed tool call:
$env:FUSION_MODE="live"
$env:FUSION_BASE_URL="https://your-pod.fa.us2.oraclecloud.com"
$env:FUSION_USERNAME="AP_INTEGRATION_USER"
$env:FUSION_PASSWORD="..."
npm run doctorWindows troubleshooting
npm : File ... npm.ps1 cannot be loaded— PowerShell's execution policy is blocking npm. RunSet-ExecutionPolicy -Scope CurrentUser RemoteSignedin an elevated window, or usenpm.cmdinstead.Client shows the server as failed — the path in
argsis usually the cause. It must be absolute, must point atdist\index.js(notsrc), and backslashes must be doubled in JSON. Confirm the file exists withTest-Path C:\...\dist\index.js.nodenot recognised — open a new terminal after installing Node soPATHis refreshed, or use the full path tonode.exeascommand.Works in the terminal, not in the client — the client does not inherit your shell environment. Every variable the server needs must be in the
envblock ofmcp.json.
Mock mode vs live mode
Mock mode (FUSION_MODE=mock, the default) serves deterministic fixtures: no pod, no credentials, no network. The fixture set covers a matching hold (INV-1001), a funds hold with an invalid account (2026-0234), a clean paid invoice in a closed period (AUR-55120), a manual hold plus a tax variance (TRI-2026-88), and an invoice dated into a period that was never opened (VE-4471). Mock results are labelled as such in meta.mode and in the disclaimers, and mock mode never returns funds balances.
Live mode (FUSION_MODE=live) calls Oracle Fusion Cloud ERP REST with basic auth or a bearer token, with a configurable timeout and bounded retries on 429 and 5xx responses. Fusion resource names vary by release and by which offerings are enabled, so every resource path is overridable — see .env.example. When a resource is missing or forbidden, the affected data is reported as unavailable with the HTTP diagnostic; no value is assumed in its place.
Configuration
All configuration is environment variables; .env.example documents every one. The essentials:
Variable | Default | Purpose |
|
|
|
| — | Pod origin. Required in live mode. |
| — | Basic auth for the integration user. |
| — | Bearer token; takes precedence over basic auth. |
| — | Ledger used when a call omits |
| — | Business unit used when a call omits |
|
| Opt in to querying Budgetary Control balances. Off means balances are always reported as unavailable. |
|
| Per-request timeout. |
|
| Retries for 429 and 5xx responses. |
|
|
|
Secrets are never logged: describeConfig reports the auth kind and the username, never the password or token.
Development
src/
index.ts stdio entrypoint
server.ts MCP server assembly and tool registration
config.ts environment parsing and validation
errors.ts error taxonomy with remediation
logger.ts stderr JSON logging
domain/
fundsPolicy.ts the never-invent-balances rule, enforced
holdCatalog.ts hold code reference: meaning, owner, resolution steps
format.ts text summary helpers
fusion/
types.ts domain model shared by both clients
httpClient.ts live Oracle Fusion REST client
mockClient.ts fixture-backed client
createClient.ts mode-based factory
fixtures/desk.ts deterministic fixtures
tools/ the four tools, their schemas, and shared plumbing
tests/ vitest suite
scripts/ clean, doctor, smokeScript | Purpose |
| Compile TypeScript to |
| Run the vitest suite. |
| Run tests with coverage. |
| Typecheck sources and tests without emitting. |
| Typecheck, then test. |
| Start the built server over stdio and exercise every tool. |
| Print the resolved configuration; probe the pod in live mode. |
| Remove |
The test suite covers configuration parsing, the hold catalog, both clients (the live one against a stubbed fetch), all four tools, and the full MCP handshake over an in-memory transport. Several tests exist purely to pin the balance rule: fixtures carry no amounts, mock mode strips injected balances, the seal drops unsourced numbers, and no numeric balance survives a mock-mode tool call.
License
MIT — see LICENSE.
Available Tools
4 toolsget_accounting_period_statusGet accounting period statusARead-onlyIdempotent
Report Oracle Fusion accounting period status for Payables (AP) and General Ledger (GL): Open, Closed, Permanently Closed, Never Opened, or Future Enterable. Query by period name, or by accountingDate to resolve the period that contains an invoice's accounting date. Use this when an invoice will not account, when an accounting date is rejected, or before asking for a period to be reopened. If a period status cannot be read it is reported as unavailable with the reason; a status is never assumed.
Inputs: modules, ledgerName, periodName, businessUnit, +1 more. Returns: meta, query, periods, summary, +6 more
get_budgetary_control_impactsGet budgetary control impactsARead-onlyIdempotent
Explain the budgetary control impact on an Oracle Fusion Payables invoice: the funds check / funds reservation status, which control budgets are involved, and which lines and distributions failed and why. Use when an invoice carries an Insufficient Funds or Funds Check Failure hold, or before promising a payment date on a budget-controlled invoice. Important: this tool never estimates or derives funds balances. Budget and funds-available figures are reported only when Oracle Budgetary Control returns them; otherwise they are null with the reason they are unavailable and guidance on where to obtain them.
Inputs: invoiceId, businessUnit, supplierName, invoiceNumber, +3 more. Returns: meta, impact, invoice, summary, +5 more
get_invoiceGet invoiceARead-onlyIdempotent
Retrieve a single Oracle Fusion Payables invoice: header, amounts, validation/approval/payment status, matched purchase orders, and lines. Identify the invoice by invoiceId, or by invoiceNumber plus supplierName/supplierNumber/businessUnit when the number alone is ambiguous. Use this first to establish the facts of an invoice, then call get_invoice_holds, get_accounting_period_status, or get_budgetary_control_impacts for the reason it is stuck.
Inputs: invoiceId, businessUnit, includeHolds, includeLines, +3 more. Returns: meta, invoice, summary, nextSteps, +2 more
get_invoice_holdsGet invoice holdsARead-onlyIdempotent
List the holds on an Oracle Fusion Payables invoice and explain each one: what the hold code means, which team owns the fix, whether revalidation can release it, and the steps that clear it. Returns prioritised recommended actions and flags whether payment or accounting is blocked. Use after get_invoice when an invoice is not paying or not accounting.
Inputs: holdCode, invoiceId, businessUnit, supplierName, +3 more. Returns: meta, holds, counts, invoice, +5 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool addresses a distinct diagnostic question: invoice facts, hold explanations, period status, and budget impacts. The descriptions explicitly reference the recommended sequence, eliminating boundary confusion.
All tool names follow a uniform get_ + noun phrase pattern in snake_case, making the resource and action clear for every tool. The naming convention is perfectly consistent.
Four tools cover a tightly scoped diagnostic domain without redundancy. Each tool earns its place and together they form a complete workflow for investigating stuck invoices.
The set covers the full diagnostic surface for the stated purpose: invoice retrieval, holds analysis, period status, and budgetary control impacts. No obvious missing operation within the read-only holds desk scope.
Maintenance
Related MCP Connectors
Evidence-backed UBL, PDF, and image invoice checks before approval or payment.
Ask your accounts-receivable portfolio anything. Read-only, scoped to your account.
Pay/review/hold verdict for invoice payees: cross-checks IBAN, BIC, VAT, EIN. Paid: RapidAPI
One governed MCP endpoint for 40+ business systems. Read-only, source-cited answers.
Related MCP Servers
- AlicenseBqualityDmaintenanceRead-only access to Oracle Fusion Cloud ERP data via natural language queries, with support for accounts payable, procurement, general ledger, and more.3017 PyPI4MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered invoice analysis and reasoning: given invoice fields, it detects missing data, inconsistencies, duplicates, and proposes actions (register, request data, mark duplicate, review) using deterministic rules.-
- FlicenseNot gradedqualityDmaintenanceSelf-serve MCPB demo for accounts payable invoice exception review. It performs deterministic matching across invoice, purchase order, goods receipt, vendor master, invoice history, tax code master, and payment rules.-
- AlicenseAqualityBmaintenanceEnables users to compare a supplier invoice with its purchase order and accepted receipts by exact SKU, unit price, and billed quantity, surfacing mismatches even when totals agree. It returns per-SKU evidence and source values for each exception.8MIT