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, Property } from '@activepieces/pieces-framework';
import { tarventAuth } from '../..';
import { makeClient, tarventCommon } from '../common';
export const updateJourneyStatus = createAction({
auth: tarventAuth,
name: 'tarvent_update_journey_status',
displayName: 'Start/Stop Journey',
description: 'Starts or stops a journey.',
props: {
journeyId: tarventCommon.journeyId(true, 'Select which journey to start or stop'),
action: Property.StaticDropdown({
displayName: 'Action',
description: 'Select whether to start or stop the journey.',
required: true,
options: {
options: [
{
label: 'Start',
value: 'Start',
},
{
label: 'Stop',
value: 'Stop',
},
],
},
}),
},
async run(context) {
const { journeyId, action } = context.propsValue;
const client = makeClient(context.auth);
return await client.updateJourneyStatus(action, journeyId);
},
});