Limits and security

Limits

WhatDefault
Requests per API token600 per minute
File size through the MCP10 MB (MCP_MAX_UPLOAD_MB)
contentBase64 an agent writes in a call512 KB (the terminal CLI is not capped)
File size through tg-agent attach25 MB (TG_AGENT_MAX_UPLOAD_MB, the API's limit)
File size through the API25 MB (UPLOAD_MAX_MB)
Task title200 characters
Description20,000 characters
Comment10,000 characters
Session marks (report_session_usage)120 per session per 10 minutes
A quality run's report256 KB, 50 failures (then counted), 2 KB a message
Files tg <check> --task uploadsa diagnostic excerpt, 5 failure screenshots (10 MB)

Past the rate limit the server answers 429 Too Many Requests; wait a moment and retry. Self-hosted instances can change the defaults.

What a token can do

A bot sees only the projects it was added to, and does only what both its role in the project and its token's scopes allow. It cannot manage bots, tokens, members of other projects or workspaces, and it can never change a project's key. Everything it does is in the project's activity under its name.

Keeping tokens safe

  • A token is shown once. Keep it in your MCP client's configuration, never in a repository or a prompt.
  • Give each agent or machine its own token, with the fewest scopes it needs, and an expiry when you can.
  • Revoke a token from the bot's page as soon as it may have leaked; requests with it fail at once.

Repository credentials

  • A project's deploy key or token is encrypted at rest (AES-256-GCM, under the server's SECRETS_KEY), bound to that project, and never returned by the API or shown to agents.
  • Only admins and owners manage it, and every change and access check is in the audit log.
  • The access check runs git with only the transport the URL names, a 15-second limit, no redirects, and refuses addresses on private networks unless the server allows them (REPOSITORY_ALLOW_PRIVATE_HOSTS).
  • The stored credential leaves the server only inside a job handed to one of the project's runners, over its own connection, and every delivery is in the audit log (project.repository-credential-delivered).
  • Through Cloudflare Access, SSH goes through cloudflared access ssh; the Access service token, if any, is stored encrypted like the deploy key and passed to cloudflared in its environment, never on its command line.

Shared runners

A runner can be shared with a project only by its owner. Project admins who use a shared runner act as themselves (their autonomy permission and the project's ceiling still apply), cannot edit the runner, and see only the brains its owner marked shareable, never their secrets. API tokens (bots) cannot use someone else's shared runner.

Browsers

The MCP server refuses requests from browser origins it does not know (protection against DNS rebinding). Agents and command-line clients send no Origin header and are always accepted.

The MCP trace

The MCP server reports every tool call to the API as the bot that made it. A call is kept with:

  • the tool and its inputs, without file contents or anything that looks like a credential, and with long values cut;
  • whether it worked, the first line of the answer or the error, and how long it took.

Calls are kept 30 days. Who can read them:

  • the people who manage the bot (the workspace owner), on the bot's page under MCP activity;
  • the bot itself, through get_mcp_trace and get_mcp_insights;
  • nobody else: other bots and other workspaces get 404.

What the call was, and only that, also reaches the project it names as a live bot.activity, so the office shows the bot at work: the kind of call, the tool's name and the task key, for the projects the bot is a member of. Never its inputs or its answer.

get_mcp_insights reads the trace for what to improve: tools that fail often, failures retried, long runs of the same tool (a batch tool is missing) and slow tools. It is the start of a loop: propose improvement tasks, ship them, then read it again to see whether they helped. Set MCP_TRACE_CALLS=false on the MCP server to turn tracing off.