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 } from '@activepieces/pieces-framework';
import { braveWebSearchAction } from './lib/actions/web-search';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { braveSearchAuth } from './lib/auth';
export const braveSearch = createPiece({
displayName: 'Brave Search',
description: 'Privacy-preserving search engine',
auth: braveSearchAuth,
minimumSupportedRelease: '0.30.0',
logoUrl: 'https://cdn.activepieces.com/pieces/brave-search.png',
authors: ['ErisMorn', 'sanket-a11y'],
actions: [
braveWebSearchAction,
createCustomApiCallAction({
auth: braveSearchAuth,
baseUrl: () => 'https://api.search.brave.com/res/v1',
authMapping: async (auth) => {
return {
'X-Subscription-Token': auth.secret_text,
};
},
}),
],
triggers: [],
});