mcp-shrimp-task-manager
Version:
Shrimp Task Manager is a task tool built for AI Agents, emphasizing chain-of-thought, reflection, and style consistency. It converts natural language into structured dev tasks with dependency tracking and iterative refinement, enabling agent-like develope
32 lines (31 loc) • 873 B
TypeScript
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
/**
* 設置全局 server 實例
*/
export declare function setGlobalServer(server: Server): void;
/**
* 獲取全局 server 實例
*/
export declare function getGlobalServer(): Server | null;
/**
* 取得 DATA_DIR 路徑
* 如果有 server 且支援 listRoots,則使用第一筆 file:// 開頭的 root + "/data"
* 否則使用環境變數或專案根目錄
*/
export declare function getDataDir(): Promise<string>;
/**
* 取得任務檔案路徑
*/
export declare function getTasksFilePath(): Promise<string>;
/**
* 取得記憶體資料夾路徑
*/
export declare function getMemoryDir(): Promise<string>;
/**
* 取得 WebGUI 檔案路徑
*/
export declare function getWebGuiFilePath(): Promise<string>;
/**
* 取得專案根目錄
*/
export declare function getProjectRoot(): string;