import { MCPTool } from './index.js';
import { ChangerawrClient } from '../client/changerawr-client.js';
export const getPublicChangelogTool: MCPTool = {
name: 'get_public_changelog',
description: 'Get the public changelog for a project (for public projects only)',
inputSchema: {
type: 'object',
properties: {
projectId: {
type: 'string',
description: 'The ID of the project to get public changelog for',
},
},
required: ['projectId'],
},
async execute(args: { projectId: string }, client: ChangerawrClient) {
const entries = await client.getPublicChangelog(args.projectId);
return {
success: true,
data: entries,
message: `Retrieved ${entries.length} public changelog entries`,
};
},
};