anki-mcp-http
Version:
Model Context Protocol server for Anki - enables AI assistants to interact with your Anki flashcards
20 lines (19 loc) • 881 B
TypeScript
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
import { AnkiCard } from '../types/anki.types';
export declare function cleanHtml(html: string): string;
export declare function extractCardContent(fields: AnkiCard['fields']): {
front: string;
back: string;
};
export declare function getCardType(type: number): string;
export declare function getNoteType(modelName: string): string;
export declare function getRatingDescription(rating: number): string;
export declare function createSuccessResponse(data: any): CallToolResult;
export declare function createErrorResponse(error: unknown, context?: Record<string, any>): CallToolResult;
export declare function formatInterval(days: number): string;
export declare function parseDeckStats(stats: any): {
new_count: number;
learn_count: number;
review_count: number;
total_cards: number;
};