Set up Tapfiliate in Metorial for Claude, ChatGPT and Cursor
Share Tapfiliate with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 43 tools (18 read-only).
To give your team Tapfiliate in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Tapfiliate integration in a Metorial portal, and each person connects with an API key. Agents can manage affiliate marketing programs, affiliates, customers, conversions, and commissions. The integration has 43 tools, 18 read-only, 20 write and 5 destructive, plus 3 triggers.
What you'll learn
- How an admin shares Tapfiliate in a portal and how each person connects
- What Tapfiliate asks for when you connect, and where to find it
- How to keep the 18 read-only tools and reject the other 25
Before you start
- A portal with at least one access group
- An API key from Tapfiliate for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | token |
API Key
To connect, a person enters:
token: Your Tapfiliate API key. Found in Profile Settings > API Key.
Admin: share Tapfiliate 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 Tapfiliate. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Tapfiliate.
Choose who gets it
Add the access groups that should see Tapfiliate. 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 Tapfiliate integration. Once it exists, check which groups have it:
Employee: connect Tapfiliate
In the portal
Open Tapfiliate in the catalog
Sign in to your portal and open Tapfiliate. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (token).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID.
Add it to your AI client
metorial install adds your Tapfiliate 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.
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 18 read-only tools, such as get_payment and get_program, and lose the 20 write tools, such as create_click or create_payment, and the 5 destructive tools, such as cancel_payment or delete_customer.
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 tools lists the 43 tools, minus any you rejected. list_affiliate_groups takes no input. It lists all affiliate groups.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (18)
list_customers: List referred customers with optional filters by program, customer ID, affiliate, and date range.list_affiliate_groups: List all affiliate groups.list_conversions: List conversions with optional filters by program, affiliate, external ID, pending status, and date range.list_clicks: List tracked clicks with optional filters by affiliate, program, asset, source, and date range.get_conversion: Retrieve detailed information about a specific conversion, including its commissions, affiliate, program, and metadata. NeedsconversionId.list_programs: List all affiliate programs.list_program_affiliates: List all affiliates enrolled in a specific program. NeedsprogramId.list_payments: List payment history with optional filters by affiliate and date range.get_commission: Retrieve detailed information about a specific commission including its amount, approval status, associated affiliate, and payout details. NeedscommissionId.get_affiliate: Retrieve an affiliate's personal data, company, address, and metadata. NeedsaffiliateId.get_program: Retrieve detailed information about a specific affiliate program, including its commission types, MLM levels, and bonuses. NeedsprogramId.list_commissions: List commissions with optional filters by program, affiliate, approval status, pending status, and date range.list_balances: View affiliate balances across all affiliates or for a specific affiliate.get_customer: Retrieve detailed information about a specific customer, including their status, referring affiliate, program, and metadata. NeedscustomerId.list_affiliates: List affiliates with optional filters.list_affiliate_prospects: List potential affiliate prospects with optional program filtering.list_affiliate_payout_methods: List an affiliate's configured payout methods with their IDs, details, and primary status.get_payment: Retrieve a recorded affiliate payment, including its amount, currency, affiliate, and timestamp.
Write tools (20)
create_conversion: Create a new conversion (sale/transaction) in Tapfiliate.create_customer: Create a new referred customer in Tapfiliate. NeedscustomerId.manage_affiliate_group: Assign an affiliate to a group or remove them from their current group. NeedsaffiliateIdandaction.create_affiliate_prospect: Create a potential affiliate prospect. Needsfirstname,lastnameandemail.manage_mlm_parent: Set or remove a parent-child relationship between affiliates for multi-level marketing (MLM). NeedsaffiliateIdandaction.create_affiliate_group: Create a new affiliate group for organizing affiliates with shared commission rules or management purposes. Needstitle.create_affiliate: Create a new affiliate in Tapfiliate with personal information, company details, and custom fields. Needsfirstname,lastnameandemail.update_conversion: Update an existing conversion's amount, external ID, or metadata. NeedsconversionId.create_payment: Record an affiliate payment for an explicit amount and currency. NeedsaffiliateId.manage_program_affiliate: Add, approve, disapprove, or update an affiliate within a program. NeedsprogramId,affiliateIdandaction.update_affiliate_metadata: Set or replace metadata on an affiliate. NeedsaffiliateIdandmetaData.update_commission: Update a commission's amount or comment. NeedscommissionId.add_commission_to_conversion: Add additional commission(s) to an existing conversion. NeedsconversionIdandconversionSubAmount.update_affiliate_group: Update an existing affiliate group's title. NeedsgroupId.disapprove_commission: Disapprove a commission, typically used when an order is canceled or refunded. NeedscommissionId.approve_commission: Approve a pending commission, making it eligible for payout to the affiliate. NeedscommissionId.update_customer_status: Cancel or uncancel a customer. NeedscustomerIdandaction.create_click: Create a click programmatically for REST-only integrations (without JavaScript tracking). NeedsreferralCode.manage_affiliate_payout_method: Get or set a payout method for an affiliate. NeedsaffiliateIdandaction.update_customer: Update a referred customer's external identifier or metadata, preserving the original affiliate relationship.
Destructive tools (5)
delete_affiliate_prospect: Permanently delete an affiliate prospect. NeedsprospectId.cancel_payment: Cancel a payment, reversing the settled commissions back to the affiliate's balance. NeedspaymentId.delete_customer: Permanently delete a customer record from Tapfiliate. NeedscustomerId.delete_conversion: Permanently delete a conversion and its associated commissions. NeedsconversionId.delete_affiliate: Permanently delete an affiliate from Tapfiliate. NeedsaffiliateId.
Triggers
Tapfiliate has 3 triggers, which fire on events in Tapfiliate:
payment_events: Triggered when an affiliate's balance is settled (payment created).affiliate_events: Triggered when an affiliate is created, added to a program, or approved for a program.customer_events: Triggered when a customer is created or their status changes.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Tapfiliate there
- Tool permissions: tool filters and what employees see
- Tapfiliate on metorial.com: the integration overview