Skip to main content
Glama

project_list

Retrieve all Taskwarrior projects to organize tasks by category and track work across different initiatives.

Instructions

List all projects in Taskwarrior

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core implementation of listing Taskwarrior projects.
    export async function listProjects(): Promise<string[]> {
      try {
        const output = await runCommand('task', ['projects']);
        return output
          .split('\n')
          .map((p) => p.trim())
          .filter((p) => p.length > 0);
      } catch (err) {
        throw new Error(`Failed to list projects: ${(err as Error).message}`);
      }
    }
  • src/index.ts:79-86 (registration)
    Registration of the 'project_list' MCP tool.
    server.tool('project_list', 'List all projects in Taskwarrior', {}, async () => {
      try {
        const projects = await listProjects();
        return { content: [{ type: 'text', text: JSON.stringify(projects, null, 2) }] };
      } catch (err) {
        return { content: [{ type: 'text', text: (err as Error).message }], isError: true };
      }
    });

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/maxronner/taskwarrior-mcp'

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