> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gesso.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Sign-in and security

> How a coding agent gets access to your Gesso account, and how to take it away.

## How the connection is approved

The server uses OAuth 2.1. Your MCP host discovers the sign-in endpoints from
the server, registers itself, and opens a Gesso page in your browser. You
approve while signed in to Gesso; the host receives tokens and stores them
itself. Gesso stores only hashes of them.

* The flow uses PKCE (S256) and needs no client secret or API key.
* Tokens are bound to the MCP endpoint and are refused anywhere else.
* Access tokens last an hour. Refresh tokens last 60 days from their last use
  and rotate on every refresh; reusing an old one revokes the whole connection.

## Scopes

| Scope | Grants |
| - | - |
| `corpus` | The shared pattern and direction libraries |
| `context` | Reading your projects, designs and design.md; exports |
| `write` | Generating, editing, importing and updating context |

A member's connection carries all three. Credits, not scopes, are what limit
spending.

## Revoke a connection

Open **Settings**, then **Connected agents**. Each approved tool is listed with
when it was connected and last used. **Revoke** signs it out at once.

## Plan checks

Access follows your plan on every call. If a subscription ends, the connection
stays listed but tool calls are refused until the account is on Pro or Ultra
again; there is nothing to reconnect afterwards.

## What Gesso sees

Gesso receives what a tool call carries: a brief, captured HTML, the four
context sections, a screenshot of your build. It does not clone or read your
repository, and it has no access to your machine.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.