Skip to main content
Glama

dumpPlan

Export complete plan data as a dictionary for backup or state restoration using loadPlan tool in MCPlanManager's task management system.

Instructions

导出当前完整的计划数据为一个字典对象。 这个导出的对象可以被 loadPlan 工具用来恢复状态。

Returns: ToolResponse[dict]: 包含当前完整计划数据的响应对象。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for dumpPlan, registered via @mcp.tool() decorator. Delegates to PlanManager.dumpPlan().
    @mcp.tool()
    def dumpPlan() -> ToolResponse[dict]:
        """
        导出当前完整的计划数据为一个字典对象。
        这个导出的对象可以被 loadPlan 工具用来恢复状态。
    
        Returns:
            ToolResponse[dict]: 包含当前完整计划数据的响应对象。
        """
        return plan_manager.dumpPlan()
  • Core implementation of dumpPlan in PlanManager class. Returns a deep copy of the entire plan data wrapped in a ToolResponse-like dict.
    def dumpPlan(self) -> Dict:
        """导出完整的计划数据为一个字典对象。"""
        return {
            "success": True,
            "data": deepcopy(self.plan_data),
            "message": "Plan dumped successfully."
        }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/donway19/MCPlanManager'

If you have feedback or need assistance with the MCP directory API, please join our Discord server