harvest_list_task_assignments
Retrieve assigned tasks for a specific project in Harvest, with options to filter by active status and paginate results.
Instructions
List task assignments for a project. Use about {"tool": "harvest_list_task_assignments"} for detailed workflow and examples.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "harvest_list_task_assignments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID | |
| is_active | No | Filter by active status | |
| page | No | Page number | |
| per_page | No | Results per page (max 100) |
Implementation Reference
- src/index.ts:269-278 (handler)Main handler for the tool in the MCP server switch statement. Calls the HarvestClient method and returns formatted JSON response.
case 'harvest_list_task_assignments': const taskAssignments = await harvestClient.getTaskAssignments(typedArgs.project_id as string, typedArgs); return { content: [ { type: 'text', text: JSON.stringify(taskAssignments, null, 2), }, ], }; - src/harvest-client.ts:173-176 (helper)Core implementation that performs the HTTP request to the Harvest API endpoint for task assignments of a project.
async getTaskAssignments(projectId: string, options?: any) { const queryString = this.buildQueryString(options); return this.makeRequest(`/projects/${projectId}/task_assignments${queryString}`); } - src/tools.ts:208-221 (schema)Input schema definition and tool metadata used for validation and listing.
{ name: 'harvest_list_task_assignments', description: 'List task assignments for a project. Use about {"tool": "harvest_list_task_assignments"} for detailed workflow and examples.', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID' }, is_active: { type: 'boolean', description: 'Filter by active status' }, page: { type: 'number', description: 'Page number' }, per_page: { type: 'number', description: 'Results per page (max 100)' } }, required: ['project_id'] } } - src/index.ts:69-73 (registration)Registers the tools list handler which includes this tool via imported tools array from tools.ts.
server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: tools, }; });