# Google Docs: Setup instructions — MCP tool

**Google Docs MCP tool:** Says how to connect: with the built-in A1 client just the two login calls, and for your own OAuth client the Google Cloud checklist, ready to show the user verbatim.

Technical name: `setup_instructions`

## What task it solves

> I want to know how to connect Google Docs, or what to click in Google Cloud for my own OAuth client.

With the built-in A1 client the answer is short: no Google Cloud setup, call [`start_login`](./start-login.md), then [`finish_login`](./finish-login.md). For your own client — needed for export, Markdown import and comments on documents this server did not create, for an API quota of your own, or when a Workspace admin blocks third-party apps — it hands the calling model the wizard text instead of letting it improvise: create or pick a Cloud project, enable **Google Docs API** and **Google Drive API**, configure the consent screen, create a **Desktop app** OAuth client and download its JSON — whose path then goes to [`set_client`](./set-client.md), so the secret never passes through the conversation.

## When to use it

Use it when the user asks how to connect or wants their own OAuth client, or whenever [`start_login`](./start-login.md) reports that no client is configured. It works with no credentials at all and makes no network call.

## What to provide

No parameters.

## What it returns

Which client is in use. With the built-in client: the two login steps and the scopes it requests (`documents` + `drive.file`), next to the own-client checklist and its scopes (`documents` + `drive`). With no client at all: the ordered setup steps, the Google Cloud console links, the exact OAuth scopes and the note that the downloaded JSON path goes to [`set_client`](./set-client.md) next.

## What changes in Google Docs

Nothing — the tool only produces text. The Cloud project changes when the user follows the steps in their browser.

## Example request

> Walk me through setting up Google Docs access — what do I create in Google Cloud?

## Errors and limitations

The own-client steps cannot be automated: creating a project, enabling the APIs and configuring the consent screen happen in Google's console under the user's own account. A consent screen left in Testing mode expires refresh tokens after seven days — publish the app or use an Internal Workspace app for long-lived access. The APIs must be enabled in the **same** project as the OAuth client, otherwise the first call fails with a 403 that looks like a permission problem.

## Related MCP tools

- [Save the OAuth client](./set-client.md) — `set_client`
- [Start the login](./start-login.md) — `start_login`
- [Connection status](./auth-status.md) — `auth_status`

## Technical details

- **Impact:** read-only
- **Group:** Connection
- **Source:** `setup_instructions` registered by `@a1-x-tech/mcp-google-auth` via `src/tools/auth.ts`
- [Full technical reference](../TOOLS.md)
- [All MCP capabilities](./index.md)
