Skip to main content
Glama

mcp-google-sheets

index.ts1.26 kB
import { createPiece, OAuth2PropertyValue, PieceAuth, } from '@activepieces/pieces-framework'; import { createCustomApiCallAction } from '@activepieces/pieces-common'; import { PieceCategory } from '@activepieces/shared'; import { newResponse } from './lib/triggers/new-response'; export const smAuth = PieceAuth.OAuth2({ authUrl: 'https://api.surveymonkey.com/oauth/authorize', tokenUrl: 'https://api.surveymonkey.com/oauth/token', required: true, scope: [ 'responses_read', 'responses_read_detail', 'webhooks_read', 'webhooks_write', 'surveys_read', ], }); export const surveymonkey = createPiece({ displayName: 'SurveyMonkey', description: 'Receive survey responses from SurveyMonkey', auth: smAuth, minimumSupportedRelease: '0.30.0', logoUrl: 'https://cdn.activepieces.com/pieces/surveymonkey.png', categories: [PieceCategory.FORMS_AND_SURVEYS], authors: ["kishanprmr","MoShizzle","khaledmashaly","abuaboud"], actions: [ createCustomApiCallAction({ baseUrl: () => 'https://api.surveymonkey.com/v3', auth: smAuth, authMapping: async (auth) => ({ Authorization: `Bearer ${(auth as OAuth2PropertyValue).access_token}`, }), }), ], triggers: [newResponse], });

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