Skip to main content
Glama

mcp-google-sheets

create-space.ts989 B
import { medullarAuth } from '../../index'; import { createAction, Property } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; import { medullarCommon, getUser } from '../common'; export const createSpace = createAction({ auth: medullarAuth, name: 'createSpace', displayName: 'Create new Space', description: 'Create a new Space.', props: { space_name: Property.ShortText({ displayName: 'Space Name', required: true, }), }, async run(context) { const userData = await getUser(context.auth); const spaceResponse = await httpClient.sendRequest({ method: HttpMethod.POST, url: `${medullarCommon.aiUrl}/spaces/`, body: { name: context.propsValue['space_name'], company: { uuid: userData.company.uuid, }, }, headers: { Authorization: `Bearer ${context.auth}`, }, }); return spaceResponse.body; }, });

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