Sbroenne.PowerPointMcp.CLI 0.3.4

dotnet tool install --global Sbroenne.PowerPointMcp.CLI --version 0.3.4
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Sbroenne.PowerPointMcp.CLI --version 0.3.4
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Sbroenne.PowerPointMcp.CLI&version=0.3.4
                    
nuke :add-package Sbroenne.PowerPointMcp.CLI --version 0.3.4
                    

PowerPoint MCP — CLI

Create and edit Microsoft PowerPoint presentations from terminal commands and scripts. Add slides, format text and shapes, update charts and tables, insert images, and write speaker notes using the installed PowerPoint desktop application on Windows.

Use pptcli on its own or alongside the PowerPoint MCP Server for AI assistants.

Windows only. Requires Microsoft PowerPoint (desktop) to be installed.

Install

dotnet tool install --global Sbroenne.PowerPointMcp.CLI

This installs the pptcli command.

How it works — a background daemon, not a cold start per command

Launching PowerPoint and tearing it down again can take 90-150 seconds. To avoid paying that cost on every single CLI invocation, pptcli keeps one PowerPoint instance alive in a small background daemon (pptcli service run) that is auto-started the first time you open or create a session, and reused by every subsequent command that references the same session id — even though each command is a separate OS process. This mirrors the architecture used by mcp-server-excel's CLI.

# Create a new presentation — this may auto-start the daemon (first PowerPoint launch cost).
pptcli session create C:\decks\demo.pptx
# {"success":true,"sessionId":"…","filePath":"C:\\decks\\demo.pptx"}

# Every subsequent command reuses the SAME PowerPoint process via --session/-s.
pptcli slide add-blank -s <SESSION_ID>
pptcli slide get-count -s <SESSION_ID>
pptcli notes set-notes-text -s <SESSION_ID> --slide-index 1 --text "Speaker notes"

# Save and close when you're done with the file (closing does not stop the daemon).
pptcli session close <SESSION_ID> --save

# Check on / manage the daemon directly.
pptcli service status
pptcli service stop
pptcli service stop --force   # stop only the verified service process, never PowerPoint

Every [ServiceCategory]-annotated Core domain (Presentation, Slide, Shape, TextFrame, Table, Chart, Image, Media, Notes, Layout, CustomShow) gets a generated pptcli <category> <action> -s <SESSION_ID> [options] command automatically — run pptcli <category> --help to see the actions and options available for that domain. (Export is not yet exposed via the CLI — a known, pre-existing generator conflict, unrelated to session handling.)

The daemon shuts down automatically after an idle period with no open sessions, or immediately via pptcli service stop.

Each pipe has an ownership record containing the service and PowerPoint process IDs plus start times. Forced cleanup validates the service identity and stops only that service, never PowerPoint: PowerPoint can share its process with other presentations. service status reports starting, running, unresponsive, or stopped, plus any known PowerPoint processes still running. If those PowerPoint records cannot be checked, powerPointProcessWarning explains the uncertainty without blocking status checks or service shutdown. Forced stopping still requires a verified service-process identity.

Interrupted work and safe shutdown

A cancelled command or an expired wait does not undo edits or close an existing session. PowerPoint may still be working. Run pptcli session list before retrying: each session's operation reports its state, whether execution is still pending, whether the wait expired, its start time, and any failure. Further work in that session is rejected while execution is pending; status and session-list requests remain available. This covers the whole request, including time spent waiting for the shared clipboard between calls into PowerPoint, not just the individual PowerPoint calls.

Stopping the service leaves unsaved or unfinished presentations open without saving them. This differs from pptcli session close <id>: explicit close without --save still discards changes. A forced service stop also leaves PowerPoint running, and cannot safely finish or undo an interrupted edit. Inspect the open presentation before continuing.

Session commands

Command Description
pptcli session create <path> Create a new presentation, return a session id.
pptcli session open <path> Open an existing presentation, return a session id.
pptcli session test <path> Validate that PowerPoint can open a presentation without retaining a session.
pptcli session close <id> [--save] Close a session, optionally saving first.
pptcli session list List open sessions and the state of their most recent work.

Service (daemon) commands

Command Description
pptcli service start Auto-start the daemon if it isn't already running.
pptcli service status Report the daemon state, responsiveness, session count, and uptime.
pptcli service stop [--force] Stop the service, preserving unsaved PowerPoint work; force stops only the verified service process.

Licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.3.4 152 10/24/2026
0.3.3 121 10/24/2026
0.3.2 151 10/8/2026
0.3.1 124 10/7/2026
0.3.0 156 10/2/2026
0.2.1 140 9/28/2026
0.2.0 139 9/11/2026
0.1.8 140 9/11/2026
0.1.7 144 9/8/2026
0.1.6 160 8/27/2026
0.1.5 136 8/25/2026
0.1.4 155 7/28/2026
0.1.3 139 7/28/2026
0.1.1 150 7/22/2026
0.1.0 159 7/11/2026
0.0.2 152 7/9/2026
0.0.1 153 7/9/2026