Skip to main content
Glama
find-company.ts881 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { folkAuth } from '../common/auth'; import { folkClient } from '../common/client'; export const findCompany = createAction({ auth: folkAuth, name: 'findCompany', displayName: 'Find Company', description: 'Search for companies in your Folk workspace by name or email address.', props: { query: Property.ShortText({ displayName: 'Search Query', description: 'Enter company name or email to search for', required: true, }), }, async run(context) { const { query } = context.propsValue; const response = await folkClient.searchCompany({ apiKey: context.auth, query, }); return { companies: response.data?.items || [], count: response.data?.items?.length || 0, pagination: response.data?.pagination, }; }, });

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/activepieces/activepieces'

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