@rui.branco/jira-mcp 1.7.7 → 1.7.8

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/index.js +14 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -802,6 +802,14 @@ function extractTextSimple(content) {
802
802
  return result.text;
803
803
  }
804
804
 
805
+ // Prefix each line with "> " so echoed comments render as a markdown blockquote
806
+ function quoteText(text) {
807
+ return text
808
+ .split("\n")
809
+ .map((line) => (line.trim() ? `> ${line}` : ">"))
810
+ .join("\n");
811
+ }
812
+
805
813
  // ============ USER SEARCH & MENTIONS ============
806
814
 
807
815
  // Cache for user lookups to avoid repeated API calls
@@ -3599,11 +3607,12 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
3599
3607
  }, inst);
3600
3608
  const author = result.author?.displayName || "Unknown";
3601
3609
  const created = new Date(result.created).toLocaleString();
3610
+ const postedText = quoteText(extractTextSimple(result.body).trim());
3602
3611
  return {
3603
3612
  content: [
3604
3613
  {
3605
3614
  type: "text",
3606
- text: `Comment added to ${args.issueKey} by ${author} at ${created}.`,
3615
+ text: `Comment added to ${args.issueKey} by ${author} at ${created}:\n\n${postedText}`,
3607
3616
  },
3608
3617
  ],
3609
3618
  };
@@ -3667,11 +3676,12 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
3667
3676
  }, inst);
3668
3677
  const author = result.author?.displayName || "Unknown";
3669
3678
  const created = new Date(result.created).toLocaleString();
3679
+ const postedText = quoteText(extractTextSimple(result.body).trim());
3670
3680
  return {
3671
3681
  content: [
3672
3682
  {
3673
3683
  type: "text",
3674
- text: `Reply to ${originalAuthor}'s comment posted on ${args.issueKey} by ${author} at ${created}.`,
3684
+ text: `Reply to ${originalAuthor}'s comment posted on ${args.issueKey} by ${author} at ${created}:\n\n${postedText}`,
3675
3685
  },
3676
3686
  ],
3677
3687
  };
@@ -3691,11 +3701,12 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
3691
3701
  { method: "PUT", body },
3692
3702
  inst,
3693
3703
  );
3704
+ const editedText = quoteText(extractTextSimple(result.body).trim());
3694
3705
  return {
3695
3706
  content: [
3696
3707
  {
3697
3708
  type: "text",
3698
- text: `Comment ${args.commentId} on ${args.issueKey} updated.`,
3709
+ text: `Comment ${args.commentId} on ${args.issueKey} updated:\n\n${editedText}`,
3699
3710
  },
3700
3711
  ],
3701
3712
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rui.branco/jira-mcp",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "Jira & Confluence MCP server for any MCP-compatible AI client (Claude Code, Codex, Antigravity, Cursor, etc.) - fetch tickets, search with JQL, update tickets, manage comments, change status, get Figma designs. Optional per-tool scopes, dry-run, audit log, and rate limiting.",
5
5
  "main": "index.js",
6
6
  "bin": {