Skip to main content
Glama

Swagger MCP Server

by tuskermanshu

generate-typescript-types

Convert Swagger/OpenAPI specifications into TypeScript type definitions for enhanced type safety and API development efficiency.

Instructions

Generate TypeScript type definitions from Swagger/OpenAPI document.

Input Schema

NameRequiredDescriptionDefault
cacheTTLMinutesNoCache TTL in minutes
excludeSchemasNoArray of schema names to exclude
filePrefixNoFile prefix
fileSuffixNoFile suffix
generateEnumsNoWhether to generate enum types
generateIndexNoWhether to generate an index file
headersNoRequest headers
includeSchemasNoArray of schema names to include
lazyLoadingNoWhether to use lazy loading
namespaceNoNamespace name
outputDirNoOutput directory
overwriteNoWhether to overwrite existing files
skipValidationNoWhether to skip validation
strictTypesNoWhether to use strict types
swaggerUrlYesSwagger/OpenAPI document URL
useCacheNoWhether to use cache
useNamespaceNoWhether to use namespace for wrapping types

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "cacheTTLMinutes": { "description": "Cache TTL in minutes", "type": "number" }, "excludeSchemas": { "description": "Array of schema names to exclude", "items": { "type": "string" }, "type": "array" }, "filePrefix": { "description": "File prefix", "type": "string" }, "fileSuffix": { "description": "File suffix", "type": "string" }, "generateEnums": { "description": "Whether to generate enum types", "type": "boolean" }, "generateIndex": { "description": "Whether to generate an index file", "type": "boolean" }, "headers": { "additionalProperties": { "type": "string" }, "description": "Request headers", "type": "object" }, "includeSchemas": { "description": "Array of schema names to include", "items": { "type": "string" }, "type": "array" }, "lazyLoading": { "description": "Whether to use lazy loading", "type": "boolean" }, "namespace": { "description": "Namespace name", "type": "string" }, "outputDir": { "description": "Output directory", "type": "string" }, "overwrite": { "description": "Whether to overwrite existing files", "type": "boolean" }, "skipValidation": { "description": "Whether to skip validation", "type": "boolean" }, "strictTypes": { "description": "Whether to use strict types", "type": "boolean" }, "swaggerUrl": { "description": "Swagger/OpenAPI document URL", "type": "string" }, "useCache": { "description": "Whether to use cache", "type": "boolean" }, "useNamespace": { "description": "Whether to use namespace for wrapping types", "type": "boolean" } }, "required": [ "swaggerUrl" ], "type": "object" }

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