Skip to content

Gemini CLI

Gemini CLI connects to Upstream over Streamable HTTP and signs in with OAuth. You don’t need a token.

  1. Add Upstream for your user:

    Terminal window
    gemini mcp add --transport http --scope user upstream https://api.upstream.do/mcp

    Leave out --scope user to add it only to the current project.

  2. In Gemini CLI, run:

    /mcp auth upstream
  3. Gemini CLI opens Upstream in your browser. Sign in, choose the account to connect, and select Allow.

Add Upstream to ~/.gemini/settings.json. Gemini CLI uses httpUrl, not url, for Streamable HTTP servers:

{
"mcpServers": {
"upstream": {
"httpUrl": "https://api.upstream.do/mcp"
}
}
}

Then run /mcp auth upstream to sign in.

Run /mcp to check that upstream is connected, then ask:

“Use the Upstream MCP to show me my inbox”

You should see tool calls to list-inbox-tabs and get-inbox-tab-threads.

  • “Show me what needs my reply”
  • “Search my inbox for the Q3 proposal”
  • “Summarize that long thread from Jane”
  • “Draft a reply to the investor update”