openapi-mcp-generator/package.json
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

51 lines
1.1 KiB
JSON

{
"name": "openapi-mcp-generator",
"version": "2.0.0",
"description": "Generates MCP server code from OpenAPI specifications",
"license": "MIT",
"author": "Harsha",
"type": "module",
"engines": {
"node": ">=18.0.0"
},
"bin": {
"openapi-mcp-generator": "./build/index.js"
},
"files": [
"build"
],
"scripts": {
"start": "node build/index.js",
"typecheck": "tsc --noEmit",
"build": "tsc && chmod 755 build/index.js"
},
"keywords": [
"openapi",
"mcp",
"model-context-protocol",
"generator",
"llm"
],
"repository": {
"type": "git",
"url": "git+https://github.com/harsha-iiiv/openapi-mcp-generator.git"
},
"bugs": {
"url": "https://github.com/harsha-iiiv/openapi-mcp-generator/issues"
},
"homepage": "https://github.com/harsha-iiiv/openapi-mcp-generator#readme",
"dependencies": {
"@apidevtools/swagger-parser": "^10.1.1",
"@modelcontextprotocol/sdk": "^1.9.0",
"axios": "^1.8.4",
"commander": "^13.1.0",
"zod": "^3.24.2"
},
"devDependencies": {
"typescript": "^5.8.3"
},
"peerDependencies": {
"@modelcontextprotocol/sdk": "^1.9.0"
}
}