Skip to content
VS Code

OfficeAgent.NET for VS Code

io.github.ilia-sokolov/officeagent

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

client:VS Code transport:stdio runtime:nuget

Install OfficeAgent.NET in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "officeagent--filesystemconnections--0--connectionid",
      "description": "OfficeAgent__FileSystemConnections__0__ConnectionId",
      "password": true
    },
    {
      "type": "promptString",
      "id": "officeagent--filesystemconnections--0--rootpath",
      "description": "OfficeAgent__FileSystemConnections__0__RootPath",
      "password": true
    },
    {
      "type": "promptString",
      "id": "officeagent--allowcreation",
      "description": "OfficeAgent__AllowCreation",
      "password": true
    }
  ],
  "servers": {
    "officeagent": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "OfficeAgent.Mcp",
        "--yes"
      ],
      "env": {
        "OfficeAgent__FileSystemConnections__0__ConnectionId": "${input:officeagent--filesystemconnections--0--connectionid}",
        "OfficeAgent__FileSystemConnections__0__RootPath": "${input:officeagent--filesystemconnections--0--rootpath}",
        "OfficeAgent__AllowCreation": "${input:officeagent--allowcreation}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

OfficeAgent.NET in other clients