@remixhq/mcp 0.1.9 → 0.1.10
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 +26 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.js +26 -2
- package/dist/index.js.map +1 -1
- package/dist/server.js +26 -2
- package/dist/server.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -463,6 +463,9 @@ var initInputSchema = {
|
|
|
463
463
|
var listInputSchema = {
|
|
464
464
|
requestId: z2.string().trim().min(1).optional(),
|
|
465
465
|
outputMode: z2.enum(["summary", "full"]).optional(),
|
|
466
|
+
ownership: z2.enum(["mine", "shared", "all"]).optional(),
|
|
467
|
+
accessScope: z2.enum(["all_readable", "explicit_member"]).optional(),
|
|
468
|
+
createdBy: z2.string().trim().min(1).optional(),
|
|
466
469
|
forked: z2.enum(["only", "exclude", "all"]).optional(),
|
|
467
470
|
limit: z2.number().int().positive().max(50).optional(),
|
|
468
471
|
offset: z2.number().int().nonnegative().optional()
|
|
@@ -860,6 +863,9 @@ async function listApps(params) {
|
|
|
860
863
|
const api = await createCollabApiClient();
|
|
861
864
|
const result = await coreCollabList({
|
|
862
865
|
api,
|
|
866
|
+
ownership: params.ownership,
|
|
867
|
+
accessScope: params.accessScope,
|
|
868
|
+
createdBy: params.createdBy,
|
|
863
869
|
forked: params.forked,
|
|
864
870
|
limit: params.limit,
|
|
865
871
|
offset: params.offset
|
|
@@ -1818,13 +1824,16 @@ function registerCollabTools(server, context) {
|
|
|
1818
1824
|
});
|
|
1819
1825
|
registerTool(server, context, {
|
|
1820
1826
|
name: "remix_collab_list",
|
|
1821
|
-
description: "List Remix apps visible to the current authenticated user.",
|
|
1827
|
+
description: "List Remix apps visible to the current authenticated user. Defaults to membership-oriented discovery; pass accessScope=all_readable explicitly for broader readable discovery.",
|
|
1822
1828
|
access: "read",
|
|
1823
1829
|
inputSchema: listInputSchema,
|
|
1824
1830
|
outputSchema: listSuccessSchema,
|
|
1825
1831
|
run: async (args) => {
|
|
1826
1832
|
const input = z3.object(listInputSchema).parse(args);
|
|
1827
1833
|
return listApps({
|
|
1834
|
+
ownership: input.ownership,
|
|
1835
|
+
accessScope: input.accessScope,
|
|
1836
|
+
createdBy: input.createdBy,
|
|
1828
1837
|
forked: input.forked,
|
|
1829
1838
|
limit: input.limit,
|
|
1830
1839
|
offset: input.offset
|
|
@@ -2251,6 +2260,9 @@ var directoryListAppsInputSchema = {
|
|
|
2251
2260
|
...commonRequestFieldsSchema,
|
|
2252
2261
|
projectId: z4.string().trim().min(1).optional(),
|
|
2253
2262
|
organizationId: z4.string().trim().min(1).optional(),
|
|
2263
|
+
ownership: z4.enum(["mine", "shared", "all"]).optional(),
|
|
2264
|
+
accessScope: z4.enum(["all_readable", "explicit_member"]).optional(),
|
|
2265
|
+
createdBy: z4.string().trim().min(1).optional(),
|
|
2254
2266
|
forked: z4.enum(["only", "exclude", "all"]).optional(),
|
|
2255
2267
|
limit: z4.number().int().positive().max(50).optional(),
|
|
2256
2268
|
offset: z4.number().int().nonnegative().optional()
|
|
@@ -2286,6 +2298,9 @@ var listAppsDataSchema = z4.object({
|
|
|
2286
2298
|
filters: z4.object({
|
|
2287
2299
|
projectId: z4.string().nullable(),
|
|
2288
2300
|
organizationId: z4.string().nullable(),
|
|
2301
|
+
ownership: z4.enum(["mine", "shared", "all"]),
|
|
2302
|
+
accessScope: z4.enum(["all_readable", "explicit_member"]),
|
|
2303
|
+
createdBy: z4.string().nullable(),
|
|
2289
2304
|
forked: z4.enum(["only", "exclude", "all"])
|
|
2290
2305
|
})
|
|
2291
2306
|
});
|
|
@@ -2542,6 +2557,9 @@ async function listApps2(params) {
|
|
|
2542
2557
|
await api.listApps({
|
|
2543
2558
|
projectId: params.projectId,
|
|
2544
2559
|
organizationId: params.organizationId,
|
|
2560
|
+
ownership: params.ownership ?? "all",
|
|
2561
|
+
accessScope: params.accessScope ?? "explicit_member",
|
|
2562
|
+
createdBy: params.createdBy,
|
|
2545
2563
|
forked: params.forked,
|
|
2546
2564
|
limit: pagination.limit + 1,
|
|
2547
2565
|
offset: pagination.offset
|
|
@@ -2558,6 +2576,9 @@ async function listApps2(params) {
|
|
|
2558
2576
|
filters: {
|
|
2559
2577
|
projectId: params.projectId ?? null,
|
|
2560
2578
|
organizationId: params.organizationId ?? null,
|
|
2579
|
+
ownership: params.ownership ?? "all",
|
|
2580
|
+
accessScope: params.accessScope ?? "explicit_member",
|
|
2581
|
+
createdBy: params.createdBy ?? null,
|
|
2561
2582
|
forked: params.forked ?? "all"
|
|
2562
2583
|
}
|
|
2563
2584
|
},
|
|
@@ -2741,7 +2762,7 @@ function registerIdentityTools(server, context) {
|
|
|
2741
2762
|
});
|
|
2742
2763
|
registerTool2(server, context, {
|
|
2743
2764
|
name: "remix_directory_list_apps",
|
|
2744
|
-
description: "List apps visible to the authenticated user, with optional organization
|
|
2765
|
+
description: "List apps visible to the authenticated user, with optional organization, project, ownership, and access-scope filters. Defaults to membership-oriented discovery unless accessScope=all_readable is passed explicitly.",
|
|
2745
2766
|
access: "read",
|
|
2746
2767
|
inputSchema: directoryListAppsInputSchema,
|
|
2747
2768
|
outputSchema: listAppsSuccessSchema,
|
|
@@ -2751,6 +2772,9 @@ function registerIdentityTools(server, context) {
|
|
|
2751
2772
|
return listApps2({
|
|
2752
2773
|
projectId: input.projectId,
|
|
2753
2774
|
organizationId: input.organizationId,
|
|
2775
|
+
ownership: input.ownership,
|
|
2776
|
+
accessScope: input.accessScope,
|
|
2777
|
+
createdBy: input.createdBy,
|
|
2754
2778
|
forked: input.forked,
|
|
2755
2779
|
limit: input.limit,
|
|
2756
2780
|
offset: input.offset,
|