Skip to main content
Glama
standardbeagle

Harvest MCP Server

harvest_get_current_user

Retrieve authenticated user details from Harvest to verify account access and obtain user-specific information for time tracking operations.

Instructions

Get information about the authenticated user. Use about {"tool": "harvest_get_current_user"} for detailed response format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function that executes the tool logic by making an API request to Harvest's /users/me endpoint to retrieve the current authenticated user information.
    async getCurrentUser() { return this.makeRequest('/users/me'); }
  • MCP server tool dispatch handler that invokes the HarvestClient.getCurrentUser() method and formats the JSON response for the MCP protocol.
    case 'harvest_get_current_user': const currentUser = await harvestClient.getCurrentUser(); return { content: [ { type: 'text', text: JSON.stringify(currentUser, null, 2), }, ], };
  • Tool schema definition specifying the name, description, and empty input schema (no parameters required). This is used for tool listing and validation.
    { name: 'harvest_get_current_user', description: 'Get information about the authenticated user. Use about {"tool": "harvest_get_current_user"} for detailed response format.', inputSchema: { type: 'object', properties: {} } },
  • src/index.ts:69-73 (registration)
    Registration of the tool list handler, which returns the tools array including harvest_get_current_user for MCP tool discovery.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: tools, }; });
  • Detailed documentation and usage information for the harvest_get_current_user tool provided in the getAboutInfo method.
    'harvest_get_current_user': `# harvest_get_current_user Retrieves information about the currently authenticated user. ## Purpose Get details about your user account, permissions, and settings. ## Parameters None required. ## Example Usage **Get current user info:** \`\`\`json { "tool": "harvest_get_current_user" } \`\`\` ## Response Format Returns user object with: - Basic info: id, first_name, last_name, email - Status: is_active, is_admin, is_contractor - Settings: timezone, has_access_to_all_future_projects - Rates: default_hourly_rate, cost_rate - Capacity: weekly_capacity - Profile: telephone, avatar_url - Dates: created_at, updated_at ## Usage Tips - Useful for confirming authentication is working - Check permissions (is_admin, has_access_to_all_future_projects) - Get user_id for filtering time entries`,

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