MCP.so
ログイン
C

Compare Xml MCP Server

@unitstack

基本情報

カテゴリ

その他

トランスポート

stdio

作者

unitstack

投稿者

unitstack

Compare Xml MCP Server について

概要はまだありません

Compare Xml MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "compare-xml": {
      "command": "npx",
      "args": [
        "@compare-xml/cli@latest",
        "--mcp"
      ]
    }
  }
}

Compare Xml MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

上のボタンで一時的なサンドボックスでこのサーバーを実行し、ツール一覧を取得できます。

概要

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, and unordered.
  • 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.

よくある質問

1

What array comparison strategies are available?

Three strategies: `byIndex` (default), `lcs` (minimal diff via Longest Common Subsequence), and `unordered` (multiset match).

2

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.

3

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.

4

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.

5

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.

コメント

「その他」の他のコンテンツ