@z-test/memory-bank-mcp
Version:
MCP Server for managing Memory Bank
119 lines (118 loc) • 2.63 kB
TypeScript
import { MemoryBankManager } from '../../core/MemoryBankManager.js';
/**
* Definition of mode tools
*/
export declare const modeTools: ({
name: string;
description: string;
inputSchema: {
type: string;
properties: {
mode: {
type: string;
description: string;
};
command?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
mode?: undefined;
command?: undefined;
};
required?: undefined;
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
command: {
type: string;
description: string;
};
mode?: undefined;
};
required: string[];
};
})[];
/**
* Handles the switch_mode tool
* @param memoryBankManager Memory Bank Manager
* @param mode Mode name
* @returns Operation result
*/
export declare function handleSwitchMode(memoryBankManager: MemoryBankManager, mode: string): {
content: {
type: string;
text: string;
}[];
isError: boolean;
} | {
content: {
type: string;
text: string;
}[];
isError?: undefined;
};
/**
* Handles the get_current_mode tool
* @param memoryBankManager Memory Bank Manager
* @returns Operation result
*/
export declare function handleGetCurrentMode(memoryBankManager: MemoryBankManager): {
content: {
type: string;
text: string;
}[];
isError: boolean;
} | {
content: {
type: string;
text: string;
}[];
isError?: undefined;
};
/**
* Handles the process_umb_command tool
* @param memoryBankManager Memory Bank Manager
* @param command UMB command
* @returns Operation result
*/
export declare function handleProcessUmbCommand(memoryBankManager: MemoryBankManager, command: string): {
content: {
type: string;
text: string;
}[];
isError: boolean;
} | {
content: {
type: string;
text: string;
}[];
isError?: undefined;
};
/**
* Handles the completion of UMB
* @param memoryBankManager Memory Bank Manager
* @returns Operation result
*/
export declare function handleCompleteUmb(memoryBankManager: MemoryBankManager): {
content: {
type: string;
text: string;
}[];
isError: boolean;
} | {
content: {
type: string;
text: string;
}[];
isError?: undefined;
};