Skip to main content
Glama

Xano MCP Server

by SarimSiddd
auth.ts972 B
import axios, { InternalAxiosRequestConfig } from "axios"; type onFulfilled<T> = (value: T) => T | Promise<T>; type onRejected = ((error: any) => any) | null; export const authInterceptor = ( apiKey: string, ): [onFulfilled<InternalAxiosRequestConfig>, onRejected] => { return [ (config: InternalAxiosRequestConfig): InternalAxiosRequestConfig => { config.headers.Authorization = `Bearer ${apiKey}`; return config; }, (error: any): void => { if (axios.isAxiosError(error)) { if (error.response) { console.log( "Got an error in the response", error.response?.data?.message, ); } else if (error.request) { console.log( "Got an error in the request", error.request?.data?.message, ); } else { console.log("Some unknown axios error occurred"); } } throw "Non axios error occurred"; }, ]; };

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/SarimSiddd/xano_mcp'

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