Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.logic.inc/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Gemini CLI is Google’s command-line tool for AI-assisted software development. You can connect your Logic MCP server to make Logic agents available during coding sessions.

Prerequisites

Adding Logic MCP Server

Using Gemini Commands

Important: Run this command in your terminal, not within a Gemini CLI session.
Add your Logic MCP server using the gemini mcp add command:
gemini mcp add --transport http --scope user [SERVER_NAME] [MCP_SERVER_URL]
Parameters:
  • --transport http - Required for HTTP-based MCP servers like Logic
  • --scope user - Sets the server globally for all projects (omit for project-specific configuration)
  • [SERVER_NAME] - A name to identify this server (e.g., “logic-docs”)
  • [MCP_SERVER_URL] - Your Logic MCP server URL from organization settings
Omit --scope user to configure the server for only the current project directory.

Managing MCP Servers

List configured servers:
gemini mcp list
Remove a server:
gemini mcp remove [SERVER_NAME]

Using Logic Agents

Once configured, Logic agents are available in your Gemini CLI sessions.

Verifying Your Connection

To check if your Logic MCP server is connected:
  1. Run gemini mcp list in your terminal
  2. Verify your Logic server shows as “Connected”
If the server appears with a Connected status, Logic agents are available for use.

Accessing Logic Agents

Gemini CLI can automatically access your Logic agents based on the conversation context. You can:
  • Ask Gemini CLI to use specific Logic agents by name
  • Let Gemini CLI discover and suggest relevant Logic agents
  • Execute Logic agents with parameters as needed
Example usage:
Can you run the "code-review" Logic agent on the current branch?
Gemini CLI will execute the Logic agent and incorporate the results into its response.
Long-running Logic agents are handled asynchronously. Learn more about async task execution.
Loop Detection WarningWhen running long-running Logic agents, Gemini CLI may display a “potential loop detected” warning due to repeated polling of the execution status. When prompted, select “Disable loop detection for this session” to allow the async task to complete.

Next Steps