polterware/kit

MCP / AI Integration

Connect Polter to AI tools like Claude Code and Cursor via the Model Context Protocol.

Polter exposes an MCP (Model Context Protocol) server so AI tools can discover and execute commands natively. Instead of copy-pasting CLI invocations, your AI assistant can browse available commands, run pipelines, and manage infrastructure directly.

Installation

Automatic

The fastest way to register Polter as an MCP server:

polter mcp install

This adds the server to your local Claude Code config (scoped to the current project).

Project scope (shared via repo)

polter mcp install --project

Writes to .mcp.json in the repository root so every collaborator gets the same setup.

Global scope (all projects)

polter mcp install --global

Registers the server in your global Claude Code settings.

Manual

If you prefer to register manually:

claude mcp add polter -- npx -y -p @polterware/polter@latest polter-mcp

Or add this entry directly to ~/.claude/settings.json:

{
  "mcpServers": {
    "polter": {
      "command": "npx",
      "args": ["-y", "-p", "@polterware/polter@latest", "polter-mcp"]
    }
  }
}

Management

Update

Re-register the MCP server with the latest version:

polter mcp update

This clears the npx cache and re-registers with @latest, ensuring you always run the newest release.

FlagEffect
--projectUpdate the project-scoped .mcp.json registration
--globalUpdate the global Claude Code registration

Status

Check your current MCP server installation:

polter mcp status

Shows the installed version, latest available version on npm, and registration status for each scope (local, project, global).

Remove

Unregister the MCP server:

polter mcp remove
FlagEffect
--projectRemove the project-scoped registration
--globalRemove the global registration

Available Tools

Once connected, the AI client can call these tools:

ToolDescriptionInput
polter_list_commandsBrowse and filter available commandstool?
polter_run_commandExecute a command by IDcommandId, args?, flags?
polter_statusShow tool versions and project linkage
polter_list_pipelinesList saved pipelines
polter_run_pipelineExecute a pipeline by namename
polter_create_pipelineCreate a new pipelinename, steps, description?, source?
polter_update_pipelineUpdate an existing pipelinename, description?, steps?
polter_delete_pipelineDelete a pipelinename
polter_planDry-run declarative diff from polter.yaml
polter_applyApply declarative changes

polter_apply executes real commands

polter_apply runs actual CLI commands against your linked projects (deploys, secret writes, domain changes). These actions are not reversible. Always run polter_plan first to review what will change.

Example Workflows

Natural language prompts and the tools they trigger:

PromptTool CalledArguments
"deploy to production"polter_run_commandcommandId: "vercel:deploy:prod"
"create a PR"polter_run_commandcommandId: "gh:pr:create"
"what would change if I apply?"polter_plan
"run the deploy pipeline"polter_run_pipelinename: "deploy"
"show all supabase commands"polter_list_commandstool: "supabase"

The AI assistant resolves the right tool and arguments from your natural language request — no need to remember command IDs.

Supported Clients

  • Claude Code — full support via polter mcp install
  • Cursor — add the server in Cursor's MCP settings
  • Any client that implements the Model Context Protocol

On this page