MetorialDocs

Set up Ascora in Metorial for Claude, ChatGPT and Cursor

Share Ascora with your team in Claude, ChatGPT and Cursor through Metorial: basic authentication or API key sign-in, 9 tools (6 read-only).

To give your team Ascora in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Ascora integration in a Metorial portal, and each person connects with a basic authentication. Agents can search and retrieve customers and jobs, submit enquiries with contact details and custom fields, and retrieve invoices and payments for accounting synchronisation. The integration has 9 tools, 6 read-only and 3 write, plus 3 triggers.

What you'll learn

  • How an admin shares Ascora in a portal and how each person connects
  • What Ascora asks for when you connect, and where to find it
  • How to keep the 6 read-only tools and reject the other 3

Before you start

Sign-in methods

MethodTypeWhat a person provides
Basic Authentication (Accounting API) (default)Custom credentialsusername and password
API KeyAPI tokentoken

The portal and metorial setup use Basic Authentication (Accounting API) unless someone picks another method.

Basic Authentication (Accounting API)

To connect, a person enters these values:

  • username: Ascora account username
  • password: Ascora account password

API Key

To connect, a person enters:

  • token: Ascora API key from Administration → API Settings

Admin: share Ascora in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Ascora. Under Auth Method, keep Basic Authentication (Accounting API) or pick another. For how members connect, choose Each person connects so everyone enters their own basic authentication, or Shared connection to enter one basic authentication for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Ascora.

Choose who gets it

Add the access groups that should see Ascora. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Ascora integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search ascora

Employee: connect Ascora

In the portal

Open Ascora in the catalog

Sign in to your portal and open Ascora. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your basic authentication (username and password).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search ascora
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses Basic Authentication (Accounting API). To connect with API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Ascora connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list ascora
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 6 read-only tools, such as get_job and list_jobs, and lose the 3 write tools, such as mark_invoices or mark_payments.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list ascora
metorial tools <integration-id>
metorial call <integration-id> list_customers -d '{}'

metorial tools lists the 9 tools, minus any you rejected. list_customers takes no input.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (6)

  • get_invoices: Retrieves invoices from the Ascora Accounting API that have not yet been marked as sent to an accounting system.
  • get_payments: Retrieves payments from the Ascora Accounting API that have not yet been marked as sent to an accounting system.
  • list_customers: Searches a page of customers from Ascora.
  • get_customer: Retrieve one Ascora customer, including contact details, addresses, customer type and custom fields.
  • get_job: Retrieve an Ascora job by its full job number, including status, customer relationships, address and pricing.
  • list_jobs: Search a page of Ascora jobs by status, customer, assigned user, job type, creation date or text.

Write tools (3)

  • mark_payments: Marks one or more payments as successfully sent to an external accounting system. Needs paymentIds.
  • mark_invoices: Marks one or more invoices as successfully sent to an external accounting system. Needs invoiceIds.
  • submit_enquiry: Creates a new enquiry in Ascora from external data such as website contact forms or CRM systems.

Triggers

Ascora has 3 triggers, which fire on events in Ascora:

  • inbound_webhook
  • new_invoices: Triggers when new invoices are available in Ascora that have not yet been marked as sent to an accounting system.
  • new_payments: Triggers when new payments are available in Ascora that have not yet been marked as sent to an accounting system.

Next steps