Skip to main content
Glama

mcp-google-sheets

get-authenticated-user.ts838 B
import { createAction } from '@activepieces/pieces-framework'; // eslint-disable-next-line @nx/enforce-module-boundaries import { Mailchain } from '@mailchain/sdk'; import { mailchainCommon } from '../common/common'; export const getAuthenticatedUser = createAction({ name: 'getAuthenticatedUser', displayName: 'Get Authenticated User', description: 'Get the authenticated user to the Mailchain Protocol', auth: mailchainCommon.auth, requireAuth: true, props: {}, async run({ auth }) { try { const secretRecoveryPhrase = auth; const mailchain = Mailchain.fromSecretRecoveryPhrase(secretRecoveryPhrase); const user = await mailchain.user(); return user; } catch (error) { console.error('Error getting authenticated user (mailchain)', error); throw error; } }, });

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