Skip to content

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.

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.

  1. Go to Profile → API Access and create a new token.
  2. Give it a name that says where it will be used, for example triage-agent or release-pipeline.
  3. Choose its scopes (see below).
  4. Choose an expiry: 30, 90 (the default), 180 or 365 days, or No expiration.
  5. 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.

Choose each scope separately. Scopes don’t include each other.

ScopeAllows
readReading repositories, connections and delivery status. Any valid token can read.
dispatchDispatching events.
replayReplaying past events and webhooks.
manageCreating 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.

  • 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.

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).

  1. 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.

  2. Copy the server address from Profile → API Access → MCP Setup Docs.

  3. Add the server to your client, sending the token in an Authorization: Bearer header. Tokens in the URL are refused. For example, in an mcp.json file:

    {
    "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.

Reading needs only a valid token. Every change needs the manage scope.

AreaTools
AccountAccount summary.
DirectoryBrowse the Directory and services.
Provider servicesList and create services, set visibility, list and whitelist workflows.
AccessPending requests, approve, deny, subscribers, revoke.
ConsumerRepositories, subscriptions, subscribe (by service ID), unsubscribe.
EventsDelivery 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.

ResponseMeaning
401The 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.
429Rate-limited. Wait for Retry-After.

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.

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.