MCP: expose business details (address, contact, identifiers) and financial accounts' bank details

Open
#5,107 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
api, backend

Research direction

Start by locating the MCP server tools accounter_list_business_memberships and accounter_list_businesses, then trace how they scope results to memberBusinessIds and how the UI loads the business Contact and Accounts tabs. Check the existing account data path, including how Swift Code is stored or fetched. Done means the connector can return the requested business details and financial account fields with the proposed member-only access and bank detail handling.

Written by the indexing model from the issue text.

Description

Problem

The MCP connector cannot return a member business's own contact details or its financial accounts' bank details, although both are stored in Accounter and shown in the UI (/businesses/<id> → Contact and Accounts tabs).

Today:

  • accounter_list_business_memberships returns only { memberBusinessId, name, role }.
  • accounter_list_businesses returns only { id, name, ownerId, isActive, isClient, taxCategory }.
  • No tool lists a business's financial accounts.

Use case

Filling a customer's vendor-onboarding form (company profile + payment details) from an assistant session. The form asked for the registered address with postcode, phone, tax ID and the receiving bank account's details. None of it was reachable through the connector, so the workaround was:

  • reading the address and postcode off the image of an invoice the business had issued (accounter_get_documents → imageUrl), and
  • opening the Accounts tab in a browser to read the bank details.

Proposal

Two read-only tools (or extensions of existing ones), scoped to memberBusinessIds like the rest of the server:

1. accounter_get_business_details

For a business the caller is a member of (and ideally for counterparties too, where the data exists):

{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "Example Software Ltd.",
  "hebrewName": "...",
  "taxId": "000000000",
  "country": "ISR",
  "address": { "line1": "1 Example St", "city": "Example City", "postcode": "0000000", "country": "ISR" },
  "phone": "+972-00-000-0000",
  "email": "[email protected]",
  "website": "https://example.com"
}

Nice to have: a place for extra company identifiers that vendor forms keep asking for (e.g. a DUNS number), so they live next to the tax ID instead of in chat history.

2. accounter_list_financial_accounts

What the Accounts tab already shows:

{
  "id": "...",
  "ownerId": "...",
  "type": "BANK_ACCOUNT",          // BANK_ACCOUNT | CREDIT_CARD | CRYPTO_WALLET | BANK_DEPOSIT | FOREIGN_SECURITIES
  "name": "12-000000",
  "accountNumber": "000000",
  "currencies": [{ "currency": "USD", "taxCategory": { "id": "...", "name": "..." } }],
  "bank": { "bankNumber": 12, "branchNumber": 0, "iban": "IL00 0000 0000 0000 0000 000", "swift": "XXXXILITXXX" }
}

Notes

  • Bank details are sensitive: keep this owner/member-only, and consider an opt-in flag (e.g. includeBankDetails) so a plain listing returns masked values by default.
  • While looking at the Accounts tab: on one bank account the Swift Code field was empty while a sibling account at the same bank and branch had it filled. Worth checking whether that field is scraped per account or should be derived from the bank number.
  • All values above are made-up examples.
Dominant language
TypeScript
Stars
30
Forks
10
Avg merge
2d 12h
Merged PRs (30d)
276

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Urigo/accounter-fullstack

All issues in Urigo/accounter-fullstack

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.