Connect Gemini
Google ships several Gemini clients, and each adds remote MCP servers in its own place. The Gemini app calls them custom apps; Gemini CLI and Gemini Code Assist read them from settings.json; Gemini Enterprise has an admin register them for the team.
| Surface | Connection | Status |
|---|---|---|
| Gemini app (gemini.google.com, mobile) | Custom app in Settings → Connected Apps | Supported, see below |
| Gemini CLI | httpUrl server with OAuth in settings.json | Supported, see below |
| Gemini Code Assist (VS Code, JetBrains) agent mode | Same settings.json | Supported, see below |
| Gemini Enterprise | Custom MCP server added by an admin | Supported, needs OAuth client credentials |
Gemini app
Section titled “Gemini app”-
On a computer, go to gemini.google.com. At the bottom, select Settings, then Connected Apps.
-
Under Custom apps, select Add a custom app and enter
https://mcp.scrive.com/mcpas the MCP server URL. Leave Advanced features closed and select Next. -
Gemini opens the Scrive sign-in. Sign in and approve access.
-
In a new chat, type
@, select Scrive and ask:@Scrive Which of my documents are still waiting to be signed?
Gemini asks you to confirm every write action, such as start_signing, remind_document or cancel_document, before it runs.
To pause the connection, turn Scrive off under Custom apps. To remove it, select More details → Remove app.
Gemini CLI
Section titled “Gemini CLI”-
Add the server.
--transport httpmarks it as a remote Streamable HTTP server and-s userstores it in~/.gemini/settings.jsonfor every project (the default scope,project, writes.gemini/settings.jsonin the current directory).Terminal window gemini mcp add -s user --transport http scrive https://mcp.scrive.com/mcpThis writes the following, which you can also add by hand:
~/.gemini/settings.json {"mcpServers": {"scrive": {"httpUrl": "https://mcp.scrive.com/mcp"}}} -
Start Gemini CLI and sign in:
/mcp auth scriveGemini CLI discovers Scrive’s authorization server from the server’s metadata and opens the Scrive sign-in in your browser. Approve access and return to the terminal.
/mcpthen lists the server, its status and the Scrive tools. Tokens are stored in~/.gemini/mcp-oauth-tokens.json. -
Ask:
List my five most recently changed documents in Scrive.
Leave trust unset (or false) for this server so Gemini CLI asks before running start_signing, remind_document, cancel_document, start_flow and delete_flow_draft.
To remove the server, run gemini mcp remove scrive.
Gemini Code Assist
Section titled “Gemini Code Assist”Gemini Code Assist agent mode in VS Code reads the same ~/.gemini/settings.json, so the mcpServers entry above works unchanged. Open agent mode, run /mcp to check that the Scrive tools are listed, complete the sign-in when prompted, and ask:
Which of my Scrive documents are pending signature?
In JetBrains IDEs, put the same entry in an mcp.json file in the IDE’s configuration directory. The /mcp commands are not available there.
Gemini Enterprise
Section titled “Gemini Enterprise”In Gemini Enterprise an administrator adds the Scrive MCP once for the team, and each user then signs in with their own Scrive account. Google’s form does not discover the OAuth settings from the server, so the admin enters them by hand, including a client ID and secret issued by Scrive. See When you need a client ID and secret to request one.
- Business edition: a team admin opens Settings & help, selects the team, then Manage team → Connected apps → Add MCP Server.
- Other editions: an admin opens Gemini Enterprise → Data stores → Create data store in the Google Cloud console, chooses Custom MCP Server and then Add MCP server. Register
https://vertexaisearch.cloud.google.com/oauth-redirectas the redirect URL for the Scrive client.
Enter these values, choosing OAuth 2.0 as the authentication:
| Field | Value |
|---|---|
| MCP server URL | https://mcp.scrive.com/mcp |
| Authorization URL | https://oauth2.scrive.com/oauth2/auth |
| Token URL | https://oauth2.scrive.com/oauth2/token |
| Client ID and Client Secret | Issued by Scrive |
| Scopes | full |
| PKCE support | On, where the form offers it |
The connection is disabled when it is created. Enable it to make Scrive visible to the team.
