You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/mcp/tools/auth/set_claims.ts
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,21 +5,23 @@ import { setCustomClaim } from "../../../gcp/auth.js";
5
5
6
6
exportconstset_claim=tool(
7
7
{
8
-
name: "set_claims",
8
+
name: "set_claim",
9
9
description:
10
-
"Sets custom claims on a specific user's account. Use to create trusted values associated with a user e.g. marking them as an admin. Claims are limited in size and should be succinct in name and value. Specify ONLY ONE OF `value` or `json_value` parameters.",
10
+
"Sets a custom claim on a specific user's account. Use to create trusted values associated with a user e.g. marking them as an admin. Claims are limited in size and should be succinct in name and value. Specify ONLY ONE OF `value` or `json_value` parameters.",
11
11
inputSchema: z.object({
12
12
uid: z.string().describe("the UID of the user to update"),
13
13
claim: z.string().describe("the name (key) of the claim to update, e.g. 'admin'"),
14
14
value: z
15
15
.union([z.string(),z.number(),z.boolean()])
16
16
.optional()
17
-
.describe("set the value of the custom claim to the specified simple scalar value"),
17
+
.describe(
18
+
"Set the value of the custom claim to the specified simple scalar value. One of `value` or `json_value` must be provided.",
19
+
),
18
20
json_value: z
19
21
.string()
20
22
.optional()
21
23
.describe(
22
-
"set the claim to a complex JSON value like an object or an array by providing stringified JSON. string must be parseable as valid JSON",
24
+
"Set the claim to a complex JSON value like an object or an array by providing stringified JSON. String must be parseable as valid JSON. One of `value` or `json_value` must be provided.",
Copy file name to clipboardExpand all lines: src/mcp/tools/core/init.ts
+68-61Lines changed: 68 additions & 61 deletions
Original file line number
Diff line number
Diff line change
@@ -8,69 +8,76 @@ export const init = tool(
8
8
{
9
9
name: "init",
10
10
description:
11
-
"Setup the Firebase workspace and initialize selected features."+
12
-
" It takes a feature map that describe each desired product. All the features are optional."+
13
-
" Provide only requested products.",
11
+
"Initializes selected Firebase features in the workspace. All features are optional; provide only the products you wish to set up. You can initialize new features into an existing project directory, but re-initializing an existing feature may overwrite configuration.",
14
12
inputSchema: z.object({
15
-
// force: z
16
-
// .boolean()
17
-
// .default(false)
18
-
// .describe("Force the initialization without prompting for confirmation. Without force, it prompts if any existing files are overwritten."),
19
13
features: z.object({
20
-
database: z.object({
21
-
rules_filename: z
22
-
.string()
23
-
.optional()
24
-
.default("database.rules.json")
25
-
.describe("The file to use for Realtime Database Security Rules."),
26
-
rules: z
27
-
.string()
28
-
.optional()
29
-
.default(DEFAULT_RULES)
30
-
.describe("The security rules to use for Realtime Database Security Rules."),
31
-
}),
32
-
firestore: z.object({
33
-
database_id: z
34
-
.string()
35
-
.optional()
36
-
.default("(default)")
37
-
.describe("The database ID to use for Firestore."),
38
-
rules_filename: z
39
-
.string()
40
-
.optional()
41
-
.default("firestore.rules")
42
-
.describe("The file to use for Firestore Security Rules."),
43
-
rules: z
44
-
.string()
45
-
.optional()
46
-
.describe(
47
-
"The security rules to use for Firestore Security Rules. Default to open rules that expire in 30 days.",
48
-
),
49
-
}),
50
-
dataconnect: z.object({
51
-
service_id: z
52
-
.string()
53
-
.optional()
54
-
.describe(
55
-
"The Firebase Data Connect service ID to initialize. Default to match the current folder name.",
56
-
),
57
-
location_id: z
58
-
.string()
59
-
.optional()
60
-
.default("us-central1")
61
-
.describe("The GCP region ID to set up the Firebase Data Connect service."),
62
-
cloudsql_instance_id: z
63
-
.string()
64
-
.optional()
65
-
.describe(
66
-
"The GCP Cloud SQL instance ID to use in the Firebase Data Connect service. By default, use <serviceId>-fdc.",
67
-
),
68
-
cloudsql_database: z
69
-
.string()
70
-
.optional()
71
-
.default("fdcdb")
72
-
.describe("The Postgres database ID to use in the Firebase Data Connect service."),
73
-
}),
14
+
database: z
15
+
.object({
16
+
rules_filename: z
17
+
.string()
18
+
.optional()
19
+
.default("database.rules.json")
20
+
.describe("The file to use for Realtime Database Security Rules."),
21
+
rules: z
22
+
.string()
23
+
.optional()
24
+
.default(DEFAULT_RULES)
25
+
.describe("The security rules to use for Realtime Database Security Rules."),
26
+
})
27
+
.optional()
28
+
.describe(
29
+
"Provide this object to initialize Firebase Realtime Database in this project directory.",
30
+
),
31
+
firestore: z
32
+
.object({
33
+
database_id: z
34
+
.string()
35
+
.optional()
36
+
.default("(default)")
37
+
.describe("The database ID to use for Firestore."),
38
+
rules_filename: z
39
+
.string()
40
+
.optional()
41
+
.default("firestore.rules")
42
+
.describe("The file to use for Firestore Security Rules."),
43
+
rules: z
44
+
.string()
45
+
.optional()
46
+
.describe(
47
+
"The security rules to use for Firestore Security Rules. Default to open rules that expire in 30 days.",
48
+
),
49
+
})
50
+
.optional()
51
+
.describe("Provide this object to initialize Cloud Firestore in this project directory."),
52
+
dataconnect: z
53
+
.object({
54
+
service_id: z
55
+
.string()
56
+
.optional()
57
+
.describe(
58
+
"The Firebase Data Connect service ID to initialize. Default to match the current folder name.",
59
+
),
60
+
location_id: z
61
+
.string()
62
+
.optional()
63
+
.default("us-central1")
64
+
.describe("The GCP region ID to set up the Firebase Data Connect service."),
65
+
cloudsql_instance_id: z
66
+
.string()
67
+
.optional()
68
+
.describe(
69
+
"The GCP Cloud SQL instance ID to use in the Firebase Data Connect service. By default, use <serviceId>-fdc.",
70
+
),
71
+
cloudsql_database: z
72
+
.string()
73
+
.optional()
74
+
.default("fdcdb")
75
+
.describe("The Postgres database ID to use in the Firebase Data Connect service."),
76
+
})
77
+
.optional()
78
+
.describe(
79
+
"Provide this object to initialize Firebase Data Connect in this project directory.",
0 commit comments