UNPKG

@henkey/postgres-mcp-server

Version:

A Model Context Protocol (MCP) server that provides comprehensive PostgreSQL database management capabilities for AI assistants

16 lines (15 loc) 437 B
import type { z } from 'zod'; export type GetConnectionStringFn = (connectionStringArg?: string) => string; export interface ToolOutput { content: Array<{ type: 'text'; text: string; }>; isError?: boolean; } export interface PostgresTool { name: string; description: string; inputSchema: z.ZodTypeAny; execute: (args: any, getConnectionString: GetConnectionStringFn) => Promise<ToolOutput>; }