Skip to main content
Glama
adrian-dotco

Harvest Natural Language Time Entry MCP Server

by adrian-dotco

list_tasks

Retrieve available tasks for a specific Harvest project to facilitate accurate time tracking and reporting.

Instructions

List available tasks for a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID

Implementation Reference

  • Handler function for the 'list_tasks' tool. It takes a project_id, fetches task assignments from the Harvest API, and returns a JSON-formatted list of tasks with their IDs and names.
    case 'list_tasks': { const { project_id } = request.params.arguments as { project_id: number }; const response = await this.axiosInstance.get(`/projects/${project_id}/task_assignments`); return { content: [ { type: 'text', text: JSON.stringify(response.data.task_assignments.map((t: { task: { id: number; name: string } }) => ({ id: t.task.id, name: t.task.name, })), null, 2), }, ], };
  • src/index.ts:288-301 (registration)
    Registration of the 'list_tasks' tool in the ListToolsRequestHandler, including its name, description, and input schema requiring a project_id.
    { name: 'list_tasks', description: 'List available tasks for a project', inputSchema: { type: 'object', properties: { project_id: { type: 'number', description: 'Project ID', }, }, required: ['project_id'], }, },
  • Input schema definition for the 'list_tasks' tool, specifying an object with a required numeric project_id.
    inputSchema: { type: 'object', properties: { project_id: { type: 'number', description: 'Project ID', }, }, required: ['project_id'], }, },

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/adrian-dotco/harvest-mcp-server'

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