greenline-works-mcp-server 0.3.1 → 0.3.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/PROMPTS.md CHANGED
@@ -21,13 +21,16 @@ Steps:
21
21
  1. Call greenline_get_board with board "<BOARD_PUBLIC_ID>" (response_format: "json") to confirm the board exists.
22
22
  2. Call greenline_list_board_columns for the board (response_format: "json"). Each column is wrapped as
23
23
  { ColumnItem: ... }; the WIP limit is ColumnItem.maxWIP and the lower bound is ColumnItem.minWIP.
24
- Treat a null or 0 maxWIP as "no limit set" and skip that column for WIP checks.
25
- 3. Call greenline_list_cards for the board with count: 100 (response_format: "json"); while has_more is
26
- true, fetch the next page so every card is counted. Group cards by their column.
24
+ Collect the columnId of every column whose maxWIP is set (not null or 0) - only those need cards.
25
+ 3. Call greenline_list_cards for the board with columns set to those columnIds (comma-separated),
26
+ count: 100, response_format: "json". Fetch further pages until a page comes back short or empty;
27
+ do not rely on has_more alone. Group cards by columnId, never by column title - boards can have
28
+ identically named columns under different parents.
27
29
  4. Compare each limited column's card count against its maxWIP and note violations.
28
- 5. A card is aging when it has sat in its current column for more than 7 days. Check candidates
29
- (cards in work columns, oldest lastActionAt first) with greenline_get_card_metrics for their time in
30
- column - do not call metrics for every card on the board.
30
+ 5. A card is aging when it has sat in its current column for more than 7 days. Check the
31
+ oldest few candidates per work column (by lastActionAt) with greenline_get_card_metrics. In the
32
+ metrics, the current column is the segment with endAt null - its totalTime reads 0, so compute the
33
+ days from its startAt.
31
34
 
32
35
  Output format:
33
36
  - WIP violations: column name - limit N, actual M.
@@ -69,8 +72,9 @@ Arguments: `board`, `hours`
69
72
  Draft a standup update (yesterday / today / blockers) from recent movement on GreenLine board <BOARD_PUBLIC_ID>.
70
73
 
71
74
  Steps:
72
- 1. Call greenline_list_cards for the board with count: 100 (response_format: "json"); while has_more is
73
- true, fetch the next page.
75
+ 1. Call greenline_list_cards for the board with count: 100 (response_format: "json"). Fetch further
76
+ pages until a page comes back short or empty (do not rely on has_more alone), and stop after five
77
+ pages - on a larger board, ask for a narrower scope instead.
74
78
  2. Preselect from the list itself: cards whose doneAt falls in the last 48 hours (yesterday), cards
75
79
  in work columns with recent lastActionAt (today), and cards with blocked: true (blockers - the
76
80
  blockedReason is already on the card, no extra calls needed).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greenline-works-mcp-server",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Model Context Protocol server for the GreenLine public API",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.greenline.works/mcp",
package/src/constants.js CHANGED
@@ -8,7 +8,7 @@ const DEFAULT_PAGE_SIZE = 20;
8
8
  const MAX_PAGE_SIZE = 100;
9
9
 
10
10
  const SERVER_NAME = 'greenline-works-mcp-server';
11
- const SERVER_VERSION = '0.3.1';
11
+ const SERVER_VERSION = '0.3.2';
12
12
 
13
13
  const REQUEST_TIMEOUT_MS = 30000;
14
14
 
package/src/prompts.js CHANGED
@@ -18,13 +18,16 @@ const boardReviewText = (board, agingDays) =>
18
18
  `1. Call greenline_get_board with board "${board}" (response_format: "json") to confirm the board exists.`,
19
19
  '2. Call greenline_list_board_columns for the board (response_format: "json"). Each column is wrapped as',
20
20
  ' { ColumnItem: ... }; the WIP limit is ColumnItem.maxWIP and the lower bound is ColumnItem.minWIP.',
21
- ' Treat a null or 0 maxWIP as "no limit set" and skip that column for WIP checks.',
22
- `3. Call greenline_list_cards for the board with count: 100 (response_format: "json"); while has_more is`,
23
- ' true, fetch the next page so every card is counted. Group cards by their column.',
21
+ ' Collect the columnId of every column whose maxWIP is set (not null or 0) - only those need cards.',
22
+ '3. Call greenline_list_cards for the board with columns set to those columnIds (comma-separated),',
23
+ ' count: 100, response_format: "json". Fetch further pages until a page comes back short or empty;',
24
+ ' do not rely on has_more alone. Group cards by columnId, never by column title - boards can have',
25
+ ' identically named columns under different parents.',
24
26
  "4. Compare each limited column's card count against its maxWIP and note violations.",
25
- `5. A card is aging when it has sat in its current column for more than ${agingDays} days. Check candidates`,
26
- ' (cards in work columns, oldest lastActionAt first) with greenline_get_card_metrics for their time in',
27
- ' column - do not call metrics for every card on the board.',
27
+ `5. A card is aging when it has sat in its current column for more than ${agingDays} days. Check the`,
28
+ ' oldest few candidates per work column (by lastActionAt) with greenline_get_card_metrics. In the',
29
+ ' metrics, the current column is the segment with endAt null - its totalTime reads 0, so compute the',
30
+ ' days from its startAt.',
28
31
  '',
29
32
  'Output format:',
30
33
  '- WIP violations: column name - limit N, actual M.',
@@ -56,8 +59,9 @@ const standupSummaryText = (board, hours) =>
56
59
  `Draft a standup update (yesterday / today / blockers) from recent movement on GreenLine board ${board}.`,
57
60
  '',
58
61
  'Steps:',
59
- `1. Call greenline_list_cards for the board with count: 100 (response_format: "json"); while has_more is`,
60
- ' true, fetch the next page.',
62
+ `1. Call greenline_list_cards for the board with count: 100 (response_format: "json"). Fetch further`,
63
+ ' pages until a page comes back short or empty (do not rely on has_more alone), and stop after five',
64
+ ' pages - on a larger board, ask for a narrower scope instead.',
61
65
  `2. Preselect from the list itself: cards whose doneAt falls in the last ${hours} hours (yesterday), cards`,
62
66
  ' in work columns with recent lastActionAt (today), and cards with blocked: true (blockers - the',
63
67
  ' blockedReason is already on the card, no extra calls needed).',