DL

dave-london/pare

开发工具

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

141 stars 15 forks 质量 89 趋势 20MIT

dave-london/pare 是从 https://github.com/dave-london/pare. 导入的 MCP 服务器候选人。

概览

dave-london/pare 是从 https://github.com/dave-london/pare. 导入的 MCP 服务器候选人。

概述(AI 翻译)

  帕雷

为AI代理提供可靠、结构化的CLI输出——不再解析脆弱的终端文本。

Pare提供MCP服务器,将常见的开发工具(git、npm、docker、test runner等)包裹起来,并返回干净、经过模式验证的JSON,而非原始终端文本。代理获得可直接操作的类型数据,无需脆弱的字符串解析。

问题

解析CLI输出较为脆弱。原始终端文本包括ANSI转义码、装饰性标题、进度条、特定地区的格式以及平台差异,这些都会以微妙的方式破坏代理的工作流程。一个在macOS上运行良好的git status代理,可能因输出格式改变而在Windows上失败。测试运行者的摘要行可能会在版本间切换,悄然破坏正则表达式。

Pare通过返回经过模式验证的JSON,且字段名称一致,无论平台、工具版本或地点如何,消除了这整类错误。额外好处是,结构化输出显著更小——代理每次工具调用使用更少的令牌:

工具命令 原始标记 Pare 标记 约简

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

README

以下为原文 README 节选,完整内容请查看原文。

  Pare

Reliable, structured CLI output for AI agents — no more parsing fragile terminal text.

Pare provides MCP servers that wrap common developer tools (git, npm, docker, test runners, etc.) and return clean, schema-validated JSON instead of raw terminal text. Agents get typed data they can act on directly, without brittle string parsing.

The Problem

Parsing CLI output is fragile. Raw terminal text includes ANSI escape codes, decorative headers, progress bars, locale-specific formatting, and platform differences that break agent workflows in subtle ways. An agent that works fine with git status on macOS may fail on Windows because the output format changed. A test runner’s summary line might shift between versions, silently breaking a regex.

Pare eliminates this entire class of errors by returning schema-validated JSON with consistent field names, regardless of platform, tool version, or locale. As a bonus, structured output is significantly smaller — agents use fewer tokens per tool call:

Tool Command Raw Tokens Pare Tokens Reduction
docker build (multi-stage, 11 steps) 373 20 95%
git log --stat (5 commits, verbose) 4,992 382 92%
npm install (487 packages, warnings) 241 41 83%
vitest run (28 tests, all pass) 196 39 80%
cargo build (2 errors, help text) 436 138 68%
pip install (9 packages, progress bars) 288 101 65%
cargo test (12 tests, 2 failures) 351 190 46%
在 GitHub 查看完整 README

安装

npx -y @paretools/git
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "pare-git": { "command": "npx", "args": ["-y", "@paretools/git"], "env": { "PARE_GIT_TOOLS": "status,log,diff,show" } } } }