mergestorm-mcp 0.1.7 → 0.1.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.
package/README.md CHANGED
@@ -7,7 +7,7 @@ The stack tools expose reads plus one scoped policy write:
7
7
  - `stack_adopt({ owner, repo, pr_number, auto_land?, auto_review?, auto_patch? })` adopts an open PR chain with optional per-stack policy. Omitted policy does not force Cyclone off. `auto_review` and `auto_patch` accept `true`, `false`, or `null`; `null` clears the override. Read `stack_status` with the returned `result.stack.id` to verify policy and Cyclone ownership.
8
8
  - `stack_list` returns the current API key owner's registered stacks.
9
9
  - `stack_set({ stack_id, auto_land?, auto_review?, auto_patch? })` sets per-stack policy on one owned stack. `auto_land` flips Auto land. `auto_review` and `auto_patch` pin Vortex auto-review or Cyclone auto-patch for that stack in either direction (`true` or `false`); `null` clears the pin so the stack follows the account setting. Pass at least one key. Account settings are never changed here.
10
- - `stack_status({ stack_id })` returns one owned stack with enriched checks and agent state, or a structured `stack_not_found` error.
10
+ - `stack_status({ stack_id })` returns one owned stack with enriched checks and agent state, plus `attention`, `issues`, and `currentCandidate` from the same blocker rules as `stack_wait`, read against that stack's own merge queue. It returns a structured `stack_not_found` or `rate_limited` error.
11
11
  - `stack_wait({ stack_id, timeout_s?, enrolled_head_sha?, after_finished_at?, bounce_id? })` waits for a stack or queue state change and returns the latest snapshots. `timeout_s: 0` returns one snapshot; a positive timeout after a snapshot with no attention returns the current `waiting` or `in_progress` status with selectors to use for the next call. An unread deadline returns `failed`.
12
12
 
13
13
  Auth is `MERGESTORM_API_KEY`, then `~/.mergestorm/config.json` (same as `mg`).
package/dist/index.js CHANGED
@@ -830,7 +830,8 @@ async function stackWait(input, cfg, deps = {}) {
830
830
  import {
831
831
  getEnrichedStack,
832
832
  listMergeQueueEntries as listMergeQueueEntries2,
833
- isCommandErrorCode as isCommandErrorCode5
833
+ isCommandErrorCode as isCommandErrorCode5,
834
+ stackBlockers as stackBlockers2
834
835
  } from "mergestorm/client";
835
836
  async function stackStatus(stackId, cfg) {
836
837
  try {
@@ -849,10 +850,11 @@ async function stackStatus(stackId, cfg) {
849
850
  isError: true
850
851
  };
851
852
  }
852
- const entries = await listMergeQueueEntries2(cfg);
853
+ const entries = await listMergeQueueEntries2(cfg, { stackId: stack.id });
854
+ const { attention, issues, currentCandidate } = stackBlockers2(stack, entries);
853
855
  return {
854
856
  summary: stackSummary(stack, entries),
855
- data: { stack }
857
+ data: { stack, attention, issues, currentCandidate }
856
858
  };
857
859
  } catch (err) {
858
860
  if (isCommandErrorCode5(err, "rate_limited")) {
@@ -934,7 +936,7 @@ var MCP_STACK_WATCH_INSTRUCTIONS = [
934
936
 
935
937
  // src/server.ts
936
938
  var MCP_SERVER_NAME = "mergestorm";
937
- var MCP_SERVER_VERSION = "0.1.7";
939
+ var MCP_SERVER_VERSION = "0.1.8";
938
940
  function stripNulls(value) {
939
941
  if (Array.isArray(value)) {
940
942
  return value.map((item) => stripNulls(item));
@@ -1201,7 +1203,7 @@ ${MCP_STACK_WATCH_INSTRUCTIONS}` }
1201
1203
  "stack_status",
1202
1204
  {
1203
1205
  title: "Get stack status",
1204
- description: "Fetch one owned Mergestorm stack with enriched checks and agent state. This tool is read-only.",
1206
+ description: "Fetch one owned Mergestorm stack with enriched checks and agent state, plus attention, issues, and currentCandidate from the same blocker rules as stack_wait, read against that stack's own merge queue. This tool is read-only.",
1205
1207
  inputSchema: {
1206
1208
  stack_id: z3.string().min(1)
1207
1209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mergestorm-mcp",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Mergestorm MCP server — identity, review, and read-only stack tools over stdio",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@modelcontextprotocol/sdk": "^1.30.0",
32
- "mergestorm": "0.3.20",
32
+ "mergestorm": "0.3.22",
33
33
  "zod": "^3.24.2"
34
34
  },
35
35
  "devDependencies": {