Skip to main content
Glama
Puppet Master MCP Server

Puppet Master MCP Server

by ldco

Puppet Master MCP Server

MCP (Model Context Protocol) server providing 26 tools for Puppet Master framework operations — initialization, development, database, deployment, builds, linting, testing, configuration, knowledge retrieval, contribution workflows, and code reviews.

Quick Start

git clone <repo-url> pm-mcp-server
cd pm-mcp-server
npm install

Global Registration (Kilo)

Add to ~/.config/kilo/kilo.json:

{
  "mcp": {
    "puppetmaster": {
      "type": "local",
      "command": ["node", "/path/to/pm-mcp-server/dist/index.js"],
      "enabled": true
    }
  }
}

Or use tsx to run from source (enables dynamic TS config imports):

"command": ["npx", "tsx", "/path/to/pm-mcp-server/src/index.ts"]

Local Registration (Project)

Add to .kilo/kilo.json in a project:

{
  "mcp": {
    "puppetmaster": {
      "type": "local",
      "command": ["node", "../pm-mcp-server/dist/index.js"],
      "enabled": true
    }
  }
}

Related MCP server: Magento 2 Development MCP Server

Tools (26)

Category

Tools

Config

pm_config_get, pm_config_set

Dev

pm_init, pm_dev, pm_status

Database

pm_db_push, pm_db_seed, pm_db_reset, pm_db_migrate, pm_db_studio

Deploy

pm_deploy, pm_rollback, pm_deploy_logs, pm_setup

Build/Quality

pm_build, pm_lint, pm_test

Knowledge

pm_knowledge, pm_knowledge_entrypoint, pm_knowledge_contributing

Contributing

pm_contribute_list, pm_contribute_read, pm_contribute_export, pm_contribute_apply

Review

pm_review_checklist, pm_review_run

How It Works

The server uses process.cwd() to detect the current PM project root (set automatically by the host agent). Each tool operates on the project in the current working directory. From a non-PM directory, tools report "no config found" gracefully.

Build

npm run build    # TypeScript → dist/

Pre-built dist/ is committed for users who want to run with node directly without tsx.

License

MIT

Available Tools

26 tools
pm_buildA

Run a production build of the Puppet Master project. Creates optimized output in .output/ directory. Only use when explicitly requested for deployment or testing.

Inputs: no named parameters.

pm_config_getA

Read Puppet Master configuration values. Returns pmMode, entities, features, modules, sections, locales, colors, admin settings.

Inputs: key.

pm_config_setA

Modify a Puppet Master configuration value directly in project/puppet-master.config.ts. Supports dot-notation keys. WARNING: rewrites the config file as JavaScript.

Inputs: key (required), value.

pm_contribute_applyA

Read a .pm-contribution.md file and display its contents for manual application. Lists changed files, affected domains, dependencies, and testing instructions. Does NOT auto-apply — the AI agent reviews and applies.

Inputs: file.

pm_contribute_exportA

Export current git changes as a PM contribution document. Generates a .pm-contribution.md file with diffs, descriptions, and testing instructions. Use this when you fix a bug or add a feature in a client project that should be contributed back to the PM framework.

Inputs: summary, type, problem, solution, +2 more.

pm_contribute_listA

List all existing contribution documents in docs/contributing/. These are fixes/features exported from client projects that can be applied to the PM framework.

Inputs: status.

pm_contribute_readA

Read a specific contribution document. Returns the full content for review or application.

Inputs: file (required).

pm_db_migrateB

Run Drizzle migrations against the database.

Inputs: no named parameters.

pm_db_pushA

Push Drizzle ORM schema to SQLite database. Creates the database file and applies schema changes.

Inputs: no named parameters.

pm_db_resetA

Reset the database: delete the SQLite file, re-run migrations, and seed with initial data.

Inputs: no named parameters.

pm_db_seedB

Seed the database with initial data (users, roles, sample content). Requires an existing database.

Inputs: no named parameters.

pm_db_studioB

Open Drizzle Studio (web UI for browsing the database).

Inputs: no named parameters.

pm_deployA

