get_default_status
Retrieve the default status DUIDs (Device Unique Identifiers) for managing device statuses within the Dart MCP Server environment, enabling streamlined task and workspace organization.
Instructions
Get the default status DUIDs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:663-708 (handler)Handler for the 'get_default_status' tool. Constructs and executes a Python script via runDartCommand to retrieve default status DUIDs (todo, doing, done) from the Dart UserBundle and prints them.case 'get_default_status': { console.error('[Debug] Handling get_default_status request'); const command = `print("[Debug] Getting default statuses", file=sys.stderr) try: # Get initialized client and bundle client, bundle, dartboard_duid = initialize() print("[Debug] Got bundle", file=sys.stderr) statuses = bundle.default_statuses print("[Debug] Got statuses:", statuses, file=sys.stderr) if not statuses: print("No statuses found") sys.exit(1) # Map status kinds to their DUIDs status_map = {} for status in statuses: if status["kind"] == "Unstarted": status_map["todo"] = status["duid"] elif status["kind"] == "Started": status_map["doing"] = status["duid"] elif status["kind"] == "Finished": status_map["done"] = status["duid"] print(f"Status DUIDs:") print(f"Todo: {status_map.get('todo', 'N/A')}") print(f"Doing: {status_map.get('doing', 'N/A')}") print(f"Done: {status_map.get('done', 'N/A')}") except Exception as e: print(f"[Debug] Error getting default statuses: {str(e)}", file=sys.stderr) print("[Debug] Error type:", type(e), file=sys.stderr) traceback.print_exc(file=sys.stderr) sys.exit(1)`; console.error('[Debug] Running Python command for getting default statuses'); const output = await this.runDartCommand(command); console.error('[Debug] Get default statuses output:', output); const response = { content: [{ type: 'text', text: output, }], }; return response; }
- src/index.ts:234-241 (registration)Registration of the 'get_default_status' tool in the listTools response, including its name, description, and empty input schema.name: 'get_default_status', description: 'Get the default status DUIDs', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/index.ts:236-240 (schema)Input schema for the 'get_default_status' tool: an empty object with no required properties.inputSchema: { type: 'object', properties: {}, required: [], },