create-container-registry-auth
Generate authentication credentials for container registries to securely access private container images when deploying pods on RunPod infrastructure.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the container registry auth | |
| password | Yes | Registry password | |
| username | Yes | Registry username |
Implementation Reference
- src/index.ts:788-803 (handler)The async handler function for the 'create-container-registry-auth' tool. It makes a POST request to the RunPod API endpoint '/containerregistryauth' using the shared runpodRequest helper with the input parameters (name, username, password) and returns the formatted JSON response as MCP content.async (params) => { const result = await runpodRequest( '/containerregistryauth', 'POST', params ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.ts:783-787 (schema)Zod input schema for the 'create-container-registry-auth' tool, defining the required parameters: name (string), username (string), and password (string) with descriptions.{ name: z.string().describe('Name for the container registry auth'), username: z.string().describe('Registry username'), password: z.string().describe('Registry password'), },
- src/index.ts:781-804 (registration)The MCP server.tool call that registers the 'create-container-registry-auth' tool, specifying its name, input schema, and inline handler function.server.tool( 'create-container-registry-auth', { name: z.string().describe('Name for the container registry auth'), username: z.string().describe('Registry username'), password: z.string().describe('Registry password'), }, async (params) => { const result = await runpodRequest( '/containerregistryauth', 'POST', params ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );