MetorialDocs

Set up Gusto in Metorial for Claude, ChatGPT and Cursor

Share Gusto with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 20 tools (9 read-only).

To give your team Gusto in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Gusto integration in a Metorial portal, and each person signs in to Gusto with their own account. Agents can discover the authorized Gusto company, read personnel and payroll records, and manage documented benefits, locations, departments and compensation. The integration has 20 tools, 9 read-only, 10 write and 1 destructive, plus 7 triggers.

What you'll learn

  • How an admin shares Gusto in a portal and how each person connects
  • The 40 OAuth scopes Gusto can request, and what each one allows
  • How to keep the 9 read-only tools and reject the other 11

Before you start

Sign-in methods

MethodTypeWhat a person provides
Demo (default)OAuthSigns in to Gusto
ProductionOAuthSigns in to Gusto

The portal and metorial setup use Demo unless someone picks another method.

Demo

People sign in to Gusto and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
companies:readCompanies ReadRead company information
companies:writeCompanies WriteCreate and update company information
employees:readEmployees ReadRead employee information
employees:writeEmployees WriteCreate and update employee information
payrolls:readPayrolls ReadRead payroll information
payrolls:writePayrolls WriteCreate and process payrolls
contractors:readContractors ReadRead contractor information
contractors:writeContractors WriteCreate and update contractor information
contractor_payments:readContractor Payments ReadRead contractor payment information
contractor_payments:writeContractor Payments WriteCreate and manage contractor payments
company_benefits:readCompany Benefits ReadRead company benefit information
company_benefits:writeCompany Benefits WriteCreate and update company benefits
employee_benefits:readEmployee Benefits ReadRead employee benefit enrollments
employee_benefits:writeEmployee Benefits WriteCreate and update employee benefit enrollments
pay_schedules:readPay Schedules ReadRead pay schedule information
pay_schedules:writePay Schedules WriteCreate and update pay schedules
locations:readLocations ReadRead company location information
locations:writeLocations WriteCreate and update company locations
bank_accounts:readBank Accounts ReadRead bank account information
bank_accounts:writeBank Accounts WriteCreate and update bank accounts
jobs:readJobs ReadRead job information
jobs:writeJobs WriteCreate and update job information
compensations:readCompensations ReadRead compensation information
compensations:writeCompensations WriteCreate and update compensation information
taxes:readTaxes ReadRead tax information
taxes:writeTaxes WriteUpdate tax information
forms:readForms ReadRead forms and documents
forms:writeForms WriteCreate and manage forms
time_off_policies:readTime Off Policies ReadRead time off policies and balances
time_off_policies:writeTime Off Policies WriteCreate and update time off policies
signatories:readSignatories ReadRead signatory information
signatories:writeSignatories WriteCreate and update signatories
earning_types:readEarning Types ReadRead earning type information
earning_types:writeEarning Types WriteCreate and update earning types
garnishments:readGarnishments ReadRead garnishment information
garnishments:writeGarnishments WriteCreate and update garnishments
departments:readDepartments ReadRead department information
departments:writeDepartments WriteCreate and update departments
webhooks:readWebhooks ReadRead webhook subscriptions
webhooks:writeWebhooks WriteCreate and manage webhook subscriptions

Production

It requests the same scopes as Demo.

Use your own Gusto OAuth app

With your own OAuth app, people see your company's name on the Gusto consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Gusto and copy the Redirect URI.

Register the app with Gusto

Create an OAuth app or client in Gusto and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in OAuth documentation.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Gusto integration.

Admin: share Gusto 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 Gusto. Under Auth Method, keep Demo or pick another. For how members connect, choose Each person connects, so everyone signs in to Gusto as themselves.

Limit the tools

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

Choose who gets it

Add the access groups that should see Gusto. 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 Gusto integration. Once it exists, check which groups have it:

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

Employee: connect Gusto

In the portal

Open Gusto in the catalog

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

Authenticate

