Compare Xml
@unitstack
关于 Compare Xml
暂无概览
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"compare-xml": {
"command": "npx",
"args": [
"@compare-xml/cli@latest",
"--mcp"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Compare Xml?
Compare Xml is a toolkit for structured XML comparison — it finds what changed between two XML documents, with control over how keys, values, and arrays are matched. It provides a core library, a command-line tool, an MCP server, and an agent skill for AI coding assistants.
How to use Compare Xml?
Install the CLI globally with npm install -g @compare-xml/cli, then run compare-xml base.xml contrast.xml. For programmatic use, install the core library with npm install @compare-xml/core and call its compareXML function. To use the MCP server, add a config entry with command npx @compare-xml/cli@latest --mcp. An agent skill can be installed via npx skills add unitstack/compare-xml.
Key features of Compare Xml
- Deep comparison of XML elements, attributes, arrays, and text values.
- Three array comparison strategies:
byIndex,lcs, andunordered. - Case-insensitive key and/or value matching.
- Path tracking with both segment-array and dot-notation forms.
- CLI with table or JSON output, reading from inline strings or files.
- Built-in MCP server for MCP-aware AI assistants.
- Agent Skill that works in Claude Code, OpenAI Codex CLI, and others.
- Full TypeScript types.
Use cases of Compare Xml
- Finding structural differences between two XML configuration files.
- Programmatically detecting additions, deletions, and value changes in XML data.
- Integrating XML diff capabilities into an AI assistant via the MCP protocol.
- Comparing XML payloads in automated testing or CI/CD pipelines.
- Teaching AI coding assistants to perform XML comparison on demand using the agent skill.
FAQ from Compare Xml
What array comparison strategies are available?
Three strategies: byIndex (default), lcs (minimal diff via Longest Common Subsequence), and unordered (multiset match).
How can I get machine-readable output from the CLI?
Use the --json-export flag to produce JSON output instead of the default table format.
What are the runtime requirements for using Compare Xml?
Development requires Node.js 20 or higher and pnpm. The CLI and library can be used with any Node.js environment that meets the package dependencies.
How do I use the MCP server?
Add a configuration entry with "command": "npx" and "args": ["@compare-xml/cli@latest", "--mcp"] under mcpServers in your MCP client settings.
How do I install the agent skill for AI coding assistants?
Run npx skills add unitstack/compare-xml — it auto-detects installed agents and drops the skill into each one. The skill file follows the open Agent Skills format.
其他 分类下的更多 MCP 服务器
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
ghidraMCP
LaurieWiredMCP Server for Ghidra
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
评论