Skip to main content
Glama

mcp-google-sheets

find-project.ts1.01 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { capsuleCrmAuth } from '../common/auth'; import { capsuleCrmClient } from '../common/client'; import { Filter } from '../common/types'; export const findProjectAction = createAction({ auth: capsuleCrmAuth, name: 'find_project', displayName: 'Find Project', description: 'Find a Project by search criteria.', props: { filter: Property.Json({ displayName: 'Filter', description: 'The structured filter query. See the [documentation](https://capsulecrm.com/developer/api-v2/filters/) for examples.', required: true, defaultValue: { conditions: [ { field: 'name', operator: 'is', value: 'example', }, ], }, }), }, async run(context) { const { auth, propsValue } = context; return await capsuleCrmClient.filterProjects( auth, propsValue.filter as unknown as Filter ); }, });

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