AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { createPiece, PieceAuth, OAuth2PropertyValue } from "@activepieces/pieces-framework";
import { OAuth2GrantType, PieceCategory } from '@activepieces/pieces-framework';
import { getInvoices } from './lib/actions/get-invoices';
import { getProjects } from './lib/actions/get-projects';
import { getTasks } from './lib/actions/get-tasks';
import { getClients } from './lib/actions/get-clients';
import { getEstimates } from './lib/actions/get-estimates';
import { getExpenses } from './lib/actions/get-expenses';
import { getTime_entries } from './lib/actions/get-time_entries';
import { getRoles } from './lib/actions/get-roles';
import { getUsers } from './lib/actions/get-users';
import { reportsUninvoiced } from './lib/actions/reports-uninvoiced';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
export const harvestAuth = PieceAuth.OAuth2({
required: true,
grantType: OAuth2GrantType.AUTHORIZATION_CODE,
authUrl: 'https://id.getharvest.com/oauth2/authorize',
tokenUrl: `https://id.getharvest.com/api/v2/oauth2/token`,
scope: ['harvest:all'],
});
export const harvest = createPiece({
displayName: "Harvest",
auth: harvestAuth,
minimumSupportedRelease: '0.36.1',
logoUrl: "https://cdn.activepieces.com/pieces/harvest.png",
categories:[PieceCategory.PRODUCTIVITY],
description:'Time Tracking Software with Invoicing',
authors: ["D-Rowe-FS"],
actions: [getClients, getEstimates, getExpenses, getInvoices, getProjects, getRoles, getTasks, getTime_entries, getUsers,
reportsUninvoiced,
createCustomApiCallAction({
baseUrl: () => `https://api.harvestapp.com/v2/`,
auth: harvestAuth,
authMapping: async (auth) => ({
Authorization: `Bearer ${(auth).access_token}`,
}),
}),
],
triggers: [],
});