Skip to main content
Glama

mcp-google-sheets

invite-user-to-channel.ts754 B
import { slackAuth } from '../../index'; import { createAction } from '@activepieces/pieces-framework'; import { singleSelectChannelInfo, slackChannel, userId } from '../common/props'; import { WebClient } from '@slack/web-api'; export const inviteUserToChannelAction = createAction({ auth: slackAuth, name: 'invite-user-to-channel', displayName: 'Invite User to Channel', description: 'Invites an existing User to an existing channel.', props: { info: singleSelectChannelInfo, channel: slackChannel(true), userId, }, async run(context) { const client = new WebClient(context.auth.access_token); return await client.conversations.invite({ channel: context.propsValue.channel, users: `${context.propsValue.userId}`, }); }, });

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