mcp-jira-stdio 1.10.1 → 1.10.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.
package/dist/index.js CHANGED
@@ -440,7 +440,7 @@ var require_package2 = __commonJS({
440
440
  "package.json"(exports$1, module) {
441
441
  module.exports = {
442
442
  name: "mcp-jira-stdio",
443
- version: "1.10.1",
443
+ version: "1.10.2",
444
444
  description: "Model Context Protocol (MCP) server for Jira API integration",
445
445
  author: "graslt",
446
446
  license: "MIT",
@@ -1034,6 +1034,19 @@ function ensureAdfDescription(desc, format = "markdown") {
1034
1034
  }
1035
1035
  }
1036
1036
  if (format === "adf") {
1037
+ if (typeof desc === "string") {
1038
+ const trimmed = desc.trim();
1039
+ try {
1040
+ const parsed = JSON.parse(trimmed);
1041
+ if (parsed && typeof parsed === "object" && parsed.type === "doc") {
1042
+ return parsed;
1043
+ }
1044
+ } catch {
1045
+ }
1046
+ throw new Error(
1047
+ 'ADF format: body must be a JSON string that parses to an ADF document with type "doc" (stringified Atlassian Document Format).'
1048
+ );
1049
+ }
1037
1050
  return desc;
1038
1051
  }
1039
1052
  const urlRegex = /https?:\/\/[^\s)]+/g;