Deploy the Puppet Master project to its configured VPS. Builds Docker image, pushes via SSH, runs Ansible deploy playbook, regenerates Traefik config, and health checks.

Inputs: no named parameters.

pm_deploy_logsA

View deployment logs from the VPS.

Inputs: no named parameters.

pm_devA

Manage the PM development server. Start, stop, restart, or check status. The dev server runs on port 3000 by default.

Inputs: action, port.

pm_initA

Initialize a Puppet Master project. Checks dependencies, reads pmMode from config, and guides through setup (develop or build mode). Optionally starts the dev server.

Inputs: mode, startDev.

pm_knowledgeC

Load the Puppet Master framework knowledge base. Returns CSS system, component architecture, composables, database schema, API patterns, config system, and RTL reference.

Inputs: topic.

pm_knowledge_contributingC

List or read PM contribution documents. Contributions are fixes/features exported from client projects for application back into the PM framework. Stored in docs/contributing/.

Inputs: action, file.

pm_knowledge_entrypointA

Load greenfield or brownfield entrypoint documentation. Greenfield = new project from PM baseline. Brownfield = migrating existing codebase into PM.

Inputs: mode.

pm_lintB

Run linting on the project. Supports ESLint and formatting checks. Can auto-fix issues with the fix option.

Inputs: fix, format.

pm_review_checklistA

Get the review checklist for a given PM specialty. Returns a structured checklist of items reviewers should verify.

Inputs: specialty.

pm_review_runB

Run automated checks relevant to a given specialty domain. Executes lint, typecheck, or test commands to validate code quality.

Inputs: domain, fix.

pm_rollbackB

Roll back the deployment to the previous Docker image.

Inputs: no named parameters.

pm_setupB

Provision the VPS with Docker, Dockge, Traefik, and SSH setup.

Inputs: no named parameters.

pm_statusA

Display full Puppet Master project status: config mode, database state, dev server, enabled modules, features, and sections.

Inputs: detail.

pm_testA

Run tests for the Puppet Master project. Supports unit tests, API tests, E2E tests (Playwright), and the full staged suite.

Inputs: suite.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 26 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, such as separate tools for config get/set, each database operation, and contribution actions. However, there is potential overlap between pm_contribute_list and pm_knowledge_contributing, and between pm_knowledge variations, which causes slight ambiguity.

    Naming Consistency3/5

    Tools consistently use the 'pm_' prefix, but naming patterns vary: some are single-word verbs (pm_build, pm_init) while others follow a noun_verb pattern (pm_config_get, pm_db_migrate). This inconsistency, though not chaotic, reduces predictability.

    Tool Count4/5

    With 26 tools, the set is on the higher side but remains well-scoped to the Puppet Master ecosystem, covering development, database, deployment, contributions, and knowledge. A few tools could be consolidated (e.g., knowledge and contribute overlap), but overall the count is appropriate.

    Completeness4/5

    The tool surface covers the main lifecycle: init, dev, build, test, lint, config, db operations, deploy, rollback, and contributions. Some areas like monitoring or version management are absent but are not core to the stated purpose. Minor gaps exist, such as no direct tool for managing environment variables.

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      B
      quality
      Not graded
      maintenance
      Enables comprehensive Git and GitHub operations through 30 DevOps tools including repository management, file operations, workflows, and advanced Git features. Provides complete Git functionality without external dependencies for seamless integration with Gitea and GitHub platforms.
      18
      819 npm
      -
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI agents to interact with Magento 2 development environments through comprehensive tools for module management, database operations, cache control, configuration management, and system diagnostics. Supports complete development workflows from module creation to deployment and troubleshooting.
      28
      178 npm
      41
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      A comprehensive development toolkit with 23 tools covering code quality analysis, development efficiency, and project management. Enables AI-assisted code review, test generation, performance analysis, SQL generation, UI component creation, and automated project documentation.
      29
      516 npm
      41
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables interaction with Bitbucket Cloud through 25+ tools for managing repositories, pull requests, branches, commits, issues, pipelines, and code search with OAuth 2.0 authentication.
      34
      13 npm
      1
      MIT