PM

pkgxdev/mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

23 stars 4 forks 质量 56 趋势 10

pkgxdev/mcp 是从 https://github.com/pkgxdev/mcp. 导入的 MCP 服务器候选

概览

pkgxdev/mcp 是从 https://github.com/pkgxdev/mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

一个[模型上下文协议]服务器,可以通过以下方式运行任何开源工具 pkgx。

用途

  1. 安装[pkgx](或者不安装,我们会帮你下载)
  2. git clone https://github.com/pkgxdev/pkgx-mcp
  3. 在MCP客户端中进行消费(见下文配置示例)

光标/Claude配置

  • ~/.cursor/mcp.json:
  • ~/Library/Application Support/Claude/claude_desktop_config.json

或者不包含pkgx,但带npx):

MCP督察

建议提示

安全

保安?哈。

但说真的,这是个危险的工具。你让AI读取任何文件 你的电脑†。我们有点体面,在沙盒里运行pkgx,所以至少有 流氓AI无法运行rm -rf /。但我们没有限制读取,因为 感觉太受限了。

我们需要MCP协议的发展,允许用户被提示使用UI。 批准某些AI自己无法完成的事情,或者类似的事情 那个。

与此同时,使用时要极度谨慎。

†至少在macOS上,我们阻止读取到~/.ssh和~/.aws,PRs。 欢迎排除更多内容,加入Linux沙箱。

[!重要]

AI 无法写入你的文件系统。

至少在macOS上是这样。

本页由 AI 翻译,技术细节请以原文为准。

README

pkgx MCP

A Model Context Protocol server that can run any Open Source tool via pkgx.

Usage

  1. Install pkgx (or not, we download it for you if you don’t)
  2. git clone https://github.com/pkgxdev/pkgx-mcp
  3. Consume in an MCP client (see below for configuration examples)

Cursor/Claude Configuation

  • ~/.cursor/mcp.json:
  • ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "pkgx": {
      "command": "/path/to/pkgx-mcp/main.ts"
    }
  }
}

Or without pkgx, but with npx:

{
  "mcpServers": {
    "pkgx": {
      "command": "npx",
      "args": ["ts-node", "/path/to/pkgx-mcp/main.ts"]
    }
  }
}

MCP Inspector

npx @modelcontextprotocol/inspector ts-node ./main.ts

Suggested Prompts

Use pkgx to run a series of git commands and generate statistics about this
repository.

Security

Security? Hah.

But seriously, this is a dangerous tool. You are letting AI read any file on your computer†. We have the decency to run pkgx in a sandbox so at least a rogue AI can’t run rm -rf /. But we have not restricted reads because that seemed too limiting.

We need the MCP protocol to advance to allow the user to be prompted with UI to approve certain things that the AI cannot by itself do or something like that.

In the meantime USE WITH ABSURD AMOUNTS OF CAUTION.

† well, on macOS at least we prevent reads to ~/.ssh and ~/.aws, PRs welcome to exclude more and add Linux sandboxing.

[!IMPORTANT]

The AI cannot write to your file system.

On macOS anyway. On Linux we need you to PR that for us.

在 GitHub 查看完整 README

安装

npx ts-node /path/to/pkgx-mcp/main.ts
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "pkgx": { "command": "/path/to/pkgx-mcp/main.ts" } } }