在代理接触开放互联网前阻止出站、MCP提示注入与秘密泄露(使用Pipelock)
在信任代理访问本地机密之前,为代理网络流量、工具调用和MCP流量设置内联防火墙与隔离层。
前置条件
Homebrew 或 Go、终端、支持的代理运行时或IDE集成
安装
使用与您环境匹配的上游安装或配置路径:
- brew install luckyPipewrench/tap/pipelock
- docker pull ghcr.io/luckypipewrench/pipelock:latest
- go install github.com/luckyPipewrench/pipelock/cmd/pipelock@latest
- docker run -p 8888:8888 -v ./pipelock.yaml:/config/pipelock.yaml:ro
上游的要求和注意事项:
- pipelock check --url "https://docs.python.org/3/" # 允许
-
Docker
-
从源码安装(需要Go 1.25+)
基本用法或入门笔记:
-
bash
-
设置(自动发现IDE配置、生成配置、验证检测)
-
提取自上游文档:https://raw.githubusercontent.com/luckyPipewrench/pipelock/HEAD/README.md