Skip to content

Commit 2c1bca4

Browse files
committed
Improvements and changelog
1 parent 074471d commit 2c1bca4

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Added 'hosting' to the 'firebase_init' MCP tool.

src/mcp/tools/core/init.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,17 @@ export const init = tool(
145145
site: z
146146
.string()
147147
.optional()
148-
.describe("The ID of the hosting site to configure."),
149-
public: z
148+
.describe(
149+
"The ID of the hosting site to configure. If omitted and there is a default hosting site, that will be used.",
150+
),
151+
publicDirectory: z
150152
.string()
151153
.optional()
152154
.default("public")
153-
.describe("The directory to use as the public root."),
154-
spa: z
155+
.describe(
156+
"The directory containing public files that will be served. If using a build tool, this likely should be the output directory of that tool.",
157+
),
158+
singlePageApp: z
155159
.boolean()
156160
.optional()
157161
.default(false)
@@ -244,8 +248,8 @@ export const init = tool(
244248
featuresList.push("hosting");
245249
featureInfo.hosting = {
246250
newSiteId: features.hosting.site,
247-
public: features.hosting.public,
248-
spa: features.hosting.spa,
251+
public: features.hosting.publicDirectory,
252+
spa: features.hosting.singlePageApp,
249253
};
250254
}
251255
const setup: Setup = {

0 commit comments

Comments
 (0)