Skip to content

Add pm2 to the MCP log-source allowlist#3

Open
TPAteeq wants to merge 1 commit into
codag-megalith:mainfrom
TPAteeq:feat/mcp-pm2-logs
Open

Add pm2 to the MCP log-source allowlist#3
TPAteeq wants to merge 1 commit into
codag-megalith:mainfrom
TPAteeq:feat/mcp-pm2-logs

Conversation

@TPAteeq

@TPAteeq TPAteeq commented May 26, 2026

Copy link
Copy Markdown

pm2 logs is a common read-only log source for Node deployments but wasn't reachable through the wrap MCP tool. Add pm2 to the allowlist and validate it with the existing <bin> logs prefix check, so mutating subcommands like pm2 flush / pm2 delete are still rejected.

Also surface pm2 in the wrap tool description (provider list, example, and allowlisted-shapes summary) so agents know it's available.

Includes allow/reject tests; go test ./..., build, and gofmt all pass.

`pm2 logs` is a common read-only log source for Node deployments but
wasn't reachable through the `wrap` MCP tool. Add `pm2` to the allowlist
and validate it with the existing `<bin> logs` prefix check, so mutating
subcommands like `pm2 flush` / `pm2 delete` are still rejected.

Also surface pm2 in the wrap tool description (provider list, example,
and allowlisted-shapes summary) so agents know it's available.
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