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
import { createAction, PieceAuth, Property } from '@activepieces/pieces-framework';
import { MarkdownVariant } from '@activepieces/shared';
export const createApprovalLink = createAction({
auth: PieceAuth.None(),
name: 'create_approval_links',
displayName: 'Create Approval Links',
description:
'Create links only without pausing the flow, use wait for approval to pause',
props: {
markdown: Property.MarkDown({
variant: MarkdownVariant.WARNING,
value: 'Please use Manual Task feature instead from 0.48.0 and above',
}),
},
errorHandlingOptions: {
continueOnFailure: {
hide: true,
},
retryOnFailure: {
hide: true,
},
},
async run(ctx) {
return {
approvalLink: ctx.generateResumeUrl({
queryParams: { action: 'approve' },
}),
disapprovalLink: ctx.generateResumeUrl({
queryParams: { action: 'disapprove' },
}),
};
},
});