Skip to main content
Glama
props.ts750 B
import { HttpMethod } from '@activepieces/pieces-common'; import { Property } from '@activepieces/pieces-framework'; import { makeRequest } from './client'; export const agentId = Property.Dropdown({ displayName: 'Agent', description: 'Select the Bolna Voice AI agent', required: true, refreshers: [], options: async ({ auth }) => { try { const response = await makeRequest( auth as string, HttpMethod.GET, '/agent/all' ); return { disabled: false, options: response.map((agent: any) => ({ label: agent.agent_name, value: agent.id, })), }; } catch (e) { return { disabled: true, options: [], }; } }, });

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