Beyond these layers, every operation must be granted to the connection and, under OAuth, the user must still hold access and the required capability in the organization.
Authorization is revalidated on every call. Revoking a connection, an API key,
an environment or the user’s access affects the next operation, without
waiting for the client’s token to expire.
Enabling per environment
An administrator controls MCP under Developers → Connections:
Disabling an environment immediately blocks every scope pointing at it. The connection stays listed and the scope stays visible, but calls return
environment_disabled.
OAuth or API key
OAuth
The client discovers authentication fromhttps://mcp.chargefy.io and opens Chargefy’s official screen.
Choosing the organization
Every OAuth session belongs to one organization. If you belong to several, pick one during consent. To use another organization, revoke the session and connect again selecting the new one. That separation keeps a natural-language request from silently switching between accounts.Choosing access per environment
For the selected organization, each enabled environment offers three options:- No access;
- Read only;
- Read and write.
- test only;
- live only;
- test and live with different access levels.
livemode. If both test and live are authorized, pass it:
false for test and true for live. The organization is already pinned to the connection and does not need to be repeated in normal use.
Write capabilities
Selecting “read and write” sets the ceiling of the scope. The operation still depends on the user’s current capability:
If the capability is missing, reads keep working and the change returns
missing_capability.
Granting operations
During consent, Chargefy records which operations that connection may execute. That record is what makes the agent’s exact reach explainable and auditable. If the MCP surface gains an operation after authorization, it does not slip silently into existing connections. Authorize again when you want to grant the new method.API key
Use an organization API key when the context must be fixed and predictable.- the organization;
- the environment, through the
ch_test_orch_live_prefix; - the reach:
read,writeoradmin; - expiry and revocation.
organization nor livemode.
Key scopes
Two protections for writes
Confirmation in the client
The agent should show the operation and the data before a meaningful change when you ask for confirmation. That review belongs to the client or to workspace policy. The server does not open a new confirmation screen on every call. Writing is split into two tools so the annotation can be honest:chargefy_api_create is
additive and chargefy_api_update is announced as destructive
(destructiveHint), because it changes an existing record. Clients that respect
the annotation ask for confirmation before each update and usually run creates
without a per-call confirmation.
Idempotency with intent_id
Every execution through chargefy_api_create or chargefy_api_update requires an opaque intent_id of 16 to 64 characters. A UUID is a good choice.
- generate a fresh value for each intended change;
- on a timeout or transport failure, repeat the same request with the same
intent_id; - the replay returns the original result instead of executing again;
- reusing the token with another operation or other data returns a conflict;
- reads do not use
intent_id.
Revoking or reducing access
OAuth
Under Developers → Connections, you can:- update the permissions of the session;
- revoke the test or the live scope;
- revoke the whole session;
- reconnect to change organization or access levels.
Updating permissions
When Chargefy publishes new methods, sessions already connected keep the set you authorized — nothing is added without your approval. The session is flagged as Update available, and the Update permissions action recalculates access within what you already authorized: same organization, same environment, same access level. Before applying, you see exactly what comes in and what goes out. The same action also reduces access: methods that depend on a permission you lost leave the session, and scopes for organizations you can no longer reach are revoked. To widen the reach — another organization, another environment, or moving from read to write — reconnect and consent again.API key
Revoke the key under Developers → API keys. Revoking the credential is the definitive cut for a token-based connection.Recommended practices
- Start in test, read only.
- Keep test and production connections separate when using API keys.
- Grant writes only for the period and the client that need them.
- Review the application’s name and domain before approving OAuth.
- Do not put API keys in version-controlled files.
- Ask for human confirmation before writes with operational impact.
- Review unused connections under Developers → Connections.
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.

