@fruggr/zendesk-mcp-server 3.0.1 → 3.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1327,6 +1327,7 @@ const parseSections = (html) => {
1327
1327
  current = {
1328
1328
  heading: $(node).text().trim(),
1329
1329
  headingTag: tagName,
1330
+ headingHtml: $.html(node),
1330
1331
  level,
1331
1332
  contentParts: []
1332
1333
  };
@@ -1344,6 +1345,7 @@ const parseSections = (html) => {
1344
1345
  index: 0,
1345
1346
  heading: "intro",
1346
1347
  headingTag: "",
1348
+ headingHtml: "",
1347
1349
  level: 0,
1348
1350
  html: introHtml,
1349
1351
  wordCount: countWords(textOf(introHtml))
@@ -1355,6 +1357,7 @@ const parseSections = (html) => {
1355
1357
  index: result.length,
1356
1358
  heading: s.heading,
1357
1359
  headingTag: s.headingTag,
1360
+ headingHtml: s.headingHtml,
1358
1361
  level: s.level,
1359
1362
  html: sectionHtml,
1360
1363
  wordCount: countWords(textOf(sectionHtml))
@@ -1365,11 +1368,7 @@ const parseSections = (html) => {
1365
1368
  const replaceSectionContent = (html, sectionIndex, newHtml) => {
1366
1369
  const sections = parseSections(html);
1367
1370
  if (sectionIndex < 0 || sectionIndex >= sections.length) throw new Error(`Section index ${sectionIndex} out of range (valid: 0-${Math.max(0, sections.length - 1)})`);
1368
- return sections.map((section, idx) => {
1369
- const content = idx === sectionIndex ? newHtml : section.html;
1370
- if (section.level === 0) return content;
1371
- return `<${section.headingTag}>${section.heading}</${section.headingTag}>${content}`;
1372
- }).join("");
1371
+ return sections.map((section, idx) => `${section.headingHtml}${idx === sectionIndex ? newHtml : section.html}`).join("");
1373
1372
  };
1374
1373
  const LEADING_HEADING = /^\s*<(h[1-3])(?:\s[^>]*)?>([\s\S]*?)<\/\1\s*>/i;
1375
1374
  const normalizeText = (text) => text.trim().split(WHITESPACE_RUN).join(" ");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fruggr/zendesk-mcp-server",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "mcpName": "io.github.fruggr/zendesk-mcp-server",
5
5
  "description": "Deep Zendesk MCP server for your AI assistant: search, draft, update and translate Help Center articles and manage Support tickets end to end — comments, triage and image attachments.",
6
6
  "type": "module",
@@ -71,7 +71,7 @@
71
71
  "engines": {
72
72
  "node": ">=22"
73
73
  },
74
- "packageManager": "pnpm@12.6.0+sha512.3ef68f951cb111ac204b4a5a16f0b2ddf0da56a96e0413e81d855d9f0b55ef926714709028e1cd00c405c2c5fb7b9e8ec4dc46777c805d0373c2f2ff00fd20ec",
74
+ "packageManager": "pnpm@12.5.1+sha512.e3f305bc784a2bc89f5ad3b6138889470fae8d2af5f36b61216ec91c2c3d64089775f9de38aac331044ea40f245cb0d5666392dfdf65824e1907ef6a2c62de5f",
75
75
  "dependencies": {
76
76
  "@modelcontextprotocol/server": "2.1.0",
77
77
  "cheerio": "1.2.0",