Skip to main content
Glama
auth.ts1.06 kB
import { HttpMethod } from '@activepieces/pieces-common'; import { PieceAuth } from '@activepieces/pieces-framework'; import { makeRequest } from './client'; export const guideliteAuth = PieceAuth.SecretText({ displayName: 'Guidelite API Key', description: ` To get your API key: 1. Sign in to your GuideLite dashboard 2. Click on your account in the left panel 3. Select "Profile" from the dropdown menu 4. Navigate to the API Keys tab and click "Generate API Key" 5. Copy your unique API key (you won't be able to view it again unless you delete and create a new one) For more information, visit: https://docs.guidelite.ai/reference/quickstart `, required: true, validate: async ({ auth }) => { if (auth) { try { await makeRequest(auth, HttpMethod.GET, '/assistant/list'); return { valid: true, }; } catch (error) { return { valid: false, error: 'Invalid API Key', }; } } return { valid: false, error: 'Invalid API Key', }; }, });

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