UNPKG

@ankimcp/anki-mcp-server

Version:

Model Context Protocol server for Anki - enables AI assistants to interact with your Anki flashcards

28 lines • 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ReadOnlyModeError = exports.AnkiConnectError = exports.AnkiConnectClient = void 0; exports.AnkiConnectClient = jest.fn().mockImplementation(() => ({ invoke: jest.fn(), })); class AnkiConnectError extends Error { action; originalError; constructor(message, action, originalError) { super(message); this.action = action; this.originalError = originalError; this.name = "AnkiConnectError"; } } exports.AnkiConnectError = AnkiConnectError; class ReadOnlyModeError extends Error { action; constructor(action) { super(`Action "${action}" is blocked: server is running in read-only mode. ` + `Write operations are disabled. Remove the --read-only flag to enable writes.`); this.action = action; this.name = "ReadOnlyModeError"; } } exports.ReadOnlyModeError = ReadOnlyModeError; //# sourceMappingURL=anki-connect.client.js.map