Skip to content

Conversation

@elasticdotventures
Copy link

  • chore: require Node.js 22+
  • chore: sync lockfile after install
  • Add MCP server test harness
  • Update dependencies locks
  • chore: feature bump
Q A
Bug fix? yes/no
New feature? yes/no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #1234, #5678
License MIT
Doc PR https://github.com/pm2-hive/pm2-hive.github.io/pulls

Copilot AI review requested due to automatic review settings December 1, 2025 12:31
Copilot finished reviewing on behalf of elasticdotventures December 1, 2025 12:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Model Context Protocol (MCP) server support to PM2, requiring Node.js 22+ as a minimum version. The main additions include a complete MCP server implementation exposing PM2 process management as MCP tools/resources, comprehensive test coverage using the MCP SDK test harness, and updated packaging configurations.

  • Added MCP server with stdio transport exposing PM2 operations as protocol tools and resources
  • Implemented comprehensive test suite for MCP server functionality
  • Updated minimum Node.js requirement from 16.0.0 to 22.0.0 across all packaging files
  • Added new dependencies: @modelcontextprotocol/sdk, zod for schema validation

Reviewed changes

Copilot reviewed 8 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/mcp/server.mocha.js New comprehensive test suite for MCP server using InMemoryTransport
test/unit.sh Added MCP server tests to unit test runner
lib/mcp/server.js New MCP server implementation with PM2 tools and resources
bin/pm2-mcp New executable entry point for MCP server
package.json Updated Node.js requirement to 22+, added MCP and zod dependencies
pnpm-lock.yaml New lockfile with MCP SDK and dependencies
package-lock.json Updated lockfile with new dependencies (appears incomplete/truncated)
packager/debian/control Updated Node.js dependency to >= 22.0.0
packager/build-deb-rpm.sh Updated RPM Node.js dependency to >= 22.0.0
packager/alpine/pm2/APKBUILD Updated Alpine package Node.js dependency to >= 22
README.md Added MCP server documentation and updated supported Node.js version
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant