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

Aperta
#5,107 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
30
Fork
10
Merge medio
2g 12h
PR unite (30g)
276

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Urigo/accounter-fullstack

Tutte le issue di Urigo/accounter-fullstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.