Skip to main content
Glama

WithSeismic MCP

slack-utils.ts847 B
// ---------- Imports ---------- import { WebClient } from "@slack/web-api"; // ---------- Types ---------- export type SlackClient = WebClient; export interface SlackError { error: string; } // ---------- Constants ---------- const SLACK_TOKEN = process.env.SLACK_BOT_TOKEN; const MISSING_TOKEN_ERROR = "SLACK_BOT_TOKEN environment variable is not set. Please configure your Slack token first."; // ---------- Utilities ---------- export const getSlackClient = (): { client: SlackClient | null; error: string | null; } => { if (!SLACK_TOKEN) { return { client: null, error: MISSING_TOKEN_ERROR }; } return { client: new WebClient(SLACK_TOKEN), error: null }; }; export const createSlackError = (message: string): SlackError => ({ error: message, }); export const isSlackConfigured = (): boolean => Boolean(SLACK_TOKEN);

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/dougwithseismic/withseismic-mcp'

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