harsha-iiiv 3b4f716661 Refactor OpenAPI MCP Server Generator to TypeScript
- Removed the old JavaScript implementation of the MCP server generator.
- Introduced a new TypeScript implementation with improved command-line argument parsing using `commander`.
- Replaced the OpenAPI spec loading mechanism with `@apidevtools/swagger-parser` for better handling of references.
- Updated the server generation logic to create TypeScript files with appropriate typings and structure.
- Added utility functions for generating operation IDs and converting strings to TitleCase.
- Created a new `tsconfig.json` for TypeScript compilation settings.
- Removed deprecated files related to the old JavaScript implementation, including `openapi-loader.js`, `server-generator.js`, and `tool-generator.js`.
- Enhanced error handling and logging throughout the new implementation.
2025-04-12 17:21:28 +05:30

32 lines
718 B
JSON

{
"name": "swagger-petstore---openapi-3-0",
"version": "1.0.26",
"description": "MCP Server generated from OpenAPI spec for swagger-petstore---openapi-3-0",
"private": true,
"type": "module",
"main": "build/index.js",
"files": [
"build",
"src"
],
"scripts": {
"start": "node build/index.js",
"build": "tsc && chmod 755 build/index.js",
"typecheck": "tsc --noEmit",
"prestart": "npm run build"
},
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.9.0",
"axios": "^1.8.4",
"json-schema-to-zod": "^2.6.1",
"zod": "^3.24.2"
},
"devDependencies": {
"@types/node": "^18.19.0",
"typescript": "^5.4.5"
}
}