mem100x
Version:
⚡ The FASTEST MCP memory server ever built - 66k+ entities/sec with intelligent context detection
285 lines • 9.86 kB
TypeScript
/**
* Zod schemas for tool input validation
* Provides type safety and runtime validation for all MCP tools
*/
import { z } from 'zod';
export declare const toolSchemas: {
set_context: z.ZodObject<{
context: z.ZodString;
}, "strip", z.ZodTypeAny, {
context: string;
}, {
context: string;
}>;
get_context_info: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
create_entities: z.ZodObject<{
entities: z.ZodArray<z.ZodObject<{
name: z.ZodString;
entityType: z.ZodString;
observations: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
entityType: string;
name: string;
observations: string[];
}, {
entityType: string;
name: string;
observations: string[];
}>, "many">;
context: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
entities: {
entityType: string;
name: string;
observations: string[];
}[];
context?: string | undefined;
}, {
entities: {
entityType: string;
name: string;
observations: string[];
}[];
context?: string | undefined;
}>;
search_nodes: z.ZodObject<{
query: z.ZodString;
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
context: z.ZodOptional<z.ZodString>;
allContexts: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
query: string;
context?: string | undefined;
limit?: number | undefined;
allContexts?: boolean | undefined;
}, {
query: string;
context?: string | undefined;
limit?: number | undefined;
allContexts?: boolean | undefined;
}>;
read_graph: z.ZodObject<{
limit: z.ZodOptional<z.ZodNumber>;
offset: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
context: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
context?: string | undefined;
limit?: number | undefined;
offset?: number | undefined;
}, {
context?: string | undefined;
limit?: number | undefined;
offset?: number | undefined;
}>;
open_nodes: z.ZodObject<{
names: z.ZodArray<z.ZodString, "many">;
context: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
names: string[];
context?: string | undefined;
}, {
names: string[];
context?: string | undefined;
}>;
create_relations: z.ZodObject<{
relations: z.ZodArray<z.ZodObject<{
from: z.ZodString;
to: z.ZodString;
relationType: z.ZodString;
}, "strip", z.ZodTypeAny, {
from: string;
to: string;
relationType: string;
}, {
from: string;
to: string;
relationType: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
relations: {
from: string;
to: string;
relationType: string;
}[];
}, {
relations: {
from: string;
to: string;
relationType: string;
}[];
}>;
delete_relations: z.ZodObject<{
relations: z.ZodArray<z.ZodObject<{
from: z.ZodString;
to: z.ZodString;
relationType: z.ZodString;
}, "strip", z.ZodTypeAny, {
from: string;
to: string;
relationType: string;
}, {
from: string;
to: string;
relationType: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
relations: {
from: string;
to: string;
relationType: string;
}[];
}, {
relations: {
from: string;
to: string;
relationType: string;
}[];
}>;
add_observations: z.ZodObject<{
observations: z.ZodArray<z.ZodObject<{
entityName: z.ZodString;
contents: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
entityName: string;
contents: string[];
}, {
entityName: string;
contents: string[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
observations: {
entityName: string;
contents: string[];
}[];
}, {
observations: {
entityName: string;
contents: string[];
}[];
}>;
delete_observations: z.ZodObject<{
deletions: z.ZodArray<z.ZodObject<{
entityName: z.ZodString;
observations: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
entityName: string;
observations: string[];
}, {
entityName: string;
observations: string[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
deletions: {
entityName: string;
observations: string[];
}[];
}, {
deletions: {
entityName: string;
observations: string[];
}[];
}>;
delete_entities: z.ZodObject<{
entityNames: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
entityNames: string[];
}, {
entityNames: string[];
}>;
begin_transaction: z.ZodObject<{
name: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
name?: string | undefined;
}, {
name?: string | undefined;
}>;
commit_transaction: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
rollback_transaction: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
create_backup: z.ZodObject<{
backupPath: z.ZodOptional<z.ZodString>;
context: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
context?: string | undefined;
backupPath?: string | undefined;
}, {
context?: string | undefined;
backupPath?: string | undefined;
}>;
restore_backup: z.ZodObject<{
backupPath: z.ZodString;
context: z.ZodOptional<z.ZodString>;
confirmRestore: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
backupPath: string;
confirmRestore: boolean;
context?: string | undefined;
}, {
backupPath: string;
confirmRestore: boolean;
context?: string | undefined;
}>;
get_neighbors: z.ZodObject<{
entityName: z.ZodString;
direction: z.ZodOptional<z.ZodDefault<z.ZodEnum<["outgoing", "incoming", "both"]>>>;
relationType: z.ZodOptional<z.ZodString>;
depth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
includeRelations: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
context: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
entityName: string;
context?: string | undefined;
relationType?: string | undefined;
direction?: "outgoing" | "incoming" | "both" | undefined;
depth?: number | undefined;
includeRelations?: boolean | undefined;
}, {
entityName: string;
context?: string | undefined;
relationType?: string | undefined;
direction?: "outgoing" | "incoming" | "both" | undefined;
depth?: number | undefined;
includeRelations?: boolean | undefined;
}>;
find_shortest_path: z.ZodObject<{
from: z.ZodString;
to: z.ZodString;
bidirectional: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
relationType: z.ZodOptional<z.ZodString>;
maxDepth: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
context: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
from: string;
to: string;
context?: string | undefined;
relationType?: string | undefined;
bidirectional?: boolean | undefined;
maxDepth?: number | undefined;
}, {
from: string;
to: string;
context?: string | undefined;
relationType?: string | undefined;
bidirectional?: boolean | undefined;
maxDepth?: number | undefined;
}>;
};
export type SetContextInput = z.infer<typeof toolSchemas.set_context>;
export type GetContextInfoInput = z.infer<typeof toolSchemas.get_context_info>;
export type CreateEntitiesInput = z.infer<typeof toolSchemas.create_entities>;
export type SearchNodesInput = z.infer<typeof toolSchemas.search_nodes>;
export type ReadGraphInput = z.infer<typeof toolSchemas.read_graph>;
export type OpenNodesInput = z.infer<typeof toolSchemas.open_nodes>;
export type CreateRelationsInput = z.infer<typeof toolSchemas.create_relations>;
export type DeleteRelationsInput = z.infer<typeof toolSchemas.delete_relations>;
export type AddObservationsInput = z.infer<typeof toolSchemas.add_observations>;
export type DeleteObservationsInput = z.infer<typeof toolSchemas.delete_observations>;
export type DeleteEntitiesInput = z.infer<typeof toolSchemas.delete_entities>;
export type BeginTransactionInput = z.infer<typeof toolSchemas.begin_transaction>;
export type CommitTransactionInput = z.infer<typeof toolSchemas.commit_transaction>;
export type RollbackTransactionInput = z.infer<typeof toolSchemas.rollback_transaction>;
export type CreateBackupInput = z.infer<typeof toolSchemas.create_backup>;
export type RestoreBackupInput = z.infer<typeof toolSchemas.restore_backup>;
export type GetNeighborsInput = z.infer<typeof toolSchemas.get_neighbors>;
export type FindShortestPathInput = z.infer<typeof toolSchemas.find_shortest_path>;
export declare function validateToolInput<T extends keyof typeof toolSchemas>(toolName: T, input: unknown): z.infer<typeof toolSchemas[T]>;
//# sourceMappingURL=tool-schemas.d.ts.map