-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Ideally we would have the CLI connected to the same server as the MCP client is connected to, but unfortunately this is not possible with our stdio transport MCP architecture.
Instead, we will have to instantiate the TaskManager directly in the CLI entrypoint and call its methods.
This creates a problem of configuration. If the user starts the MCP server with a custom file path env variable, they will need to make sure to set the same env variable is set for the CLI process, or else the CLI will be writing to a different file.
Probably we should strongly recommend against using a custom path, and we should make very clear in the docs that if they do use one, it needs to be set separately for both processes (or with a CLI argument/command, which we should make sure to support as well).
- Let's make sure the CLI is creating a TaskManager instance and calling the listProjects and listTasks methods directly rather than reading the file based on its own internal logic.
- Let's make sure the CLI supports custom file path via either an env variable or an argument.
- Let's make sure to explain in the README why using a custom file path might be a bad idea, and how to coordinate the custom file paths of the CLI and server entrypoints if the user opts to do this.