@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/server.js CHANGED
@@ -460,11 +460,6 @@ var applyInputSchema = {
460
460
  var requestMergeInputSchema = {
461
461
  ...commonRequestFieldsSchema
462
462
  };
463
- var inboxInputSchema = {
464
- requestId: z2.string().trim().min(1).optional(),
465
- outputMode: z2.enum(["summary", "full"]).optional(),
466
- status: z2.string().trim().min(1).optional()
467
- };
468
463
  var reviewQueueInputSchema = {
469
464
  requestId: z2.string().trim().min(1).optional(),
470
465
  outputMode: z2.enum(["summary", "full"]).optional(),
@@ -539,9 +534,6 @@ var addDataSchema = z2.object({
539
534
  var recordTurnDataSchema = genericRecordSchema;
540
535
  var syncDataSchema = genericRecordSchema;
541
536
  var requestMergeDataSchema = genericRecordSchema;
542
- var inboxDataSchema = z2.object({
543
- mergeRequests: z2.array(genericRecordSchema)
544
- });
545
537
  var mergeRequestQueueDataSchema = z2.object({
546
538
  queue: mergeRequestQueueSchema,
547
539
  appId: z2.string().nullable(),
@@ -561,7 +553,6 @@ var addSuccessSchema = makeSuccessSchema(addDataSchema);
561
553
  var recordTurnSuccessSchema = makeSuccessSchema(recordTurnDataSchema);
562
554
  var syncSuccessSchema = makeSuccessSchema(syncDataSchema);
563
555
  var requestMergeSuccessSchema = makeSuccessSchema(requestMergeDataSchema);
564
- var inboxSuccessSchema = makeSuccessSchema(inboxDataSchema);
565
556
  var mergeRequestQueueSuccessSchema = makeSuccessSchema(mergeRequestQueueDataSchema);
566
557
  var viewMergeRequestSuccessSchema = makeSuccessSchema(viewMergeRequestDataSchema);
567
558
  var approveSuccessSchema = makeSuccessSchema(approveDataSchema);
@@ -575,7 +566,6 @@ import {
575
566
  collabAdd as coreCollabAdd,
576
567
  collabRecordTurn as coreCollabRecordTurn,
577
568
  collabApprove as coreCollabApprove,
578
- collabInbox as coreCollabInbox,
579
569
  collabListMergeRequests as coreCollabListMergeRequests,
580
570
  collabInit as coreCollabInit,
581
571
  collabInvite as coreCollabInvite,
@@ -596,13 +586,6 @@ function unwrapResponseObject(resp, label) {
596
586
  }
597
587
  return obj;
598
588
  }
599
- function normalizeMergeRequestsPayload(payload) {
600
- if (Array.isArray(payload)) return payload;
601
- if (!payload || typeof payload !== "object") return [];
602
- return Object.values(payload).flatMap(
603
- (value) => Array.isArray(value) ? value : []
604
- );
605
- }
606
589
  function getRiskLevel(status) {
607
590
  if (status.recommendedAction === "reconcile") return "high";
608
591
  if (status.recommendedAction === "sync" || status.remote.incomingOpenMergeRequestCount) return "medium";
@@ -817,19 +800,6 @@ async function requestMerge(params) {
817
800
  }
818
801
  };
819
802
  }
820
- async function inbox(params) {
821
- const api = await createCollabApiClient();
822
- const result = await coreCollabInbox({ api });
823
- const mergeRequests = normalizeMergeRequestsPayload(result.mergeRequests).filter(
824
- (mr) => params.status ? String(mr.status ?? "") === params.status : true
825
- );
826
- return {
827
- data: { mergeRequests },
828
- warnings: [],
829
- recommendedNextActions: [],
830
- logContext: {}
831
- };
832
- }
833
803
  async function reviewQueue(params) {
834
804
  const api = await createCollabApiClient();
835
805
  const result = await coreCollabListMergeRequests({
@@ -1288,7 +1258,7 @@ function registerCollabTools(server, context) {
1288
1258
  });
1289
1259
  registerTool(server, context, {
1290
1260
  name: "remix_collab_request_merge",
1291
- description: "Open a Remix merge request from the current bound repository to its upstream app instead of merging locally with raw git.",
1261
+ description: "Open a prompt-backed Remix merge request from the current bound repository to its upstream app instead of merging locally with raw git.",
1292
1262
  access: "remote_write",
1293
1263
  inputSchema: requestMergeInputSchema,
1294
1264
  outputSchema: requestMergeSuccessSchema,
@@ -1338,20 +1308,9 @@ function registerCollabTools(server, context) {
1338
1308
  });
1339
1309
  }
1340
1310
  });
1341
- registerTool(server, context, {
1342
- name: "remix_collab_inbox",
1343
- description: "Backwards-compatible alias of `remix_collab_review_queue`. Lists reviewable merge requests only, not a broad visible inbox. Optional `status` filters the results.",
1344
- access: "read",
1345
- inputSchema: inboxInputSchema,
1346
- outputSchema: inboxSuccessSchema,
1347
- run: async (args) => {
1348
- const input = z3.object(inboxInputSchema).parse(args);
1349
- return inbox({ status: input.status });
1350
- }
1351
- });
1352
1311
  registerTool(server, context, {
1353
1312
  name: "remix_collab_view_merge_request",
1354
- description: "View Remix merge request metadata, prompts, change steps, and optionally a bounded unified diff before approval or rejection.",
1313
+ description: "View Remix merge request metadata, review groups, change steps, and optionally a bounded unified diff before approval or rejection.",
1355
1314
  access: "read",
1356
1315
  inputSchema: viewMergeRequestInputSchema,
1357
1316
  outputSchema: viewMergeRequestSuccessSchema,
@@ -1366,7 +1325,7 @@ function registerCollabTools(server, context) {
1366
1325
  });
1367
1326
  registerTool(server, context, {
1368
1327
  name: "remix_collab_approve_remote",
1369
- description: "Approve a merge request remotely and wait for terminal completion without mutating the local repository, preserving Remix as the merge authority.",
1328
+ 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.",
1370
1329
  access: "remote_write",
1371
1330
  inputSchema: approveInputSchema,
1372
1331
  outputSchema: approveSuccessSchema,