Skip to main content
Glama

QASE MCP Server

utils.ts873 B
import { AxiosResponse } from 'axios'; import { ResultAsync } from 'neverthrow'; import { QaseApi } from 'qaseio'; export type ApiError = { response?: { data?: { message?: string } }; message: string; }; export type ApiResponse<T> = { data: { result?: T; status: boolean; errorMessage?: string; }; }; export const formatApiError = (error: unknown) => { const apiError = error as ApiError; return apiError.response?.data?.message || apiError.message; }; export const toResult = (promise: Promise<AxiosResponse>) => ResultAsync.fromPromise(promise, formatApiError); export const client = (({ QASE_API_TOKEN }) => { if (!QASE_API_TOKEN) { throw new Error( 'QASE_API_TOKEN environment variable is required. Please set it before running the server.', ); } return new QaseApi({ token: QASE_API_TOKEN, }); })(process.env);

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/rikuson/mcp-qase'

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