-
Notifications
You must be signed in to change notification settings - Fork 132
add: github.com/PromptExecution/pm2-mcp #11219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| # pm2-mcp pkgx package | ||
|
|
||
| This pantry entry installs PM2 with Model Context Protocol (MCP) server support. PM2 is a production process manager for Node.js applications, and this fork adds MCP server capabilities for managing processes through MCP-compatible clients like Claude Code and Codex. | ||
|
|
||
| ## Features | ||
|
|
||
| - **PM2 Process Manager**: All standard PM2 functionality for managing Node.js applications | ||
| - **MCP Server**: Built-in `pm2-mcp` binary that exposes process management via MCP | ||
| - **12 MCP Tools**: Process lifecycle management, logging, and monitoring | ||
| - **2 MCP Resources**: Real-time process list and detailed process information | ||
| - **Sandbox Detection**: Automatically adapts to sandboxed environments | ||
| - **Multiple Transports**: Supports stdio and HTTP transports | ||
|
|
||
| ## Installation | ||
|
|
||
| ```bash | ||
| # Install with pkgx | ||
| pkgx install github.com/PromptExecution/pm2-mcp | ||
|
|
||
| # Or use directly | ||
| pkgx pm2-mcp --help | ||
| pkgx pm2 --version | ||
| ``` | ||
|
|
||
| ## Packaging details | ||
|
|
||
| - Downloads source tarball from GitHub releases | ||
| - Installs using `npm install --global` to `{{prefix}}` | ||
| - Provides all PM2 binaries: `pm2`, `pm2-dev`, `pm2-docker`, `pm2-runtime`, `pm2-mcp` | ||
| - Requires Node.js >= 22.0.0 | ||
| - Version discovery via GitHub tags (strips leading `v`) | ||
|
|
||
| ## Usage with MCP Clients | ||
|
|
||
| ### Claude Code | ||
| ```bash | ||
| claude mcp add pm2-mcp -- pm2-mcp | ||
| ``` | ||
|
|
||
| ### Codex | ||
| ```bash | ||
| codex mcp add pm2-mcp -- pm2-mcp | ||
| ``` | ||
|
|
||
| ## MCP Tools Available | ||
|
|
||
| - `pm2_list_processes` - List all PM2 processes | ||
| - `pm2_describe_process` - Get detailed process information | ||
| - `pm2_start_process` - Start a new process | ||
| - `pm2_restart_process` - Restart a process | ||
| - `pm2_reload_process` - Zero-downtime reload (cluster mode) | ||
| - `pm2_stop_process` - Stop a process | ||
| - `pm2_delete_process` - Delete a process | ||
| - `pm2_flush_logs` - Flush process logs | ||
| - `pm2_reload_logs` - Rotate and reopen logs | ||
| - `pm2_dump` - Save process list to disk | ||
| - `pm2_tail_logs` - Read last N lines from logs | ||
| - `pm2_kill_daemon` - Stop PM2 daemon | ||
|
|
||
| ## More Information | ||
|
|
||
| - **Repository**: https://github.com/PromptExecution/pm2-mcp | ||
| - **Original PM2**: https://github.com/Unitech/pm2 | ||
| - **MCP Specification**: https://modelcontextprotocol.io/ | ||
| - **Documentation**: See README.md in the repository for complete MCP server documentation | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| distributable: | ||
|
||
| url: https://github.com/PromptExecution/pm2-mcp/archive/refs/tags/{{version.tag}}.tar.gz | ||
| strip-components: 1 | ||
|
|
||
| versions: | ||
| github: PromptExecution/pm2-mcp/tags | ||
|
|
||
| description: PM2 with Model Context Protocol (MCP) server support for process management | ||
| homepage: https://github.com/PromptExecution/pm2-mcp | ||
| license: AGPL-3.0 | ||
|
|
||
| dependencies: | ||
| nodejs.org: '>=22' | ||
|
|
||
| build: | ||
| script: | ||
| - npm install . --omit=dev --legacy-peer-deps --global --prefix="{{prefix}}" | ||
|
|
||
| provides: | ||
| - bin/pm2 | ||
| - bin/pm2-dev | ||
| - bin/pm2-docker | ||
| - bin/pm2-runtime | ||
| - bin/pm2-mcp | ||
|
|
||
| test: | ||
| script: | ||
| - pm2-mcp --help | ||
| - pm2 --version | ||
| - test "$(pm2 --version)" = "{{version.marketing}}" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package directory path uses incorrect casing. According to pkgx conventions, GitHub project paths should use lowercase for the directory structure even when the actual GitHub organization name uses mixed case.
The directory should be:
Not:
This matches the pattern used by the sister package
just-mcpwhich is correctly located atprojects/github.com/promptexecution/just-mcp/while still referencinggithub: PromptExecution/just-mcp/tagsin the versions field and usingPromptExecutionin URLs.