Skip to main content
Glama

mcp-google-sheets

identify-user.ts813 B
import { segmentAuth } from '../../.'; import { Property, createAction } from '@activepieces/pieces-framework'; import { Analytics } from '@segment/analytics-node' export const identifyUser = createAction({ name: 'identifyUser', displayName: 'Identify User', description: '', props: { userId: Property.ShortText({ displayName: 'User ID', required: true, }), traits: Property.Object({ displayName: 'Traits', description: 'The traits to associate with the user', required: true, }), }, auth: segmentAuth, async run(context) { const analytics = new Analytics({ writeKey: context.auth }) analytics.identify({ userId: context.propsValue.userId, traits: context.propsValue.traits, }) return { success: true, } }, });

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