We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e186ca9 commit 2b9a255Copy full SHA for 2b9a255
src/mcp/tools/core/list_apps.ts
@@ -10,7 +10,7 @@ export const list_apps = tool(
10
inputSchema: z.object({
11
platform: z
12
.enum(["ios", "android", "web", "all"])
13
- .default("all")
+ .optional()
14
.describe("the specific platform to list (omit to list all platforms)"),
15
}),
16
annotations: {
@@ -26,7 +26,7 @@ export const list_apps = tool(
26
try {
27
const apps = await listFirebaseApps(
28
projectId!,
29
- platform === "all" ? AppPlatform.ANY : (platform.toUpperCase() as AppPlatform),
+ !platform || platform === "all" ? AppPlatform.ANY : (platform.toUpperCase() as AppPlatform),
30
);
31
return toContent(apps);
32
} catch (err: any) {
0 commit comments