@centrali-io/centrali-mcp 4.4.8-rc.6 → 4.4.8-rc.7
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.
|
@@ -939,8 +939,8 @@ function registerServiceAccountTools(server, sdk, centraliUrl, workspaceId, ownC
|
|
|
939
939
|
return { content: [{ type: "text", text: formatError(error, "listing permissions") }], isError: true };
|
|
940
940
|
}
|
|
941
941
|
}));
|
|
942
|
-
server.tool("create_permission", "Create a new permission definition
|
|
943
|
-
permission: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).describe("
|
|
942
|
+
server.tool("create_permission", "Create a new permission definition. Permissions bind actions to a resource within a policy. Required fields: name, resourceId (UUID from list_resources), actions (string array), policyId (UUID from list_policies or create_policy).", {
|
|
943
|
+
permission: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).describe("Required: { name: string, resourceId: UUID, actions: string[], policyId: UUID }. Optional: description, groups (string[]), priority (number)."),
|
|
944
944
|
}, (_a) => __awaiter(this, [_a], void 0, function* ({ permission }) {
|
|
945
945
|
try {
|
|
946
946
|
const result = yield getPermissionsClient().post("/", permission);
|
package/package.json
CHANGED
|
@@ -1166,9 +1166,9 @@ export function registerServiceAccountTools(server: McpServer, sdk: CentraliSDK,
|
|
|
1166
1166
|
|
|
1167
1167
|
server.tool(
|
|
1168
1168
|
"create_permission",
|
|
1169
|
-
"Create a new permission definition
|
|
1169
|
+
"Create a new permission definition. Permissions bind actions to a resource within a policy. Required fields: name, resourceId (UUID from list_resources), actions (string array), policyId (UUID from list_policies or create_policy).",
|
|
1170
1170
|
{
|
|
1171
|
-
permission: z.record(z.string(), z.any()).describe("
|
|
1171
|
+
permission: z.record(z.string(), z.any()).describe("Required: { name: string, resourceId: UUID, actions: string[], policyId: UUID }. Optional: description, groups (string[]), priority (number)."),
|
|
1172
1172
|
},
|
|
1173
1173
|
async ({ permission }) => {
|
|
1174
1174
|
try {
|