使用说明
pkgx 主控程序
A. 模型上下文协议 可以通过以下方式运行任何开源工具的服务器
pkgx.
用法
- 安装
pkgx(无论是否,如果您不下载,我们都会为您下载) git clone https://github.com/pkgxdev/pkgx-mcp- 在MCP客户端中消费(配置示例见下文)
光标/克劳德配置
~/.cursor/mcp.json:~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"pkgx": {
"command": "/path/to/pkgx-mcp/main.ts"
}
}
}
或者没有 pkgx但是 随着 npx:
{
"mcpServers": {
"pkgx": {
"command": "npx",
"args": ["ts-node", "/path/to/pkgx-mcp/main.ts"]
}
}
}
MCP检查员
npx @modelcontextprotocol/inspector ts-node ./main.ts
建议提示
Use pkgx to run a series of git commands and generate statistics about this
repository.
安全
安全?哈。
但说真的,这是一个危险的工具。你让AI读取任何文件
你的电脑†。我们有资格逃跑 pkgx 在沙盒中,至少
流氓AI无法运行 rm -rf /但我们没有限制阅读,因为
似乎太局限了。
我们需要MCP协议的推进,以允许用户使用UI进行提示 批准人工智能本身无法完成的某些事情或类似的事情 那。
同时,使用时要格外小心。
†好吧,至少在macOS上,我们阻止了对
~/.ssh和~/.aws,PR 欢迎排除更多内容并添加Linux沙盒。
[!重要]
AI无法写入您的文件系统。
无论如何,在macOS上。在Linux上,我们需要你为我们宣传这一点。
