Skip to main content
Glama
props.ts1.04 kB
import { Property } from '@activepieces/pieces-framework'; import { makeRequest } from './client'; import { HttpMethod } from '@activepieces/pieces-common'; export const assistantIdDropdown = Property.Dropdown({ displayName: 'Assistant', description: 'Please select assistant', refreshers: [], required: true, options: async ({ auth }) => { if (!auth) { return { disabled: true, placeholder: 'Please connect your Guidelite account first.', options: [], }; } try { const response = await makeRequest( auth as string, HttpMethod.GET, '/assistant/list' ); return { disabled: false, options: response.map((model: any) => { return { label: model.assistantName, value: model.assistantId, }; }), }; } catch (error) { return { disabled: true, options: [], placeholder: "Couldn't load assistants, API key is invalid", }; } }, });

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