Skip to content
Gemini CLI

OfficeAgent.NET for Gemini CLI

io.github.ilia-sokolov/officeagent

Create and edit Word, PowerPoint, and Excel files with typed plans and safe previews

client:Gemini CLI transport:stdio runtime:nuget

Install OfficeAgent.NET in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "officeagent": {
      "command": "dnx",
      "args": [
        "OfficeAgent.Mcp",
        "--yes"
      ],
      "env": {
        "OfficeAgent__FileSystemConnections__0__ConnectionId": "<OfficeAgent__FileSystemConnections__0__ConnectionId>",
        "OfficeAgent__FileSystemConnections__0__RootPath": "<OfficeAgent__FileSystemConnections__0__RootPath>",
        "OfficeAgent__AllowCreation": "<OfficeAgent__AllowCreation>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

OfficeAgent.NET in other clients