Skip to content

Error when creating tasks: ENOENT no such file or directory #4

@mengjian-github

Description

@mengjian-github

Issue Description

When attempting to create tasks using the mcp__request_planning function, the following error occurs:

Error: ENOENT: no such file or directory, open '/root/Documents/tasks.json'

Steps to Reproduce

  1. Called the mcp__request_planning function with valid parameters
  2. Received error about missing tasks.json file in /root/Documents/ directory

Expected Behavior

The task should be created and stored properly in the system.

Actual Behavior

The system returns an error indicating it cannot find or access the tasks.json file in the specified directory.

Environment Information

  • OS: macOS (darwin 23.3.0)
  • Project path: /Users/bytedance/code/lark-to-markdown
  • Shell: /bin/bash

Additional Context

This appears to be a configuration issue where the task manager is looking for a tasks.json file in a hardcoded path (/root/Documents/) rather than using a relative or configurable path. The system might need to be updated to use a more appropriate location for storing task data or to create the directory and file if they don't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions