mcp-turso-cloud
Version:
MCP server for integrating Turso with LLMs
24 lines (23 loc) • 528 B
TypeScript
/**
* Common type definitions for the Turso MCP server
*/
import { IntMode, ResultSet } from '@libsql/client';
export interface Database {
name: string;
id: string;
region: string;
group?: string;
created_at: string;
}
export interface CachedToken {
jwt: string;
expiresAt: Date;
permission: 'full-access' | 'read-only';
}
export interface TokenCache {
[databaseName: string]: CachedToken;
}
export interface DatabaseContext {
currentDatabase?: string;
}
export { IntMode, ResultSet };