@k-system/tickr-mcp 0.1.3 → 0.1.4

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.
@@ -14,19 +14,30 @@ export function formatTicketMarkdown(t) {
14
14
  `| Created | ${t.createdAt} |`,
15
15
  `| Updated | ${t.updatedAt} |`,
16
16
  ];
17
- if (t.affectedParts.length > 0) {
18
- lines.push("", `**Affected parts:** ${t.affectedParts.join(", ")}`);
17
+ // affectedParts může být JSON string nebo pole
18
+ const parts = Array.isArray(t.affectedParts)
19
+ ? t.affectedParts
20
+ : t.affectedParts
21
+ ? (() => { try {
22
+ return JSON.parse(t.affectedParts);
23
+ }
24
+ catch {
25
+ return [t.affectedParts];
26
+ } })()
27
+ : [];
28
+ if (parts.length > 0) {
29
+ lines.push("", `**Affected parts:** ${parts.join(", ")}`);
19
30
  }
20
31
  if (t.content) {
21
32
  lines.push("", "---", "", t.content);
22
33
  }
23
- if (t.implementationItems.length > 0) {
34
+ if (t.implementationItems?.length > 0) {
24
35
  lines.push("", "## Implementation Items", "", "| # | Area | Detail | Status | Note |", "|---|------|--------|--------|------|");
25
36
  t.implementationItems.forEach((item, i) => {
26
37
  lines.push(`| ${i} | ${item.area} | ${item.fileOrDetail} | ${item.status} | ${item.note || "-"} |`);
27
38
  });
28
39
  }
29
- if (t.comments.length > 0) {
40
+ if (t.comments?.length > 0) {
30
41
  lines.push("", "## Comments", "");
31
42
  for (const c of t.comments) {
32
43
  lines.push(`**${c.authorName}** (${c.createdAt}):`);
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ async function main() {
32
32
  const api = new ApiClient(config);
33
33
  const server = new McpServer({
34
34
  name: "tickr",
35
- version: "0.1.0",
35
+ version: "0.1.4",
36
36
  });
37
37
  // Registrace tools
38
38
  registerCreateTicket(server, api);
package/dist/types.d.ts CHANGED
@@ -13,7 +13,7 @@ export interface Ticket {
13
13
  assigneeId: string | null;
14
14
  assigneeName: string | null;
15
15
  content: string | null;
16
- affectedParts: string[];
16
+ affectedParts: string[] | string | null;
17
17
  implementationItems: ImplementationItem[];
18
18
  comments: Comment[];
19
19
  createdAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-system/tickr-mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "MCP server for Tickr project management — 17 tools for ticket CRUD, triage, labels, cycles, epics",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",