Skip to main content
Glama

Swagger MCP Server

by tuskermanshu
axios-client.tpl1.38 kB
/** * Auto-generated Axios API client * Generated through Swagger MCP Server */ import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from "axios"; import { axiosInstance } from "{configImportPath}"; {?imports}{#imports}import { {name} } from "{path}"; {/imports}{/imports} /** * API client for {apiName} */ export class {apiClassName} { private axios: AxiosInstance; constructor(axiosInstance?: AxiosInstance) { this.axios = axiosInstance || axiosInstance; } {#operations} /** * {summary} * {?description} * {description} * {/description} */ public async {operationName}({#parameters}{name}{?isOptional}?{/isOptional}: {type}{?hasMore}, {/hasMore}{/parameters}): Promise<{returnType}> { {?bodyParam}const data = {bodyParam.name};{/bodyParam} const response = await this.axios.{method}( `{url}`, {?isRequestWithBody}{bodyParam.name}{/isRequestWithBody} {?queryParams}{ params: { {#queryParams}{name}{?hasMore}, {/hasMore}{/queryParams} } }{/queryParams} ); return response.data; } {/operations} } /** * Create a new API client instance */ export function create{apiClassName}(axiosInstance?: AxiosInstance): {apiClassName} { return new {apiClassName}(axiosInstance); } /** * Default API client instance */ export const {apiInstanceName} = create{apiClassName}(axiosInstance);

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/tuskermanshu/swagger-mcp-server'

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