Connecting Gemini CLI and Gemini Code Assist to PVX.AI

Overview

PVX.AI runs an MCP (Model Context Protocol) server inside AutoCAD, so an AI client can read the open drawing and run PVX.AI tools. In the Gemini family, the products that can use it are Gemini CLI and the agent mode of Gemini Code Assist in VS Code and IntelliJ. Both run their MCP client on your own computer, next to AutoCAD.

The Gemini app (web and mobile) and Gemini Enterprise cannot connect to PVX.AI. They reach MCP servers from Google’s servers and need a public HTTPS address, while the PVX.AI server only listens on your own computer.

Since June 18, 2026, Gemini CLI and the Gemini Code Assist IDE extensions no longer serve free Gemini Code Assist for individuals, Google AI Pro or Google AI Ultra accounts, and Login with Google no longer works for them. Those users can move to Google Antigravity; see the Antigravity article under Related. Access is unchanged for organizations with a Gemini Code Assist Standard or Enterprise license, and Gemini CLI remains available with paid Gemini API keys.


Prerequisites

  • Windows, with PVX.AI 2.15 or later installed in AutoCAD 2023 or newer.
  • A PVX.AI license that includes the Claude (MCP) integration.
  • Gemini CLI, or Gemini Code Assist in VS Code or IntelliJ, installed on the same computer as AutoCAD and signed in with an account that still has access (see above).

Step-by-Step Guide

1. Start AutoCAD and find the address

Start AutoCAD with PVX.AI and open a drawing. The server starts by itself at http://127.0.0.1:52780/mcp. If that port was busy it uses another one; the PowerShell snippet in Connecting Other MCP Clients to PVX.AI over HTTP shows the address in use. No token or password is needed.

2. Add PVX.AI to Gemini CLI

In a terminal, run:

gemini mcp add --scope user --transport http pvxai-solar-design http://127.0.0.1:52780/mcp

This writes the entry to your user settings file, %USERPROFILE%\.gemini\settings.json, so it works from any folder. You can also edit that file yourself. Use the key httpUrl: in Gemini CLI, url means the older SSE transport, which PVX.AI does not offer.

{
  "mcpServers": {
    "pvxai-solar-design": {
      "httpUrl": "http://127.0.0.1:52780/mcp"
    }
  }
}

3. Or use the bridge, which follows the port

A fixed address stops working when the port moves. The PVX.AI bridge finds the running AutoCAD by itself. Extract it once in PowerShell:

Copy-Item "$env:ProgramFiles\Autodesk\ApplicationPlugins\PVXAI.Cad.bundle\pvxai-solar-design.mcpb" "$env:USERPROFILE\pvxai-bridge.zip"
Expand-Archive "$env:USERPROFILE\pvxai-bridge.zip" "$env:USERPROFILE\pvxai-bridge"

Then register it as a local command instead of the URL (replace <you> with your Windows user name):

gemini mcp add --scope user pvxai-solar-design "C:\Users\<you>\pvxai-bridge\server\PVXAI.Bridge.exe"

Keep only one of the two entries.

4. Check that the tools are listed

Run gemini mcp list: pvxai-solar-design should show as connected. Inside a Gemini CLI session, type /mcp. It shows the server’s status, its 14 tools (such as system, query, solar_layout and solar_electrical) and its prompts.

5. Make a first request and answer the approvals

Start with a question that changes nothing, for example: “How many racks and strings are in this drawing, and what is the DC capacity?” Before each tool call Gemini CLI asks for approval: Proceed once, Always allow this tool, Always allow this server or Cancel. The Claude Desktop article lists what else you can ask; it works the same here.

6. Use the built-in prompts

Gemini CLI turns the six PVX.AI prompts into slash commands: /design_from_brief, /design_plant_from_kml, /capacity_study, /terrain_aware_design, /electrical_from_layout and /review_design. Give their inputs as named arguments:

/review_design
/capacity_study --targetMwp="50"
/design_plant_from_kml --kmlPath="C:\Sites\North\boundary.kmz" --targetCapacityMwp="40"

7. Gemini Code Assist in VS Code or IntelliJ

  • VS Code: agent mode reads the same %USERPROFILE%\.gemini\settings.json, so the entry from step 2 or 3 is enough. Run Developer: Reload Window, switch the Gemini Code Assist chat to agent mode and type /mcp to see the server.
  • IntelliJ: agent mode reads an mcp.json file in the IDE’s configuration directory, and Google’s examples there use local commands. Use the bridge from step 3: an mcpServers entry named pvxai-solar-design whose command is the full path to PVXAI.Bridge.exe, with each backslash doubled.

Menu names can differ between versions; Google’s Gemini CLI MCP documentation has the current details.


Tips & Recommendations

  • An action run through Gemini uses credits the same way as the same action on the ribbon.
  • Leave "trust" off for this server, and keep YOLO mode (auto-approve) off in Code Assist, so you see every change before it runs. Removing racks, clearing electrical design and resetting terrain also preview first and need a second, confirmed call.
  • Gemini cannot undo. Press Ctrl+Z in AutoCAD.
  • Do not set a short timeout on the entry. Long operations run as jobs that Gemini waits on in steps of up to 55 seconds.
  • Server shows as disconnected: check that AutoCAD is open with the PVX.AI tab on the ribbon and that the port has not moved, or use the bridge.
  • No MCP servers load at all: if Trusted Folders is on, Gemini CLI does not connect to MCP servers in a folder you marked untrusted. Start it from a trusted folder.
  • The HTTP entry answers 403: the request carried an Origin header the server refuses. Use the bridge route.
  • Gemini CLI or Code Assist will not sign you in: free and Google AI Pro or Ultra accounts can no longer use them and now use Antigravity.

Related