@z-test/memory-bank-mcp
Version:
MCP Server for managing Memory Bank
229 lines (228 loc) • 5.94 kB
TypeScript
import { MemoryBankManager } from '../../core/MemoryBankManager.js';
/**
* Definition of the main Memory Bank tools
*/
export declare const coreTools: ({
name: string;
description: string;
inputSchema: {
type: string;
properties: {
path: {
type: string;
description: string;
};
verbose?: undefined;
filename?: undefined;
content?: undefined;
random_string?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
verbose: {
type: string;
description: string;
default: boolean;
};
path?: undefined;
filename?: undefined;
content?: undefined;
random_string?: undefined;
};
required: never[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
filename: {
type: string;
description: string;
};
path?: undefined;
verbose?: undefined;
content?: undefined;
random_string?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
filename: {
type: string;
description: string;
};
content: {
type: string;
description: string;
};
path?: undefined;
verbose?: undefined;
random_string?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
random_string: {
type: string;
description: string;
};
path?: undefined;
verbose?: undefined;
filename?: undefined;
content?: undefined;
};
required: string[];
};
})[];
/**
* Processes the set_memory_bank_path tool
* @param memoryBankManager Memory Bank Manager
* @param customPath Custom path for the Memory Bank
* @returns Operation result
*/
export declare function handleSetMemoryBankPath(memoryBankManager: MemoryBankManager, customPath?: string): Promise<{
content: {
type: string;
text: string;
}[];
}>;
/**
* Processes the initialize_memory_bank tool
* @param memoryBankManager Memory Bank Manager
* @param dirPath Directory path where the Memory Bank will be initialized
* @returns Operation result
*/
export declare function handleInitializeMemoryBank(memoryBankManager: MemoryBankManager, dirPath: string): Promise<{
content: {
type: string;
text: string;
}[];
}>;
/**
* Processes the read_memory_bank_file tool
* @param memoryBankManager Memory Bank Manager
* @param filename Name of the file to read
* @returns Operation result
*/
export declare function handleReadMemoryBankFile(memoryBankManager: MemoryBankManager, filename: string): Promise<{
content: {
type: string;
text: string;
}[];
isError?: undefined;
} | {
content: {
type: string;
text: string;
}[];
isError: boolean;
}>;
/**
* Processes the write_memory_bank_file tool
* @param memoryBankManager Memory Bank Manager
* @param filename Name of the file to write
* @param content Content to write to the file
* @returns Operation result
*/
export declare function handleWriteMemoryBankFile(memoryBankManager: MemoryBankManager, filename: string, content: string): Promise<{
content: {
type: string;
text: string;
}[];
isError?: undefined;
} | {
content: {
type: string;
text: string;
}[];
isError: boolean;
}>;
/**
* Processes the list_memory_bank_files tool
* @param memoryBankManager Memory Bank Manager
* @returns Operation result
*/
export declare function handleListMemoryBankFiles(memoryBankManager: MemoryBankManager): Promise<{
content: {
type: string;
text: string;
}[];
isError?: undefined;
} | {
content: {
type: string;
text: string;
}[];
isError: boolean;
}>;
/**
* Processes the get_memory_bank_status tool
* @param memoryBankManager Memory Bank Manager
* @returns Operation result
*/
export declare function handleGetMemoryBankStatus(memoryBankManager: MemoryBankManager): Promise<{
content: {
type: string;
text: string;
}[];
isError?: undefined;
} | {
content: {
type: string;
text: string;
}[];
isError: boolean;
}>;
/**
* Processes the migrate_file_naming tool
* @param memoryBankManager Memory Bank Manager instance
* @returns Operation result
*/
export declare function handleMigrateFileNaming(memoryBankManager: MemoryBankManager): Promise<{
content: {
type: string;
text: string;
}[];
}>;
/**
* Processes the debug_mcp_config tool
*
* This function collects and returns detailed information about the current
* MCP configuration, including Memory Bank status, mode information, system details,
* and other relevant configuration data.
*
* @param memoryBankManager Memory Bank Manager instance
* @param verbose Whether to include detailed information
* @returns Operation result with configuration details
*/
export declare function handleDebugMcpConfig(memoryBankManager: MemoryBankManager, verbose?: boolean): Promise<{
content: {
type: string;
text: string;
}[];
isError?: undefined;
} | {
content: {
type: string;
text: string;
}[];
isError: boolean;
}>;