Connect an AI agent (MCP)
Connect an AI agent (Claude, ChatGPT, Cursor, VS Code) to Tranzak with MCP: it creates test sites, test keys and webhooks for you, and you stay in control of going live and of real money. Complete guide from connection to go-live.
Tranzak has an MCP server. Once you connect your AI assistant to it, the assistant can set up the test mode of your integration by itself: it creates a test site, a test API key and a test webhook, then reads the test payments to check that your code works. It can never go live or touch real money without you.
This page explains everything, from the first connection to the first live payment.
1. What is MCP?
MCP (Model Context Protocol) is the standard way for an AI assistant to use an external service. You add the service once as a "connector". The assistant then sees a list of tools (here: create a test site, read a webhook secret…) and calls them when you ask.
Without MCP you do steps 1 to 3 of the Quickstart yourself in the dashboard, then paste the keys into your project. With MCP, the assistant does those steps for you.
| MCP address | https://dashboard.tranzak.co/mcp/tranzak |
| Protocol | Streamable HTTP |
| Sign-in | OAuth 2.1 with PKCE. No API key, no password and no token is ever pasted into the chat. |
| Works with | Claude, ChatGPT, Cursor, VS Code, Claude Code and any client that supports remote MCP servers |
2. What the assistant can and cannot do
| The assistant can | The assistant can never |
|---|---|
| Create test sites, within a daily limit | See or change your other sites: it only reaches the sites it created itself |
Create tk_test_ API keys for its sites |
Create a live key (tk_live_) or go live on its own |
| Set the test webhook URL and read its signing secret | Touch a site that already has a live key |
| Read the recent test payments of its sites | Use Payouts, withdrawals, refunds, or move any money |
| Ask you to go live | Receive your live key or your new webhook secret |
Important The assistant works only with the sites it creates. Your existing sites, and your live sites, stay invisible to it. This is enforced by the server, not only by the screen you see.
3. How it works, in five steps
- Connect. You add the Tranzak address to your assistant.
- Authorize. Your browser opens a Tranzak page. You sign in (e-mail code) and press Allow.
- Work in test mode. The assistant creates its test site, key and webhook, then runs your sandbox scenarios.
- Ask to go live. When the integration works, the assistant creates a request. Nothing goes live yet.
- You approve. You open the request in the dashboard, check it, and confirm with your password and authenticator code. You receive the live key on screen, once.
4. Before you start
- A Tranzak account that can sign in (e-mail and password).
- For going live only (not for testing): your identity verification (KYC) completed, your profile complete, and two-factor authentication (authenticator app) turned on. The assistant tells you what is missing.
- An assistant that supports remote MCP servers.
5. Connect your assistant
Use the address https://dashboard.tranzak.co/mcp/tranzak in all cases.
Claude (claude.ai and the Claude app)
- Open Settings › Connectors and choose Add custom connector.
- Name:
Tranzak. Address:https://dashboard.tranzak.co/mcp/tranzak. - Save, then start the connection. Your browser opens the Tranzak authorization page.
Claude Code
claude mcp add --transport http tranzak https://dashboard.tranzak.co/mcp/tranzak
Then run /mcp inside Claude Code and choose Authenticate for tranzak.
Cursor
Add to your mcp.json:
{
"mcpServers": {
"tranzak": { "url": "https://dashboard.tranzak.co/mcp/tranzak" }
}
}
VS Code
Add to .vscode/mcp.json:
{
"servers": {
"tranzak": { "type": "http", "url": "https://dashboard.tranzak.co/mcp/tranzak" }
}
}
ChatGPT and other clients
Add a remote MCP connector (custom connector or "app", depending on your plan and version) with the same address. Any client that supports OAuth for remote MCP servers works: it finds the sign-in details by itself.
6. The authorization page
When the connection starts, your browser shows a Tranzak page: "The assistant wants to access your Tranzak account".
- Your e-mail is shown so you know which account you are authorizing.
- Unverified application. Tranzak does not verify who registers an AI agent, and the name is chosen by the application. The page shows the address it returns to (for example
claude.ai). Continue only if you just started this connection from your own assistant and the address matches it. - This will allow… and It will never be able to… summarize the rights above.
- Technical details shows the application name, its return address and when it was registered.
- Press Allow to authorize, or Cancel.
You will be asked to sign in first if you are not already. If anything looks wrong (an assistant you did not start, an unknown return address), press Cancel.
Access is short-lived: access codes last 30 minutes and renew by themselves while you use the connection. You receive an e-mail each time a new assistant is connected.
7. Give the assistant a mission
Once connected, ask in plain language. For example:
Use the Tranzak connector. Create a test site "My Shop" with the domain my-shop.com and the webhook https://my-shop.com/tranzak/webhook. Create a test API key, read the webhook secret, then integrate Tranzak payments in my project. Keep the key and the secret in environment variables, never in the code or in this chat. Run the sandbox scenarios and tell me the result.
The assistant starts with get_started, then creates the site and key, writes the integration, and checks the test payments with list_sandbox_events.
8. The tools
| Tool | What it does |
|---|---|
get_started |
Explains what the assistant may and may not do. Called first. |
list_sites |
Lists the sites the assistant created. |
create_test_site |
Creates a site in test mode, with a tk_test_ key and a webhook secret. Limited per day. |
create_test_api_key |
Creates another tk_test_ key for one of its sites. Shown once. |
configure_test_webhook |
Sets the webhook, return and cancel URLs of a site that has no live key yet. |
get_webhook_secret |
Returns the whsec_… secret, to verify webhook signatures (how). Only for a site with no live key. |
list_sandbox_events |
Shows the recent test payments of a site. |
check_domain_verification |
Optional: proves, with a DNS record, that you own the domain. It is only a trust signal shown to you. |
request_go_live |
Asks you to go live. Creates an approval request. |
request_live_webhook_change |
Asks you to change the webhook URL of a site that is already live. |
get_request_status |
Status of a request: pending_owner_approval, executed, denied or expired. Never contains a key. |
9. Going live: the part that stays with you
-
The assistant calls
request_go_live. -
If something is missing, the answer is
blockedand nothing is created. The assistant tells you what to do:Reason Meaning What you do kyc_requiredIdentity verification or profile incomplete Complete it in the dashboard two_factor_requiredNo authenticator app Turn on two-factor authentication (Customer › Security) webhook_invalidThe webhook is not a public https://addressFix the webhook URL free_domain_not_allowedThe site uses a free hosting address or a tunnel (see below) Use your own domain name already_liveThe site already has a live key Nothing: it is already live -
If everything is ready, the answer is
pending_owner_approvalwith a link. Open it in the dashboard (Customer › AI agents). You see the exact action: the site, its domain, its webhook and return URLs. -
Confirm with your password and your authenticator code, or refuse. A request expires after 15 minutes. If you fail the check several times, approvals are locked for one hour.
-
On approval, you see once, on screen: the live key (
tk_live_…) and a new webhook secret (the old one is replaced, because the assistant could read it). Put them in your production environment. The assistant never receives them. -
After that the site is locked for the assistant: it can no longer change it.
If the assistant configured the URLs of a site, you also receive an e-mail asking you to check them before going live.
Live mode and free domains
Live mode is refused for free subdomains and development tunnels, because anybody can create them in seconds without proving who they are. Examples: *.vercel.app, *.netlify.app, *.github.io, *.pages.dev, *.herokuapp.com, *.onrender.com, *.ngrok.io, *.trycloudflare.com, *.duckdns.org, and similar. The check covers the site domain and its webhook, return and cancel addresses.
- In test mode these addresses work normally.
- To go live, use your own domain name (for example
my-shop.com). - Creating a live key for such a site is impossible, by an assistant or by hand in the dashboard.
10. Security: what protects you
| Protection | How |
|---|---|
| Test mode only | The assistant only gets tk_test_ keys. Live keys exist only after you approve. |
| Own sites only | It sees only the sites it created, never your others. |
| You decide on live | Password and authenticator code, on a page that shows the exact action. |
| Live key never leaves you | Shown once to you. It is not stored in clear and not sent to the assistant. |
| Secret rotation | The webhook secret the assistant read is replaced when you go live. |
| Short-lived access | 30-minute access codes. Renewal codes rotate. |
| Instant revoke | Customer › AI agents › Revoke cuts the assistant immediately. |
| Audit trail | Every call is logged. |
| Safe webhooks | Webhook addresses must be public https:// domain names. Private and internal addresses are refused. |
| No money tools | Payouts, withdrawals, refunds and wallet funding do not exist for assistants. |
An assistant reads web pages and files, and those can contain hidden instructions. That is why the assistant can only ask for anything that matters, and you approve it on a page that shows the exact action.
11. Limits
| Limit | Value |
|---|---|
| New test sites | 5 per day per account |
| New test keys | 10 per day per account |
| Pending go-live requests | 3 at a time |
| Calls per minute | 120 |
| Access code lifetime | 30 minutes (renewed automatically) |
| Go-live request lifetime | 15 minutes |
12. Manage and disconnect
Open Customer › AI agents in the dashboard to see the connected assistants, the requests waiting for you, and to revoke one assistant (Revoke) or all of them (Disconnect all). A disconnected assistant is refused at its next call, and its renewal codes stop working.
If you see an assistant you did not connect: revoke it, change your password, and contact support.
13. Troubleshooting
| Problem | What to do |
|---|---|
| The browser does not open the authorization page | Start the connection again from the assistant. Allow pop-ups. |
| "Session expired" on the page | Use a single browser tab, sign in again, and press Allow right away. |
| The assistant says it sees no site | Normal at first: it sees only the sites it creates. Ask it to create one. |
create_test_site is refused |
You reached the daily limit of 5 sites, or the domain is already used on your account. |
request_go_live answers blocked |
Read the reason in the table above and fix it. |
| The request expired | Ask the assistant to create a new one and approve within 15 minutes. |
| The assistant lost access | Reconnect. The sites it created are kept. |
401 on the MCP address |
The connection is not authorized or was disconnected: connect again. |
14. Questions
Does the assistant see my password? No. You sign in on a Tranzak page, never in the chat.
Can it spend or move my money? No. There is no tool for it.
Can it use my live key? No. It never receives it. Keep the live key out of chats and out of code that you commit.
What if I disconnect it? Access stops immediately. The test sites it created stay in your account.
Which assistants are supported? Any that supports remote MCP servers with OAuth. See section 5.
Where is the technical contract? For agents: tranzak.co/ai and tranzak.co/llms.txt. See also Tranzak AI Connect, Sandbox and test mode and Go live.