swagger.config.tsā¢887 B
import swaggerJsdoc from 'swagger-jsdoc';
const options: swaggerJsdoc.Options = {
definition: {
openapi: '3.0.0',
info: {
title: 'AWS Infrastructure MCP API',
version: '1.0.0',
description: 'API for deploying and managing AWS infrastructure using Model Context Protocol with Chat interface',
contact: {
name: 'API Support',
email: 'support@example.com',
},
},
servers: [
{
url: `http://localhost:${process.env.PORT || 3000}`,
description: 'Development server',
},
],
tags: [
{
name: 'Infrastructure',
description: 'AWS infrastructure management endpoints',
},
{
name: 'Chat',
description: 'Natural language processing endpoints',
},
],
},
apis: ['./src/routes/*.ts'],
};
export const swaggerSpec = swaggerJsdoc(options);