Under Quick setup, select Authenticate. A Gusto sign-in tab opens. Sign in and approve the permissions listed.

Confirm

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

With the CLI

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

catalog search prints the catalog item ID. metorial setup uses Demo. To connect with Production 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 Gusto 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 gusto
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 9 read-only tools, such as list_forms and get_company, and lose the 10 write tools, such as manage_employee or manage_contractor, and the destructive tool process_payroll.

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 gusto
metorial tools <integration-id>
metorial call <integration-id> list_forms -d '{"scope":"company"}'

metorial tools lists the 20 tools, minus any you rejected. list_forms needs scope, so replace the placeholders. It lists company or employee form metadata, or retrieve one form by ID.

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

Tools

Read-only tools (9)

  • list_contractors: List contractors (1099 workers) for a company. Needs companyId.
  • list_employees: List employees for a company. Needs companyId.
  • manage_time_off: List time off policies for a company or retrieve an employee's time off activity for one exact type. Needs action.
  • list_pay_schedules: List pay schedules for a company. Needs companyId.
  • get_company: Retrieve detailed information about a Gusto company, including its profile, locations, and configuration. Needs companyId.
  • get_payroll: Retrieve detailed information about a specific payroll, including employee compensations, taxes, deductions, and totals. Needs companyId and payrollId.
  • list_forms: List company or employee form metadata, or retrieve one form by ID. Needs scope.
  • list_payrolls: List payrolls for a company. Needs companyId.
  • get_current_context: Discover the current Gusto token resource, resource owner, granted scopes and company UUID.

Write tools (10)

  • manage_employee_benefit: List, create, or update employee benefit enrollments. Needs action.
  • manage_job_compensation: Manage employee jobs and compensations. Needs action.
  • manage_contractor_payment: List contractor payments grouped by contractor and returned as individual payments. Needs action and companyId.
  • manage_earning_type: List, create, or update custom earning types for a company. Needs action and companyId.
  • manage_employee: Create, update, retrieve, terminate, or rehire a W-2 employee. - To **create**: provide companyId, firstName, lastName, and optionally other fields. - To **get** or **update**: provide employeeId and any fields to update. - To **terminate**: provide employeeId and termination details. - To **rehire**: provide employeeId and rehire details. Needs action.
  • manage_garnishment: List, create, or update wage garnishments for an employee. Needs action.
  • manage_department: List, create, or update departments for a company. Needs action.
  • manage_company_benefit: List, create, retrieve, or update company-level benefit types (health insurance, 401(k), HSA, etc.). Needs action.
  • manage_company_location: List, create, or update company locations. Needs action.
  • manage_contractor: Create, retrieve, or update a contractor (1099 worker). - To **create**: provide companyId, type, and contractor details. - To **get**: provide contractorId. - To **update**: provide contractorId and fields to change. Needs action.

Destructive tools (1)

  • process_payroll: Request asynchronous payroll calculation or submission for an approved Embedded Payroll company. Needs companyId, payrollId and action.

Triggers

Gusto has 7 triggers, which fire on events in Gusto:

  • payroll_events: Triggered when payroll lifecycle events occur, including creation, calculation, submission, processing, payment, reversal, and cancellation.
  • general_events: Triggered for miscellaneous Gusto webhook events including bank account changes, location updates, signatory changes, pay schedule changes, employee address/compensation changes, notification events, and other resource events not covered by specialized triggers.
  • benefit_events: Triggered when company benefit or employee benefit enrollment events occur, including creation, updates, and deletion of benefits and enrollments.
  • contractor_events: Triggered when contractor lifecycle events occur, including creation, updates, onboarding, deactivation, reactivation, and deletion.
  • employee_events: Triggered when employee lifecycle events occur, including creation, updates, onboarding, termination, rehire, and deletion.
  • company_events: Triggered when company lifecycle events occur, including provisioning, deprovisioning, updates, onboarding, approval status changes, and suspension events.
  • form_events: Triggered when form or document events occur, including creation, updates, signing, and document generation success or failure.

Next steps