On top of that, every operation must have been granted to the connection. And, when you sign in with your account, the person must still have access to the organization and the permission the operation requires.
All of this is checked again on every call. If you revoke a connection, a
key, an environment or a team member’s access, the next call is already
blocked. It does not depend on the token expiring in the assistant.
Enabling per environment
An administrator turns MCP on and off under Developers → Agents, one environment at a time:
Turning an environment off immediately blocks every connection pointing at it. The connection stays listed, but calls start answering
environment_disabled.
Sign in with your account or API key
Sign in with your account
The assistant discovers the authentication fromhttps://mcp.chargefy.io and opens Chargefy’s official screen in the browser.
Choosing the organization
Each connection is valid for one organization. If you belong to several, you choose one on the authorization screen. To use another, revoke the connection and connect again. This rule exists so that a plain-English request never switches accounts without you noticing. “List the customers” always means that organization’s customers.Choosing the level per environment
For the chosen organization, each enabled environment offers three options:- No access;
- Read only;
- Read and write.
false is test, true is production. The organization is already pinned to the connection and does not need to be passed.
What the assistant can change
Checking “read and write” sets the ceiling. Within it, the assistant only changes what your user can change in the dashboard:
If the permission is missing, reads keep working and the change answers
missing_capability.
Granted operations
On the authorization screen, Chargefy records exactly which operations that connection can execute. That record is what makes it possible to explain and audit what the assistant can reach. If Chargefy publishes a new operation later, it does not slip into existing connections on its own. You update the permissions or authorize again whenever you want to grant the new method.API key
Use an organization API key when the context needs to be fixed and predictable, as in a script or a CI routine.- the organization;
- the environment, through the
ch_test_orch_live_prefix; - the reach:
read,writeoradmin; - expiry and revocation.
organization or livemode.
Key scopes
Two protections for writes
Confirmation before changing
Human confirmation happens in the assistant, not on Chargefy’s server. If you ask “show me before executing”, the assistant shows the operation and the data and waits for your go-ahead. To help the assistant decide when to ask, writing is split into two tools:chargefy_api_create, which only adds, and chargefy_api_update, which changes something that already exists and is therefore marked as destructive. Assistants that respect that marking ask for confirmation before each update and usually create without asking on every call.
Protection against duplicate changes
Every create or update requires anintent_id: a unique code of 16 to 64 characters, generated by the assistant, that identifies that intended change. A UUID works.
- each new change gets a new
intent_id; - if the call fails because of a timeout or a dropped connection, the assistant repeats it with the same
intent_id; - the repeat returns the original result, instead of creating the customer again;
- using the same
intent_idwith another operation or other data causes a conflict; - reads do not use
intent_id.
Revoking or reducing access
Connections made with your account
Under Developers → Agents, you can:- update the permissions of a connection;
- revoke only the test environment or only production;
- revoke the whole connection;
- connect again to change organization or level.
Updating permissions
When Chargefy publishes new operations, existing connections keep only what you authorized. The connection shows up marked as Update available, and the Update permissions action recalculates the access within what you already granted: same organization, same environment, same level. Before applying, you see what comes in and what goes out. The same action also reduces access: operations that depend on a permission you lost leave the connection, and organizations you can no longer reach are revoked. To widen it (another organization, another environment or moving from read to write), connect again.API key
Revoke the key under Developers → API keys. Revoking the key cuts the connection off for good.Good practices
- Start in test and read only.
- With API keys, use one connection for test and another for production.
- Grant write access only for as long as needed, and only to the assistant that needs it.
- Before authorizing, check the application’s name and domain on the authorization screen.
- Never put API keys in version-controlled files.
- Ask for confirmation before changes that affect your operation.
- Review unused connections under Developers → Agents.
Access errors
Keep going
Tools and operations
See the full catalog and the arguments of each tool.
Usage examples
Apply the access model to queries and safe writes.

