MCP and API tokens
You manage Zekt in the web console at www.zekt.dev. AI agents and other MCP clients work with it through the Model Context Protocol, signing in with an API token. Programmatic access is through MCP. The REST endpoints the console uses aren’t a public API. For how the console, GitHub Actions and MCP work on the same account, see Ways to work with Zekt.
API tokens
Section titled “API tokens”Manage tokens under Profile → API Access, which has three tabs: Generate Tokens, Active Tokens and MCP Setup Docs. API Access is shown to accounts that pay their own bill.
Create a token
Section titled “Create a token”- Go to Profile → API Access and create a new token.
- Give it a name that says where it will be used, for example
triage-agentorrelease-pipeline. - Choose its scopes (see below).
- Choose an expiry: 30, 90 (the default), 180 or 365 days, or No expiration.
- Copy the token. It’s shown only once. Store it in a secret store, such as GitHub Secrets or your operating system’s credential store.
Scopes
Section titled “Scopes”Choose each scope separately. Scopes don’t include each other.
| Scope | Allows |
|---|---|
read | Reading repositories, connections and delivery status. Any valid token can read. |
dispatch | Dispatching events. |
replay | Replaying past events and webhooks. |
manage | Creating and changing configuration. |
A call that needs a scope the token doesn’t have is rejected with 403.
Give each token only the scopes it needs. A token that only reads delivery status should have no other scopes.
Expiry and revocation
Section titled “Expiry and revocation”- The token list shows each token as Active, Expired or Revoked, with the date it was last used.
- Revoking takes effect immediately.
- An expired or revoked token gets Invalid or expired API token.
Tokens that create tokens
Section titled “Tokens that create tokens”A token can create new tokens, but only with these limits:
- the new token’s scopes must be a subset of its own;
- it must have an expiry, no later than the creating token’s own expiry.
You can only create a token with No expiration while signed in to the console.
Zekt is a remote MCP server over Streamable HTTP. Each request is independent (stateless).
Connect a client
Section titled “Connect a client”-
Create an API token in Profile → API Access → Generate Tokens. API Access is available to accounts that manage their own billing, not to Disciple accounts.
-
Copy the server address from Profile → API Access → MCP Setup Docs.
-
Add the server to your client, sending the token in an
Authorization: Bearerheader. Tokens in the URL are refused. For example, in anmcp.jsonfile:{"servers": {"zekt": {"type": "http","url": "<address from MCP Setup Docs>","headers": { "Authorization": "Bearer <your zekt_ token>" }}}}
Keep any file that holds your token out of version control.
What you can do through MCP
Section titled “What you can do through MCP”Reading needs only a valid token. Every change needs the manage scope.
| Area | Tools |
|---|---|
| Account | Account summary. |
| Directory | Browse the Directory and services. |
| Provider services | List and create services, set visibility, list and whitelist workflows. |
| Access | Pending requests, approve, deny, subscribers, revoke. |
| Consumer | Repositories, subscriptions, subscribe (by service ID), unsubscribe. |
| Events | Delivery status, event history (up to 50 per call), replay (by the original provider only). |
Three read-only resources are also available: account summary, provider repositories and consumer repositories.
Errors
Section titled “Errors”| Response | Meaning |
|---|---|
| 401 | The token is invalid, expired or revoked. |
403 (JSON-RPC -32003) | The token lacks a scope (the error names it), or your account can’t start new work, for example a replay while a payment is overdue (see billing). |
503 (JSON-RPC -32603) | Zekt couldn’t check your account’s standing. Retry. |
| 429 | Rate-limited. Wait for Retry-After. |
Rate limits
Section titled “Rate limits”Every request to the MCP endpoint counts, including housekeeping such as tools/list:
- 30 per minute and 10 per second, per token;
- plus a shared limit of 60 changes per minute per user, which also counts your console actions. A busy agent can slow down your own changes in the console.
See Limits.
Usage and cost
Section titled “Usage and cost”MCP tool calls and resource reads are billed as usage. Connection housekeeping isn’t billed: initialising, pinging, list calls and notifications. See zekt.dev/zekt-pricing, and track usage under Management → Billing → Current Usage.