Skip to main content
Glama

Xano MCP Server

by SarimSiddd
base.ts942 B
import axios, { AxiosInstance } from "axios"; import { Config } from "../../../config.js"; import { authInterceptor } from "./interceptors/auth.js"; import { responseInterceptor } from "./interceptors/response.js"; export class ApiClient { private client: AxiosInstance; constructor(config: Config) { this.client = axios.create({ baseURL: config.xano.apiUrl, timeout: config.xano.timeout, headers: { "Content-Type": "application/json", }, }); const [onFulfilledHandler, onErrorHandler] = authInterceptor( config.xano.apiKey, ); const [onResponseFulledHandler, onResponseErrorHandler] = responseInterceptor(); this.client.interceptors.request.use(onFulfilledHandler, onErrorHandler); this.client.interceptors.response.use( onResponseFulledHandler, onResponseErrorHandler, ); } get axiosInstance(): AxiosInstance { return this.client; } }

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