zettelkasten-memory-server
Version:
基于 Zettelkasten 记忆片段盒方法的 MCP 记忆服务器 v1.6.X
27 lines • 586 B
TypeScript
/**
* MCP 服务器相关的类型定义
*/
export interface ToolDefinition {
name: string;
description: string;
inputSchema: {
type: "object";
properties: Record<string, any>;
required?: string[];
};
}
export interface ToolHandler {
(args: Record<string, any>): Promise<{
content: Array<{
type: "text";
text: string;
}>;
}>;
}
export interface ToolRegistry {
[toolName: string]: {
definition: ToolDefinition;
handler: ToolHandler;
};
}
//# sourceMappingURL=index.d.ts.map