@remixhq/mcp 0.1.4 → 0.1.6

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/cli.js CHANGED
@@ -463,11 +463,6 @@ var applyInputSchema = {
463
463
  var requestMergeInputSchema = {
464
464
  ...commonRequestFieldsSchema
465
465
  };
466
- var inboxInputSchema = {
467
- requestId: z2.string().trim().min(1).optional(),
468
- outputMode: z2.enum(["summary", "full"]).optional(),
469
- status: z2.string().trim().min(1).optional()
470
- };
471
466
  var reviewQueueInputSchema = {
472
467
  requestId: z2.string().trim().min(1).optional(),
473
468
  outputMode: z2.enum(["summary", "full"]).optional(),
@@ -542,9 +537,6 @@ var addDataSchema = z2.object({
542
537
  var recordTurnDataSchema = genericRecordSchema;
543
538
  var syncDataSchema = genericRecordSchema;
544
539
  var requestMergeDataSchema = genericRecordSchema;
545
- var inboxDataSchema = z2.object({
546
- mergeRequests: z2.array(genericRecordSchema)
547
- });
548
540
  var mergeRequestQueueDataSchema = z2.object({
549
541
  queue: mergeRequestQueueSchema,
550
542
  appId: z2.string().nullable(),
@@ -564,7 +556,6 @@ var addSuccessSchema = makeSuccessSchema(addDataSchema);
564
556
  var recordTurnSuccessSchema = makeSuccessSchema(recordTurnDataSchema);
565
557
  var syncSuccessSchema = makeSuccessSchema(syncDataSchema);
566
558
  var requestMergeSuccessSchema = makeSuccessSchema(requestMergeDataSchema);
567
- var inboxSuccessSchema = makeSuccessSchema(inboxDataSchema);
568
559
  var mergeRequestQueueSuccessSchema = makeSuccessSchema(mergeRequestQueueDataSchema);
569
560
  var viewMergeRequestSuccessSchema = makeSuccessSchema(viewMergeRequestDataSchema);
570
561
  var approveSuccessSchema = makeSuccessSchema(approveDataSchema);
@@ -578,7 +569,6 @@ import {
578
569
  collabAdd as coreCollabAdd,
579
570
  collabRecordTurn as coreCollabRecordTurn,
580
571
  collabApprove as coreCollabApprove,
581
- collabInbox as coreCollabInbox,
582
572
  collabListMergeRequests as coreCollabListMergeRequests,
583
573
  collabInit as coreCollabInit,
584
574
  collabInvite as coreCollabInvite,
@@ -599,13 +589,6 @@ function unwrapResponseObject(resp, label) {
599
589
  }
600
590
  return obj;
601
591
  }
602
- function normalizeMergeRequestsPayload(payload) {
603
- if (Array.isArray(payload)) return payload;
604
- if (!payload || typeof payload !== "object") return [];
605
- return Object.values(payload).flatMap(
606
- (value) => Array.isArray(value) ? value : []
607
- );
608
- }
609
592
  function getRiskLevel(status) {
610
593
  if (status.recommendedAction === "reconcile") return "high";
611
594
  if (status.recommendedAction === "sync" || status.remote.incomingOpenMergeRequestCount) return "medium";
@@ -820,19 +803,6 @@ async function requestMerge(params) {
820
803
  }
821
804
  };
822
805
  }
823
- async function inbox(params) {
824
- const api = await createCollabApiClient();
825
- const result = await coreCollabInbox({ api });
826
- const mergeRequests = normalizeMergeRequestsPayload(result.mergeRequests).filter(
827
- (mr) => params.status ? String(mr.status ?? "") === params.status : true
828
- );
829
- return {
830
- data: { mergeRequests },
831
- warnings: [],
832
- recommendedNextActions: [],
833
- logContext: {}
834
- };
835
- }
836
806
  async function reviewQueue(params) {
837
807
  const api = await createCollabApiClient();
838
808
  const result = await coreCollabListMergeRequests({
@@ -1291,7 +1261,7 @@ function registerCollabTools(server, context) {
1291
1261
  });
1292
1262
  registerTool(server, context, {
1293
1263
  name: "remix_collab_request_merge",
1294
- description: "Open a Remix merge request from the current bound repository to its upstream app instead of merging locally with raw git.",
1264
+ description: "Open a prompt-backed Remix merge request from the current bound repository to its upstream app instead of merging locally with raw git.",
1295
1265
  access: "remote_write",
1296
1266
  inputSchema: requestMergeInputSchema,
1297
1267
  outputSchema: requestMergeSuccessSchema,
@@ -1341,20 +1311,9 @@ function registerCollabTools(server, context) {
1341
1311
  });
1342
1312
  }
1343
1313
  });
1344
- registerTool(server, context, {
1345
- name: "remix_collab_inbox",
1346
- description: "Backwards-compatible alias of `remix_collab_review_queue`. Lists reviewable merge requests only, not a broad visible inbox. Optional `status` filters the results.",
1347
- access: "read",
1348
- inputSchema: inboxInputSchema,
1349
- outputSchema: inboxSuccessSchema,
1350
- run: async (args) => {
1351
- const input = z3.object(inboxInputSchema).parse(args);
1352
- return inbox({ status: input.status });
1353
- }
1354
- });
1355
1314
  registerTool(server, context, {
1356
1315
  name: "remix_collab_view_merge_request",
1357
- description: "View Remix merge request metadata, prompts, change steps, and optionally a bounded unified diff before approval or rejection.",
1316
+ description: "View Remix merge request metadata, review groups, change steps, and optionally a bounded unified diff before approval or rejection.",
1358
1317
  access: "read",
1359
1318
  inputSchema: viewMergeRequestInputSchema,
1360
1319
  outputSchema: viewMergeRequestSuccessSchema,
@@ -1369,7 +1328,7 @@ function registerCollabTools(server, context) {
1369
1328
  });
1370
1329
  registerTool(server, context, {
1371
1330
  name: "remix_collab_approve_remote",
1372
- description: "Approve a merge request remotely and wait for terminal completion without mutating the local repository, preserving Remix as the merge authority.",
1331
+ description: "Approve a merge request or upstream sync remotely and wait for terminal completion without mutating the local repository, preserving Remix as the merge authority.",
1373
1332
  access: "remote_write",
1374
1333
  inputSchema: approveInputSchema,
1375
1334
  outputSchema: approveSuccessSchema,