Skip to main content
Glama
credentials.ts692 B
import { config } from 'dotenv'; import { SlackConfig } from '../types/slack.js'; // Load environment variables config(); export function getSlackConfig(): SlackConfig { const token = process.env.SLACK_BOT_TOKEN; if (!token) { throw new Error( 'SLACK_BOT_TOKEN environment variable is required. ' + 'Please set it in your .env file or environment.' ); } if (!token.startsWith('xoxb-') || token.length < 20) { throw new Error( 'SLACK_BOT_TOKEN must be a valid bot token (starting with xoxb-). ' + 'Please create a bot token at https://api.slack.com/apps' ); } return { token, workspaceId: process.env.SLACK_WORKSPACE_ID, }; }

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/Hais/slack-bot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server