Skip to main content
Glama
jfrog

JFrog MCP Server

Official
by jfrog

jfrog_delete_permission_resource

Remove a specific resource type (artifact, release_bundle, or build) from a permission target on the JFrog MCP Server using this tool.

Instructions

Delete a specific resource type from a permission target

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the permission target
resourceTypeYesThe type of resource to delete

Implementation Reference

  • Core handler function that executes the DELETE API request to JFrog to remove a specific resource type (artifact, release_bundle, or build) from a permission target.
    export async function deletePermissionResource(name: string, resourceType: "artifact" | "release_bundle" | "build") { await jfrogRequest(`/access/api/v2/permissions/${name}/${resourceType}`, { method: "DELETE", }); return { success: true }; }
  • Input schema definition for the tool parameters: permission target name and resource type.
    inputSchema: zodToJsonSchema(z.object({ name: z.string().describe("The name of the permission target"), resourceType: z.enum(["artifact", "release_bundle", "build"]).describe("The type of resource to delete") })),
  • Tool registration object specifying name, description, input schema, and handler wrapper.
    const deletePermissionResourceTool = { name: "jfrog_delete_permission_resource", description: "Delete a specific resource type from a permission target", inputSchema: zodToJsonSchema(z.object({ name: z.string().describe("The name of the permission target"), resourceType: z.enum(["artifact", "release_bundle", "build"]).describe("The type of resource to delete") })), // //outputSchema: zodToJsonSchema(z.object({ // success: z.boolean() // })), handler: async (args: any) => { return await deletePermissionResource(args.name, args.resourceType); } };
  • Exports the array of all permission-related tools, including jfrog_delete_permission_resource, for use in MCP tool registration.
    export const PermissionsTools = [ listPermissionTargetsTool, getPermissionTargetTool, createPermissionTargetTool, updatePermissionTargetTool, deletePermissionTargetTool, getPermissionResourceTool, updatePermissionResourceTool, replacePermissionResourceTool, deletePermissionResourceTool ];

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jfrog/mcp-jfrog'

If you have feedback or need assistance with the MCP directory API, please join our Discord server