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

Abierto
#5,107 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
api, backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
TypeScript
Estrellas
30
Forks
10
Merge medio
2 d 12 h
PR fusionados (30 d)
276

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Urigo/accounter-fullstack

Todos los issues de Urigo/accounter-fullstack

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.