apple_create_certificate
Create Apple certificates for iOS and macOS app development and distribution by submitting Certificate Signing Requests (CSR).
Instructions
Create a certificate
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csrContent | Yes | Certificate Signing Request (CSR) content | |
| certificateType | Yes | Certificate type (e.g. IOS_DEVELOPMENT, IOS_DISTRIBUTION, MAC_APP_DISTRIBUTION, DEVELOPER_ID_APPLICATION) |
Implementation Reference
- src/apple/tools.ts:783-796 (handler)The handler function that performs a POST request to /certificates to create a certificate.
handler: async (client, args) => { return client.request('/certificates', { method: 'POST', body: { data: { type: 'certificates', attributes: { csrContent: args.csrContent, certificateType: args.certificateType, }, }, }, }); }, - src/apple/tools.ts:779-782 (schema)The input schema definition using Zod for the apple_create_certificate tool.
schema: z.object({ csrContent: z.string().describe('Certificate Signing Request (CSR) content'), certificateType: z.string().describe('Certificate type (e.g. IOS_DEVELOPMENT, IOS_DISTRIBUTION, MAC_APP_DISTRIBUTION, DEVELOPER_ID_APPLICATION)'), }), - src/apple/tools.ts:776-797 (registration)The tool definition object containing name, description, schema, and handler for apple_create_certificate.
const createCertificate: ToolDef = { name: 'apple_create_certificate', description: 'Create a certificate', schema: z.object({ csrContent: z.string().describe('Certificate Signing Request (CSR) content'), certificateType: z.string().describe('Certificate type (e.g. IOS_DEVELOPMENT, IOS_DISTRIBUTION, MAC_APP_DISTRIBUTION, DEVELOPER_ID_APPLICATION)'), }), handler: async (client, args) => { return client.request('/certificates', { method: 'POST', body: { data: { type: 'certificates', attributes: { csrContent: args.csrContent, certificateType: args.certificateType, }, }, }, }); }, };