Posting
$ posting 社区开源 低风险Posting(darrenburns/posting)将 HTTP 请求以可读的 .posting.yaml 文件保存在代码仓库中。除现代化的 Textual TUI 外,还提供 posting run <request> --json 无头运行器以及 posting remote 远程驱动接口,兼顾人机协作与 CI 自动化。
brew install posting posting 直接在仓库内使用本地 .env 密钥运行纳入 Git 版本控制的 .posting.yaml 请求并输出 --json,避免在 MCP 中重复定义 HTTP 接口。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
posting run ... --json 可无头输出结构化 JSON 响应且支持 posting remote 编排,但直接运行 posting 会进入 TUI。
- Headless
posting run --jsonoutputs status, headers, and body as JSON - Supports
posting remotefor driving active sessions
纯文本 .posting.yaml 便于在执行前审计,且 posting run 会拒绝内嵌脚本以避免隐蔽副作用。
- Plain YAML request definitions auditable in Git
- Headless runner rejects embedded scripts for safety
支持 brew install posting、pip install posting 与 uvx posting,覆盖 macOS、Linux 与 Windows。
- Easy zero-setup execution via
uvx postingor Homebrew
用同一套 .posting.yaml 集合同时服务开发者 TUI 调试与 CI/Agent 自动化。
- Shared
.posting.yamlformat for both humans and CI/agents
持续活跃维护的 Apache-2.0 开源项目(darrenburns/posting)。
- Apache-2.0
darrenburns/postingrepository
posting.sh 官方指南详细说明了无头运行器、.env 变量与 .posting.yaml 结构。
- Official guide at posting.sh/guide/
安全边界、鉴权与放权指南
结合本地 .posting.yaml 集合,从 --env / -e 指定的 .env 文件加载环境变量与密钥。
Apache-2.0 开源 Python CLI,完全免费。
# Posting (posting) Agent Rules - Never run bare `posting` in agent shells because it starts a TUI; use `posting run <file> --json`. - Always pass `--collection <dir>` and `--env <file>` explicitly. - Inspect `.posting.yaml` method (`GET` vs `POST`/`DELETE`) before invoking `posting run`.
Agent 高频安全命令配方
只读查询(安全推荐)
posting run api/health.posting.yaml --collection ./requests --env staging.env --json
在不启动 TUI 的情况下执行 .posting.yaml 请求,并以 JSON 输出状态码、响应头与响应体。
posting remote list
查看可供 posting remote send 调用的运行中 Posting 实例。
受控写入与预演
posting run api/create-item.posting.yaml --collection ./requests --env staging.env --json
执行仓库中的 POST/PUT .posting.yaml 请求并返回结构化 JSON 结果。
核心优势
- +
posting run --json让 Agent 直接复用开发者提交到 Git 的.posting.yaml请求集合。 - + 无头模式主动拦截内嵌脚本,保证执行行为可预测。
注意事项与踩坑点
- ! 直接执行
posting --collection <dir>会启动全屏 TUI 而非立即退出。 - ! 依赖前置 Python 脚本的请求会被
posting run拒绝执行。