Skip to main content
Glama

mcp-google-sheets

find-base.ts1.03 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { airtableAuth } from '../../index'; import { airtableCommon } from '../common'; import { AirtableBase } from '../common/models'; export const airtableFindBaseAction = createAction({ auth: airtableAuth, name: 'airtable_find_base', displayName: 'Find Base', description: 'Find a base by its name or a keyword.', props: { baseName: Property.ShortText({ displayName: 'Base Name or Keyword', description: 'The name or keyword to search for within your base names.', required: true, }), }, async run(context) { const { auth: personalToken, propsValue } = context; const { baseName } = propsValue; const allBases: AirtableBase[] = await airtableCommon.fetchAllBases({ token: personalToken, }); const searchTerm = (baseName as string).toLowerCase(); const foundBases = allBases.filter((base) => base.name.toLowerCase().includes(searchTerm) ); return foundBases; }, });

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