import type { Database as DatabaseType } from 'better-sqlite3'; import type { ServerConfig } from './config.js'; /** * Context passed to tool handlers. */ export interface ToolContext { db: DatabaseType; config: ServerConfig; } /** * Context passed to resource handlers. */ export interface ResourceContext { db: DatabaseType; config: ServerConfig; } /** * Result returned by tool handlers. * Matches MCP SDK tool result format. * Index signature required for MCP SDK compatibility. */ export interface ToolResult { [key: string]: unknown; content: { type: 'text'; text: string; }[]; isError?: boolean; } /** * Result returned by resource handlers. * Matches MCP SDK resource result format. * Index signature required for MCP SDK compatibility. */ export interface ResourceResult { [key: string]: unknown; contents: ({ uri: string; mimeType?: string; text: string; blob?: never; } | { uri: string; mimeType?: string; blob: string; text?: never; })[]; } //# sourceMappingURL=types.d.ts.map