configure_template
Set up a custom template for generating release notes, allowing you to define the structure and format for your project's changelog.
Instructions
Configure a custom template for release notes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| template | Yes |
Implementation Reference
- Handler logic for the 'configure_template' tool: parses input arguments, stores the custom template in a global 'templates' object, and returns a JSON success message.case 'configure_template': { const args = ConfigureTemplateSchema.parse(request.params.arguments); templates[args.name] = args.template; return { content: [ { type: 'text', text: JSON.stringify({ message: `Template '${args.name}' configured successfully` }), }, ], }; }
- Zod schema defining the input for 'configure_template': requires 'name' (string) and 'template' (string).export const ConfigureTemplateSchema = z.object({ name: z.string(), template: z.string() });
- src/release-notes-server/index.ts:47-51 (registration)Tool registration in the ListTools handler: specifies name, description, and converts schema to JSON schema.{ name: 'configure_template', description: 'Configure a custom template for release notes', inputSchema: zodToJsonSchema(ConfigureTemplateSchema), },
- Global object storing configured templates, used by both 'configure_template' and 'generate_release_notes' tools.const templates: Record<string, string> = {};