Skip to main content
Glama
get-custom-source-by-id.ts896 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { ChatAidAuth } from '../common/auth'; import { HttpMethod } from '@activepieces/pieces-common'; import { makeRequest } from '../common/client'; export const getCustomSourceById = createAction({ auth: ChatAidAuth, name: 'getCustomSourceById', displayName: 'Get Custom Source by ID', description: 'Retrieve single source details by ID', props: { sourceId: Property.ShortText({ displayName: 'Source ID', description: 'The ID of the custom source to retrieve', required: true, }), }, async run(context) { const sourceId = context.propsValue.sourceId as string; const response = await makeRequest( context.auth as string, HttpMethod.GET, `/external/sources/custom/${encodeURIComponent(sourceId)}`, undefined ); return response; }, });

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