import { Tool } from '@modelcontextprotocol/sdk/types.js';
import { ConfigManager } from '../config/manager.js';
import { FeedsListResponse } from '../types/index.js';
export function createListFeedsTool(): Tool {
return {
name: 'list_feeds',
description: '登録されているRSSフィードの一覧を取得します',
inputSchema: {
type: 'object',
properties: {},
additionalProperties: false
}
};
}
export async function handleListFeeds(
args: any,
configManager: ConfigManager
): Promise<FeedsListResponse> {
const feeds = configManager.getFeeds();
return { feeds };
}