Skip to main content
Glama
standardbeagle

Harvest MCP Server

harvest_list_projects

Retrieve and filter Harvest projects by active status or client ID to manage time tracking data efficiently.

Instructions

List all projects with filtering options. Use about {"tool": "harvest_list_projects"} for detailed parameters and examples.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
client_idNoFilter by client ID
is_activeNoFilter by active status
pageNoPage number
per_pageNoResults per page (max 100)

Implementation Reference

  • Switch case handler that executes the harvest_list_projects tool by calling harvestClient.getProjects(typedArgs) and returning the result as formatted JSON text content.
    case 'harvest_list_projects': const projects = await harvestClient.getProjects(typedArgs); return { content: [ { type: 'text', text: JSON.stringify(projects, null, 2), }, ], };
  • Tool schema definition including name, description, and inputSchema for parameter validation.
    { name: 'harvest_list_projects', description: 'List all projects with filtering options. Use about {"tool": "harvest_list_projects"} for detailed parameters and examples.', inputSchema: { type: 'object', properties: { is_active: { type: 'boolean', description: 'Filter by active status' }, client_id: { type: 'string', description: 'Filter by client ID' }, page: { type: 'number', description: 'Page number' }, per_page: { type: 'number', description: 'Results per page (max 100)' } } } },
  • Core helper method that performs the HTTP request to Harvest API /projects endpoint with query parameters.
    async getProjects(options?: any) { const queryString = this.buildQueryString(options); return this.makeRequest(`/projects${queryString}`); }
  • src/index.ts:69-73 (registration)
    Registration of tool listing handler that exposes the harvest_list_projects tool (among others) via the tools array from tools.ts.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: tools, }; });

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/standardbeagle/harvest-mcp'

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