@@ -14,40 +14,34 @@ export const createMcpServer = () => {
1414 const server = new McpServer ( {
1515 name : "diff-mcp" ,
1616 version : "0.0.1" ,
17- capabilities : {
18- resources : { } ,
19- tools : { } ,
20- } ,
2117 } ) ;
2218
2319 server . tool (
2420 "diff" ,
2521 "compare text or data and get a readable diff" ,
2622 {
27- state : z . object ( {
28- left : inputDataSchema . describe ( "The left side of the diff." ) ,
29- leftFormat : formatSchema
30- . optional ( )
31- . describe ( "format of left side of the diff" ) ,
32- right : inputDataSchema . describe (
33- "The right side of the diff (to compare with the left side)." ,
34- ) ,
35- rightFormat : formatSchema
36- . optional ( )
37- . describe ( "format of right side of the diff" ) ,
38- outputFormat : z
39- . enum ( [ "text" , "json" , "jsonpatch" ] )
40- . default ( "text" )
41- . describe (
42- "The output format. " +
43- "text: (default) human readable text diff, " +
44- "json: a compact json diff (jsondiffpatch delta format), " +
45- "jsonpatch: json patch diff (RFC 6902)" ,
46- )
47- . optional ( ) ,
48- } ) ,
23+ left : inputDataSchema . describe ( "The left side of the diff." ) ,
24+ leftFormat : formatSchema
25+ . optional ( )
26+ . describe ( "format of left side of the diff" ) ,
27+ right : inputDataSchema . describe (
28+ "The right side of the diff (to compare with the left side)." ,
29+ ) ,
30+ rightFormat : formatSchema
31+ . optional ( )
32+ . describe ( "format of right side of the diff" ) ,
33+ outputFormat : z
34+ . enum ( [ "text" , "json" , "jsonpatch" ] )
35+ . default ( "text" )
36+ . describe (
37+ "The output format. " +
38+ "text: (default) human readable text diff, " +
39+ "json: a compact json diff (jsondiffpatch delta format), " +
40+ "jsonpatch: json patch diff (RFC 6902)" ,
41+ )
42+ . optional ( ) ,
4943 } ,
50- ( { state } ) => {
44+ ( state ) => {
5145 try {
5246 const jsondiffpatch = create ( {
5347 textDiff : {
0 commit comments