Skip to main content
Glama

mcp-google-sheets

create-link.ts1.08 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { frontAuth } from '../common/auth'; import { makeRequest } from '../common/client'; import { HttpMethod } from '@activepieces/pieces-common'; export const createLink = createAction({ auth: frontAuth, name: 'createLink', displayName: 'Create Link', description: 'Create a Link in Front (name, external URL).', props: { name: Property.ShortText({ displayName: 'Name', description: 'The name of the link.', required: true, }), external_url: Property.ShortText({ displayName: 'External URL', description: 'The external URL for the link.', required: true, }), pattern: Property.ShortText({ displayName: 'Pattern', description: 'Optional pattern to match URLs (regex).', required: false, }), }, async run({ auth, propsValue }) { const { name, external_url, pattern } = propsValue; const body = { name, external_url, pattern }; return await makeRequest(auth, HttpMethod.POST, '/links', 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