Skip to main content
Glama

mcp-google-sheets

upload-source-file.ts999 B
import { propsValidation } from '@activepieces/pieces-common'; import { createAction } from '@activepieces/pieces-framework'; import { docsbotAuth, docsbotCommon } from '../common'; export const uploadSourceFile = createAction({ auth: docsbotAuth, name: 'uploadSourceFile', displayName: 'Upload Source File', description: 'Upload a file to be used as a source.', props: docsbotCommon.uploadSourceFileProperties(), async run({ auth: apiKey, propsValue }) { console.log("file:", propsValue.file, typeof propsValue.file); await propsValidation.validateZod( propsValue, docsbotCommon.uploadSourceFileSchema ); const { botId, file, teamId } = propsValue; const presignedUrl = await docsbotCommon.createPresignedFileUploadURL({ apiKey, teamId, botId, fileName: file.filename, }); await docsbotCommon.uploadFileToCloudStorage({ uploadUrl: presignedUrl.url, file: file.data, }); return presignedUrl; }, });

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