UNPKG

@bdmarvin/mcp-server-memory

Version:

MCP Server for LLM Long-Term Memory using KG and Google Drive

249 lines (248 loc) 9.41 kB
import { z } from 'zod'; export declare const UpdateKgNodeInputSchema: z.ZodObject<{ project_id: z.ZodString; node_id: z.ZodString; attributes: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodAny>, Record<string, any>, Record<string, any>>; }, "strip", z.ZodTypeAny, { project_id: string; node_id: string; attributes: Record<string, any>; }, { project_id: string; node_id: string; attributes: Record<string, any>; }>; export declare const AddKgRelationshipInputSchema: z.ZodObject<{ project_id: z.ZodString; source_node_id: z.ZodString; relationship_type: z.ZodString; target_node_id: z.ZodString; attributes: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>, Record<string, any> | undefined, Record<string, any> | undefined>; }, "strip", z.ZodTypeAny, { project_id: string; source_node_id: string; relationship_type: string; target_node_id: string; attributes?: Record<string, any> | undefined; }, { project_id: string; source_node_id: string; relationship_type: string; target_node_id: string; attributes?: Record<string, any> | undefined; }>; export declare const LogDecisionInputSchema: z.ZodObject<{ project_id: z.ZodString; decision_summary: z.ZodString; entities_involved: z.ZodArray<z.ZodString, "many">; rationale: z.ZodOptional<z.ZodString>; status: z.ZodDefault<z.ZodEnum<["pending", "confirmed", "rejected", "superseded"]>>; }, "strip", z.ZodTypeAny, { project_id: string; status: "pending" | "confirmed" | "rejected" | "superseded"; decision_summary: string; entities_involved: string[]; rationale?: string | undefined; }, { project_id: string; decision_summary: string; entities_involved: string[]; status?: "pending" | "confirmed" | "rejected" | "superseded" | undefined; rationale?: string | undefined; }>; export declare const GetKgNodeDetailsInputSchema: z.ZodObject<{ project_id: z.ZodString; node_id: z.ZodString; }, "strip", z.ZodTypeAny, { project_id: string; node_id: string; }, { project_id: string; node_id: string; }>; export declare const GetProjectSummaryFromKgInputSchema: z.ZodObject<{ project_id: z.ZodString; }, "strip", z.ZodTypeAny, { project_id: string; }, { project_id: string; }>; export declare const SearchKgInputSchema: z.ZodObject<{ project_id: z.ZodOptional<z.ZodString>; query_description: z.ZodString; entity_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; relationship_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; max_depth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { query_description: string; max_depth: number; max_results: number; project_id?: string | undefined; entity_types?: string[] | undefined; relationship_types?: string[] | undefined; }, { query_description: string; project_id?: string | undefined; entity_types?: string[] | undefined; relationship_types?: string[] | undefined; max_depth?: number | undefined; max_results?: number | undefined; }>; export declare const RetrieveKgInputSchema: z.ZodObject<{ project_id: z.ZodString; }, "strip", z.ZodTypeAny, { project_id: string; }, { project_id: string; }>; export declare const TraverseKgInputSchema: z.ZodObject<{ project_id: z.ZodString; start_node_id: z.ZodString; relationship_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; direction: z.ZodDefault<z.ZodEnum<["outgoing", "incoming", "both"]>>; max_depth: z.ZodDefault<z.ZodNumber>; include_intermediate_nodes: z.ZodDefault<z.ZodBoolean>; filter_target_node_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { project_id: string; max_depth: number; max_results: number; start_node_id: string; direction: "outgoing" | "incoming" | "both"; include_intermediate_nodes: boolean; relationship_types?: string[] | undefined; filter_target_node_types?: string[] | undefined; }, { project_id: string; start_node_id: string; relationship_types?: string[] | undefined; max_depth?: number | undefined; max_results?: number | undefined; direction?: "outgoing" | "incoming" | "both" | undefined; include_intermediate_nodes?: boolean | undefined; filter_target_node_types?: string[] | undefined; }>; export declare const QueryKgByAttributesInputSchema: z.ZodObject<{ project_id: z.ZodString; node_type_filter: z.ZodOptional<z.ZodString>; attribute_filters: z.ZodArray<z.ZodObject<{ attribute_name: z.ZodString; operator: z.ZodEnum<["equals", "not_equals", "contains", "not_contains", "startswith", "endswith", "gt", "lt", "gte", "lte", "exists", "not_exists", "in_array", "not_in_array"]>; value: z.ZodAny; case_sensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { attribute_name: string; operator: "equals" | "not_equals" | "contains" | "not_contains" | "startswith" | "endswith" | "gt" | "lt" | "gte" | "lte" | "exists" | "not_exists" | "in_array" | "not_in_array"; case_sensitive: boolean; value?: any; }, { attribute_name: string; operator: "equals" | "not_equals" | "contains" | "not_contains" | "startswith" | "endswith" | "gt" | "lt" | "gte" | "lte" | "exists" | "not_exists" | "in_array" | "not_in_array"; value?: any; case_sensitive?: boolean | undefined; }>, "many">; logical_operator_for_filters: z.ZodDefault<z.ZodEnum<["AND", "OR"]>>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { project_id: string; max_results: number; attribute_filters: { attribute_name: string; operator: "equals" | "not_equals" | "contains" | "not_contains" | "startswith" | "endswith" | "gt" | "lt" | "gte" | "lte" | "exists" | "not_exists" | "in_array" | "not_in_array"; case_sensitive: boolean; value?: any; }[]; logical_operator_for_filters: "AND" | "OR"; node_type_filter?: string | undefined; }, { project_id: string; attribute_filters: { attribute_name: string; operator: "equals" | "not_equals" | "contains" | "not_contains" | "startswith" | "endswith" | "gt" | "lt" | "gte" | "lte" | "exists" | "not_exists" | "in_array" | "not_in_array"; value?: any; case_sensitive?: boolean | undefined; }[]; max_results?: number | undefined; node_type_filter?: string | undefined; logical_operator_for_filters?: "AND" | "OR" | undefined; }>; export declare const DeleteKgNodeInputSchema: z.ZodObject<{ project_id: z.ZodString; node_id: z.ZodString; }, "strip", z.ZodTypeAny, { project_id: string; node_id: string; }, { project_id: string; node_id: string; }>; export declare const DeleteKgRelationshipInputSchema: z.ZodObject<{ project_id: z.ZodString; relationship_id: z.ZodString; }, "strip", z.ZodTypeAny, { project_id: string; relationship_id: string; }, { project_id: string; relationship_id: string; }>; export declare const StoreDocumentInProjectDriveInputSchema: z.ZodObject<{ project_id: z.ZodString; document_name: z.ZodString; document_content: z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>; document_description: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { project_id: string; document_name: string; document_content: string | Uint8Array<ArrayBuffer>; document_description?: string | undefined; tags?: string[] | undefined; }, { project_id: string; document_name: string; document_content: string | Uint8Array<ArrayBuffer>; document_description?: string | undefined; tags?: string[] | undefined; }>; export declare const FindRelevantDocumentsInKgInputSchema: z.ZodObject<{ project_id: z.ZodString; keywords: z.ZodArray<z.ZodString, "many">; date_after: z.ZodOptional<z.ZodString>; date_before: z.ZodOptional<z.ZodString>; content_type: z.ZodOptional<z.ZodString>; max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; }, "strip", z.ZodTypeAny, { project_id: string; max_results: number; keywords: string[]; date_after?: string | undefined; date_before?: string | undefined; content_type?: string | undefined; }, { project_id: string; keywords: string[]; max_results?: number | undefined; date_after?: string | undefined; date_before?: string | undefined; content_type?: string | undefined; }>; export declare const GetDocumentContentFromDriveInputSchema: z.ZodObject<{ drive_file_id: z.ZodString; }, "strip", z.ZodTypeAny, { drive_file_id: string; }, { drive_file_id: string; }>; export declare const GetDocumentSummaryFromDriveInputSchema: z.ZodObject<{ drive_file_id: z.ZodString; summary_length: z.ZodDefault<z.ZodOptional<z.ZodEnum<["short", "medium", "long"]>>>; }, "strip", z.ZodTypeAny, { drive_file_id: string; summary_length: "short" | "medium" | "long"; }, { drive_file_id: string; summary_length?: "short" | "medium" | "long" | undefined; }>;