Skip to main content
Glama

apple_create_profile

Create Apple provisioning profiles for iOS app development and distribution by specifying name, type, bundle ID, certificates, and devices.

Instructions

Create a provisioning profile

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesProfile name
profileTypeYesProfile type (e.g. IOS_APP_DEVELOPMENT, IOS_APP_STORE)
bundleIdIdYesBundle ID
certificateIdsYesArray of certificate IDs
deviceIdsNoArray of device IDs (required for development profiles)

Implementation Reference

  • The handler function for 'apple_create_profile' which constructs the payload and makes the POST request to the API.
    handler: async (client, args) => {
      const relationships: any = {
        bundleId: { data: { type: 'bundleIds', id: args.bundleIdId } },
        certificates: { data: args.certificateIds.map((id: string) => ({ type: 'certificates', id })) },
      };
      if (args.deviceIds && args.deviceIds.length > 0) {
        relationships.devices = { data: args.deviceIds.map((id: string) => ({ type: 'devices', id })) };
      }
      return client.request('/profiles', {
        method: 'POST',
        body: {
          data: {
            type: 'profiles',
            attributes: {
              name: args.name,
              profileType: args.profileType,
            },
            relationships,
          },
        },
      });
    },
  • The Zod schema definition for 'apple_create_profile' inputs.
    schema: z.object({
      name: z.string().describe('Profile name'),
      profileType: z.string().describe('Profile type (e.g. IOS_APP_DEVELOPMENT, IOS_APP_STORE)'),
      bundleIdId: z.string().describe('Bundle ID'),
      certificateIds: z.array(z.string()).describe('Array of certificate IDs'),
      deviceIds: z.array(z.string()).optional().describe('Array of device IDs (required for development profiles)'),
    }),
  • Registration of the 'apple_create_profile' tool within the ToolDef structure.
    const createProfile: ToolDef = {
      name: 'apple_create_profile',
      description: 'Create a provisioning profile',
Install Server

Other Tools

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/mikusnuz/app-publish-mcp'

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