@xyd-js/mcp-server 0.0.0-build-9f87f13-20250930210637 → 0.0.0-build-3d2980a-20251001121752

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # @xyd-js/mcp-server
2
2
 
3
- ## 0.0.0-build-9f87f13-20250930210637
3
+ ## 0.0.0-build-3d2980a-20251001121752
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - update all packages
8
8
  - Updated dependencies
9
- - @xyd-js/mcp@0.0.0-build-9f87f13-20250930210637
9
+ - @xyd-js/mcp@0.0.0-build-3d2980a-20251001121752
package/dist/index.js CHANGED
@@ -154860,74 +154860,74 @@ function Te2(e488) {
154860
154860
  }
154861
154861
  function Me2(e488) {
154862
154862
  var n470 = function e(n471) {
154863
- var t481, r325, a443, o237, i314, l51, c105, u28;
154863
+ var t481, r325, a443, o237, i314, l51, c105, u28, s186, d29;
154864
154864
  if (n471 == null ? undefined : n471.ofProperty)
154865
154865
  switch (n471.ofProperty.type) {
154866
154866
  case DEFINED_DEFINITION_PROPERTY_TYPE.ARRAY:
154867
- var s186 = [];
154868
- if (n471.type && s186.push(n471.type), n471.ofProperty.ofProperty) {
154869
- var d29 = qe2(n471.ofProperty.ofProperty);
154870
- d29 && s186.push(d29);
154867
+ var m82 = [];
154868
+ if (n471.type && m82.push(n471.type), n471.ofProperty.ofProperty) {
154869
+ var v4 = qe2(n471.ofProperty.ofProperty);
154870
+ v4 && m82.push(v4);
154871
154871
  }
154872
- var m82 = ze2(n471.ofProperty);
154873
- return [[].concat([m82, "of"], s186).join(" ")];
154872
+ var p28 = ze2(n471.ofProperty);
154873
+ return [[].concat([p28, "of"], m82).join(" ")];
154874
154874
  case DEFINED_DEFINITION_PROPERTY_TYPE.UNION:
154875
154875
  case DEFINED_DEFINITION_PROPERTY_TYPE.ENUM:
154876
154876
  case DEFINED_DEFINITION_PROPERTY_TYPE.XOR:
154877
154877
  if ((t481 = n471.ofProperty.properties) === null || t481 === undefined ? undefined : t481.length) {
154878
- var v4 = ze2(n471);
154879
- if (v4) {
154880
- var p28 = "";
154881
- return n471.ofProperty.type === DEFINED_DEFINITION_PROPERTY_TYPE.ENUM && ((r325 = n471.ofProperty.ofProperty) === null || r325 === undefined ? undefined : r325.type) && (p28 = qe2({ type: (a443 = n471.ofProperty.ofProperty) === null || a443 === undefined ? undefined : a443.type, properties: n471.ofProperty.properties || [] })), p28 || (p28 = qe2({ type: DEFINED_DEFINITION_PROPERTY_TYPE.UNION, properties: n471.ofProperty.properties || [] })), (p28 == null ? undefined : p28.length) && p28.includes("$$") ? [v4] : [[v4, "of", p28].join(" ")];
154878
+ var f4 = ze2(n471);
154879
+ if (f4) {
154880
+ var h6 = "";
154881
+ return n471.ofProperty.type === DEFINED_DEFINITION_PROPERTY_TYPE.ENUM && ((r325 = n471.ofProperty.ofProperty) === null || r325 === undefined ? undefined : r325.type) && (h6 = qe2({ type: (a443 = n471.ofProperty.ofProperty) === null || a443 === undefined ? undefined : a443.type, properties: n471.ofProperty.properties || [] })), h6 || (h6 = qe2({ type: DEFINED_DEFINITION_PROPERTY_TYPE.UNION, properties: n471.ofProperty.properties || [] })), (h6 == null ? undefined : h6.length) && h6.includes("$$") ? [f4] : [[f4, "of", h6].join(" ")];
154882
154882
  }
154883
154883
  return [n471.type, qe2(n471.ofProperty)];
154884
154884
  }
154885
154885
  return ((o237 = n471.ofProperty) === null || o237 === undefined ? undefined : o237.ofProperty) ? [(l51 = (i314 = n471.ofProperty) === null || i314 === undefined ? undefined : i314.ofProperty) === null || l51 === undefined ? undefined : l51.type] : [];
154886
154886
  default:
154887
154887
  if (!n471.ofProperty.name) {
154888
- var f4 = ze2(n471), h6 = function(e489) {
154888
+ var g6 = ze2(n471), E8 = function(e489) {
154889
154889
  var n472 = ze2(e489);
154890
154890
  if (!n472)
154891
154891
  return e489.type;
154892
154892
  return n472;
154893
154893
  }(n471);
154894
- if (h6.startsWith("$$"))
154894
+ if ((c105 = E8 == null ? undefined : E8.startsWith) === null || c105 === undefined ? undefined : c105.call(E8, "$$"))
154895
154895
  return [n471.ofProperty.type];
154896
- var g6 = [h6];
154897
- return f4 && g6.push("of"), g6.push(qe2(n471.ofProperty)), g6;
154896
+ var k4 = [E8];
154897
+ return g6 && k4.push("of"), k4.push(qe2(n471.ofProperty)), k4;
154898
154898
  }
154899
154899
  return [n471.ofProperty.type];
154900
154900
  }
154901
154901
  switch (n471.type) {
154902
154902
  case (DEFINED_DEFINITION_PROPERTY_TYPE.UNION, DEFINED_DEFINITION_PROPERTY_TYPE.XOR):
154903
- if ((c105 = n471.properties) === null || c105 === undefined ? undefined : c105.length) {
154904
- var E8, k4 = {}, x4 = [], w4 = h3(n471.properties);
154903
+ if ((u28 = n471.properties) === null || u28 === undefined ? undefined : u28.length) {
154904
+ var x4, w4 = {}, N6 = [], j4 = h3(n471.properties);
154905
154905
  try {
154906
- for (w4.s();!(E8 = w4.n()).done; ) {
154907
- var N6, j4 = E8.value, S4 = e(j4);
154908
- j4.ofProperty && S4.length > 1 && (S4 = [[S4[0]].concat(b4(S4.slice(1, S4.length))).join("")]), (N6 = x4).push.apply(N6, b4(S4));
154906
+ for (j4.s();!(x4 = j4.n()).done; ) {
154907
+ var S4, C4 = x4.value, O4 = e(C4);
154908
+ C4.ofProperty && O4.length > 1 && (O4 = [[O4[0]].concat(b4(O4.slice(1, O4.length))).join("")]), (S4 = N6).push.apply(S4, b4(O4));
154909
154909
  }
154910
154910
  } catch (e489) {
154911
- w4.e(e489);
154911
+ j4.e(e489);
154912
154912
  } finally {
154913
- w4.f();
154913
+ j4.f();
154914
154914
  }
154915
- var C4, O4 = false, P4 = h3(x4);
154915
+ var P4, _8 = false, R8 = h3(N6);
154916
154916
  try {
154917
- for (P4.s();!(C4 = P4.n()).done; ) {
154918
- var _8 = C4.value;
154919
- if (_8.trim() === "or") {
154920
- O4 = true;
154917
+ for (R8.s();!(P4 = R8.n()).done; ) {
154918
+ var A8 = P4.value;
154919
+ if (A8.trim() === "or") {
154920
+ _8 = true;
154921
154921
  break;
154922
154922
  }
154923
- k4[_8] = true;
154923
+ w4[A8] = true;
154924
154924
  }
154925
154925
  } catch (e489) {
154926
- P4.e(e489);
154926
+ R8.e(e489);
154927
154927
  } finally {
154928
- P4.f();
154928
+ R8.f();
154929
154929
  }
154930
- return O4 || (x4 = Object.keys(k4)), [x4.join(" or ")];
154930
+ return _8 || (N6 = Object.keys(w4)), [N6.join(" or ")];
154931
154931
  }
154932
154932
  break;
154933
154933
  case DEFINED_DEFINITION_PROPERTY_TYPE.ARRAY:
@@ -154935,7 +154935,7 @@ function Me2(e488) {
154935
154935
  case DEFINED_DEFINITION_PROPERTY_TYPE.ENUM:
154936
154936
  return ["enum"];
154937
154937
  }
154938
- return ((u28 = n471.type) === null || u28 === undefined ? undefined : u28.startsWith("$$")) ? [] : [n471.type];
154938
+ return ((d29 = (s186 = n471.type) === null || s186 === undefined ? undefined : s186.startsWith) === null || d29 === undefined ? undefined : d29.call(s186, "$$")) ? [] : [n471.type];
154939
154939
  }(e488);
154940
154940
  return function(e489) {
154941
154941
  var n471;
@@ -154956,8 +154956,8 @@ function ze2(e488) {
154956
154956
  }
154957
154957
  }
154958
154958
  function qe2(e488) {
154959
- var n470 = Me2(e488);
154960
- return (n470 == null ? undefined : n470.startsWith("$$")) ? "" : n470;
154959
+ var n470, t481 = Me2(e488);
154960
+ return ((n470 = t481 == null ? undefined : t481.startsWith) === null || n470 === undefined ? undefined : n470.call(t481, "$$")) ? "" : t481;
154961
154961
  }
154962
154962
  function Ie2(e488) {
154963
154963
  var t481, r325, a443, o237;
@@ -154981,11 +154981,11 @@ function Ie2(e488) {
154981
154981
  }), d29) : null;
154982
154982
  }
154983
154983
  var He2 = { name: "cosmo", type: "from-css", colors: { "list.focusForeground": "var(--syntax1)", "scrollbar.shadow": "var(--syntax2)", "tab.activeBorder": "var(--syntax1)", "widget.shadow": "var(--syntax2)", "activityBar.border": "var(--syntax3)", "editorGroup.border": "var(--syntax3)", "editorGroupHeader.tabsBorder": "var(--syntax3)", "editorWidget.border": "var(--syntax3)", "editorWidget.resizeBorder": "var(--syntax3)", "input.border": "var(--syntax3)", "notificationCenter.border": "var(--syntax3)", "notifications.border": "var(--syntax3)", "panel.border": "var(--syntax3)", "sideBar.border": "var(--syntax3)", "statusBar.border": "var(--syntax3)", "tab.border": "var(--syntax3)", "activityBar.background": "var(--syntax4)", "statusBar.background": "var(--syntax4)", "statusBar.noFolderBackground": "var(--syntax4)", "statusBar.debuggingBackground": "var(--syntax4)", "editorGroupHeader.tabsBackground": "var(--syntax5)", "editorWidget.background": "var(--syntax5)", "sideBar.background": "var(--syntax5)", "sideBarSectionHeader.background": "var(--syntax5)", "tab.inactiveBackground": "var(--syntax5)", "activityBarBadge.background": "var(--syntax6)", "activityBar.foreground": "var(--syntax6)", "statusBar.foreground": "var(--syntax7)", "input.placeholderForeground": "var(--syntax8)", "editorLineNumber.foreground": "var(--syntax9)", "editorLineNumber.activeForeground": "var(--syntax6)", foreground: "var(--syntax6)", "panelTitle.activeForeground": "var(--syntax6)", "sideBarTitle.foreground": "var(--syntax6)", "sideBarSectionHeader.foreground": "var(--syntax6)", "panelTitle.inactiveForeground": "var(--syntax10)", "tab.inactiveForeground": "var(--syntax10)", "list.highlightForeground": "var(--syntax10)", "editor.lineHighlightBackground": "var(--syntax11)", focusBorder: "var(--syntax12)", "button.background": "var(--syntax13)", "list.activeSelectionBackground": "var(--syntax13)", "list.focusBackground": "var(--syntax13)", "selection.background": "#B3D7FF", "list.inactiveSelectionBackground": "var(--syntax14)", "terminal.ansiBlack": "var(--syntax15)", "terminal.ansiBrightBlack": "var(--syntax15)", "terminal.ansiRed": "var(--syntax16)", "terminal.ansiBrightRed": "var(--syntax16)", "terminal.ansiGreen": "var(--syntax17)", "terminal.ansiBrightGreen": "var(--syntax17)", "terminal.ansiYellow": "var(--syntax18)", "terminal.ansiBrightYellow": "var(--syntax18)", "terminal.ansiBlue": "var(--syntax19)", "terminal.ansiBrightBlue": "var(--syntax19)", "terminal.ansiMagenta": "var(--syntax20)", "terminal.ansiBrightMagenta": "var(--syntax20)", "terminal.ansiCyan": "var(--syntax21)", "terminal.ansiBrightCyan": "var(--syntax21)" }, tokenColors: [{ scope: "new.expr entity.name", settings: { foreground: "var(--syntax22)" } }, { name: "Comments", scope: ["comment", "comment storage.type"], settings: { foreground: "var(--syntax23)", fontStyle: "italic" } }, { name: "CSS", scope: ["entity.other.attribute-name.pseudo-class.css", "entity.other.attribute-name.pseudo-class.scss", "entity.other.attribute-name.pseudo-element.css", "entity.other.attribute-name.pseudo-element.scss", "support.function.calc.css", "support.function.calc.scss", "support.type.property-name.css", "support.type.property-name.scss", "support.type.vendored.property-name.css", "support.type.vendored.property-name.scss", "meta.property-value.css support.constant", "meta.property-value.scss support.constant", "meta.property-value.css support.constant.property-value", "meta.property-value.scss support.constant.property-value", "support.function.transform.css", "support.function.transform.scss"], settings: { foreground: "var(--syntax20)" } }, { name: "Decorator", scope: ["meta.decorator", "meta.decorator punctuation.decorator", "meta.decorator variable.other.readwrite", "meta.decorator meta.function-call entity.name.function"], settings: { foreground: "var(--syntax18)" } }, { name: "Doctype", scope: ["meta.tag.sgml.html"], settings: { foreground: "var(--syntax9)" } }, { name: "Functions", scope: ["entity.name.function", "support.function"], settings: { foreground: "var(--syntax24)" } }, { name: "Keys", scope: ["meta.property-list meta.property-name", "support.type.property-name", "support.type.map.key", "entity.name.tag.yaml"], settings: { foreground: "var(--syntax24)" } }, { name: "Keywords", scope: ["keyword.control", "keyword.declaration", "keyword.expressions-and-types", "keyword.operator.new", "keyword.reserved", "keyword.statement", "storage.type", "storage.modifier", "constant.language", "variable.language.super", "variable.language.this", "text.html entity.name.tag", "meta.tag entity.name.tag", "meta.tag support.class", "string.regexp keyword.other"], settings: { foreground: "var(--syntax25)", fontStyle: "bold" } }, { name: "Operators", scope: ["storage.type.function.arrow", "meta.template.expression punctuation", "punctuation.separator.key-value", "meta.object-literal.key meta.brace.square", "meta.template.expression keyword.operator", "keyword.operator.or.regexp", "keyword.operator.quantifier", "punctuation.definition.group.regexp", "punctuation.definition.character-class"], settings: { foreground: "var(--syntax15)" } }, { scope: ["meta.tag entity.other.attribute-name", "constant.character.escape.backslash"], settings: { foreground: "var(--syntax26)" } }, { name: "Numbers", scope: ["constant.numeric", "keyword.other.unit", "constant.other.color"], settings: { foreground: "var(--syntax19)" } }, { name: "Strings", scope: ["string", "variable.parameter.url.scss", "markup.heading.markdown", "beginning.punctuation.definition.list.markdown", "meta.template.expression meta.embedded punctuation.definition.string.begin", "meta.template.expression meta.embedded punctuation.definition.string.end"], settings: { foreground: "var(--syntax27)" } }, { name: "Types", scope: ["meta.type", "meta.return.type", "entity.name.type", "support.type.primitive"], settings: { foreground: "var(--syntax22)" } }, { scope: ["meta.objectliteral variable.other.object", "entity.name.type.module", "entity.other.inherited-class", "variable.scss", "variable.other.bracket.shell", "entity.name.function.scss"], settings: { foreground: "var(--syntax21)" } }, { scope: ["keyword.control.at-rule", "meta.import variable.other.readwrite", "meta.definition.variable variable.other.readwrite", "meta.definition.variable variable.other.constant", "meta.template.expression variable.other.readwrite", "meta.template.expression variable.other.constant", "support.constant.property-value"], settings: { foreground: "var(--syntax15)" } }, { scope: ["variable.other.property", "variable.other.object.property", "support.variable.property"], settings: { foreground: "var(--syntax22)" } }] };
154984
- function $e2(e488, n470, t481) {
154985
- return Ue2.apply(this, arguments);
154984
+ function Ue2(e488, n470, t481) {
154985
+ return $e2.apply(this, arguments);
154986
154986
  }
154987
- function Ue2() {
154988
- return Ue2 = T4(P2().m(function e(n470, t481, r325) {
154987
+ function $e2() {
154988
+ return $e2 = T4(P2().m(function e(n470, t481, r325) {
154989
154989
  var a443, o237, i314, l51, c105;
154990
154990
  return P2().w(function(e488) {
154991
154991
  for (;; )
@@ -154996,7 +154996,7 @@ function Ue2() {
154996
154996
  return i314 = e488.v, l51 = i314.code, c105 = i314.annotations, a443 = [].concat(j2(a443), j2(c105)), o237 = l51, e488.a(2, { code: o237, annotations: a443 });
154997
154997
  }
154998
154998
  }, e);
154999
- })), Ue2.apply(this, arguments);
154999
+ })), $e2.apply(this, arguments);
155000
155000
  }
155001
155001
  function De2(e488, n470) {
155002
155002
  return Ve2.apply(this, arguments);
@@ -155041,7 +155041,7 @@ function Ze2() {
155041
155041
  for (;; )
155042
155042
  switch (e488.n) {
155043
155043
  case 0:
155044
- return r325 = g6.length > 2 && g6[2] !== undefined ? g6[2] : {}, a443 = n470.value, o237 = n470.lang, i314 = o237 === undefined ? "txt" : o237, F3.includes(i314) || (console.warn('Code Hike warning: Unknown language "'.concat(i314, '"')), i314 = "txt"), e488.n = 1, $e2(a443, i314, r325.annotationPrefix || "!");
155044
+ return r325 = g6.length > 2 && g6[2] !== undefined ? g6[2] : {}, a443 = n470.value, o237 = n470.lang, i314 = o237 === undefined ? "txt" : o237, F3.includes(i314) || (console.warn('Code Hike warning: Unknown language "'.concat(i314, '"')), i314 = "txt"), e488.n = 1, Ue2(a443, i314, r325.annotationPrefix || "!");
155045
155045
  case 1:
155046
155046
  return l51 = e488.v, c105 = l51.code, u28 = l51.annotations, e488.n = 2, gQ2(c105, i314, t481, { annotations: [], scopes: false });
155047
155047
  case 2:
@@ -155522,7 +155522,7 @@ function In(e488) {
155522
155522
  return import_react5.default.createElement("xyd-loader", { "data-size": r325, className: " ".concat("lr0mq4l", " ").concat(a443 || "", " ") }, import_react5.default.createElement("div", { part: "dots" }, import_react5.default.createElement("div", { part: "dot" }), import_react5.default.createElement("div", { part: "dot" }), import_react5.default.createElement("div", { part: "dot" })));
155523
155523
  }
155524
155524
  var Hn = import_react5.createContext({ highlighted: [] });
155525
- function $n(e488) {
155525
+ function Un(e488) {
155526
155526
  var r325, a443 = import_react5.useState(p28(e488.codeblocks)), o237 = M2(a443, 2), l51 = o237[0], c105 = o237[1], u28 = import_react5.useState(true), s186 = M2(u28, 2), m82 = s186[0], v4 = s186[1];
155527
155527
  function p28(e489) {
155528
155528
  return e489 ? e489.map(function(e490) {
@@ -155556,7 +155556,7 @@ function $n(e488) {
155556
155556
  }
155557
155557
  return n470.a(2);
155558
155558
  case 2:
155559
- return n470.n = 3, Un(e488.codeblocks, e488.theme || He2);
155559
+ return n470.n = 3, $n(e488.codeblocks, e488.theme || He2);
155560
155560
  case 3:
155561
155561
  t481 = n470.v, c105(t481), v4(false);
155562
155562
  case 4:
@@ -155571,7 +155571,7 @@ function $n(e488) {
155571
155571
  return e489.highlighted;
155572
155572
  })) ? f4 : m82 ? import_react5.default.createElement(In, null) : f4;
155573
155573
  }
155574
- function Un(e488, n470) {
155574
+ function $n(e488, n470) {
155575
155575
  return U2(this, undefined, undefined, P2().m(function t() {
155576
155576
  return P2().w(function(t481) {
155577
155577
  for (;; )
@@ -155642,7 +155642,7 @@ function Kn(e488) {
155642
155642
  }(), r325;
155643
155643
  }
155644
155644
  function Xn(e488) {
155645
- return import_react5.default.createElement(import_react5.Suspense, { fallback: import_react5.default.createElement(Vn, null) }, import_react5.default.createElement($n, { codeblocks: e488.codeblocks, theme: e488.theme }, e488.children));
155645
+ return import_react5.default.createElement(import_react5.Suspense, { fallback: import_react5.default.createElement(Vn, null) }, import_react5.default.createElement(Un, { codeblocks: e488.codeblocks, theme: e488.theme }, e488.children));
155646
155646
  }
155647
155647
  function Zn() {
155648
155648
  return import_react5.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", strokeWidth: 3, stroke: "currentColor", fill: "none", width: 16, strokeLinecap: "round", strokeLinejoin: "round" }, import_react5.default.createElement("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), import_react5.default.createElement("path", { d: "M12 12l8 -4.5" }), import_react5.default.createElement("path", { d: "M12 12v9" }), import_react5.default.createElement("path", { d: "M12 12l-8 -4.5" }), import_react5.default.createElement("path", { d: "M12 12l8 4.5" }), import_react5.default.createElement("path", { d: "M12 3v9" }), import_react5.default.createElement("path", { d: "M12 12l-8 4.5" }));
@@ -190689,9 +190689,7 @@ class MCPServer {
190689
190689
  if (this.uniformSource) {
190690
190690
  await mcpUniformResources(server, this.uniformSource);
190691
190691
  }
190692
- if (token) {
190693
- await mcpUniformTools(server, this.uniformSource, token);
190694
- }
190692
+ await mcpUniformTools(server, this.uniformSource, token);
190695
190693
  this.addSimpleTokenTool(server);
190696
190694
  await server.connect(transport);
190697
190695
  return transport;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/mcp-server",
3
- "version": "0.0.0-build-9f87f13-20250930210637",
3
+ "version": "0.0.0-build-3d2980a-20251001121752",
4
4
  "type": "module",
5
5
  "description": "MCP server for xyd",
6
6
  "main": "dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@modelcontextprotocol/sdk": "^1.18.1",
18
18
  "express": "^5.1.0",
19
- "@xyd-js/mcp": "0.0.0-build-9f87f13-20250930210637"
19
+ "@xyd-js/mcp": "0.0.0-build-3d2980a-20251001121752"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/express": "^4.17.21",
package/src/mcp.ts CHANGED
@@ -127,9 +127,7 @@ export class MCPServer {
127
127
  await mcpUniformResources(server, this.uniformSource);
128
128
  }
129
129
 
130
- if (token) {
131
- await mcpUniformTools(server, this.uniformSource, token);
132
- }
130
+ await mcpUniformTools(server, this.uniformSource, token);
133
131
 
134
132
  // Add simple token tool
135
133
  this.addSimpleTokenTool(server);