Skip to content

Commit 5350303

Browse files
committed
fix: mcp bin and readme
1 parent 1665657 commit 5350303

File tree

3 files changed

+44
-5
lines changed

3 files changed

+44
-5
lines changed

packages/diff-mcp/README.md

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img src="demos/html-demo/logo.svg" width="48px" align="center" alt="jsondiffpatch logo" />
2+
<img src="../../demos/html-demo/logo.svg" width="48px" align="center" alt="jsondiffpatch logo" />
33
<h1 align="center">diff-mcp</h1>
44
<p align="center">
55
<a href="https://jsondiffpatch.com">jsondiffpatch.com</a>
@@ -21,9 +21,43 @@
2121

2222
powered by [jsondiffpatch](https://github.com/benjamine/jsondiffpatch)
2323

24+
## Features
25+
2426
- compare text (using text diff powered by [google-diff-match-patch](http://code.google.com/p/google-diff-match-patch/) )
25-
- compare data (json, json5, yaml, toml, etc.) and get a readable diff in multiple output formats (text, json, jsonpatch)
27+
- compare data (json, json5, yaml, toml, xml, html) and get a readable diff in multiple output formats (text, json, jsonpatch)
28+
29+
## Tool
30+
31+
### diff
32+
33+
compare text or data and get a readable diff.
34+
35+
**Inputs:**
36+
- `left` (string | unknown[] | Record<string, unknown>): left text or data
37+
- `leftFormat` (string, optional): text, json, json5 (default), yaml, toml, xml, html
38+
- `right` (string | unknown[] | Record<string, unknown>): right text or data (to compare with left)
39+
- `rightFormat` (string, optional): text, json, json5 (default), yaml, toml, xml, html
40+
- `outputFormat` (string, optional): text (default), json, jsonpatch
2641

42+
## Setup
43+
44+
### Usage with Claude Desktop
45+
46+
Add this to your `claude_desktop_config.json`:
47+
48+
``` json
49+
{
50+
"mcpServers": {
51+
"diff": {
52+
"command": "npx",
53+
"args": [
54+
"-y",
55+
"diff-mcp"
56+
]
57+
}
58+
}
59+
}
60+
```
2761

2862
## All contributors ✨
2963

@@ -32,3 +66,8 @@ powered by [jsondiffpatch](https://github.com/benjamine/jsondiffpatch)
3266
<img width="720" src="https://contrib.rocks/image?repo=benjamine/jsondiffpatch" alt="A table of avatars from the project's contributors" />
3367
</p>
3468
</a>
69+
70+
## License
71+
72+
This MCP server is licensed under the MIT License.
73+
This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

packages/diff-mcp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
"type": "module",
88
"files": ["build"],
99
"bin": {
10-
"diff-mcp": "./build/index.js && chmod 755 build/index.js"
10+
"diff-mcp": "./build/index.js"
1111
},
1212
"scripts": {
1313
"build": "tsc",
1414
"start": "node build/index.js",
1515
"type-check": "tsc --noEmit",
1616
"lint": "biome check --error-on-warnings .",
1717
"test": "vitest --coverage",
18-
"prepack": "npm run build && cp ../../MIT-LICENSE.txt .",
18+
"prepack": "npm run build && chmod 755 build/index.js && cp ../../MIT-LICENSE.txt .",
1919
"prepublishOnly": "npm run test && npm run lint"
2020
},
2121
"repository": {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"esModuleInterop": true,
1010
"forceConsistentCasingInFileNames": true,
1111
"strict": true,
12-
"skipLibCheck": false,
12+
"skipLibCheck": true,
1313
"noFallthroughCasesInSwitch": true,
1414
"noImplicitReturns": true,
1515
"noUncheckedIndexedAccess": true,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy