59 Commits

Author SHA1 Message Date
iwyrkore
f2a580a0a8 Added passthroughAuth option, --passthrough-auth on the commandline.
If passthroughAuth is true, auth headers in MCP call tool requests are passed through to the API requests as specified by the OpenAPI spec. Scheme types http (bearer or basic), apiKey (header, query param, or cookie), and openIdConnect bearer tokens (passed through) as supported.
2025-08-26 15:56:40 -04:00
Harsha v
f29c277860
Merge pull request #39 from harsha-iiiv/copilot/fix-33b9d782-1c7b-44d1-89a9-adbd77a32aa8
Upgrade package to version 3.2.0 and address code quality improvements based on review feedback
2025-08-24 22:03:57 -07:00
copilot-swe-agent[bot]
33220c1e82 Address coderabbitai review feedback: improve docs, error handling, and boolean normalization
Co-authored-by: harsha-iiiv <31560965+harsha-iiiv@users.noreply.github.com>
2025-08-25 04:59:26 +00:00
copilot-swe-agent[bot]
eda4505a63 Update CHANGELOG.md with corrected version details and proper categorization
Co-authored-by: harsha-iiiv <31560965+harsha-iiiv@users.noreply.github.com>
2025-08-25 04:41:52 +00:00
copilot-swe-agent[bot]
4bf66d9efd Upgrade package version to 3.2.0 and update CHANGELOG.md
Co-authored-by: harsha-iiiv <31560965+harsha-iiiv@users.noreply.github.com>
2025-08-24 23:14:41 +00:00
copilot-swe-agent[bot]
7a31e1f6e9 Initial plan 2025-08-24 23:09:33 +00:00
Harsha v
82ff2b726d
Merge pull request #37 from atomicpages/main
feat: allow folks to BYO OpenAPIV3.Document harsha-iiiv/openapi-mcp-generator#35
2025-08-24 16:04:56 -07:00
Harsha v
1c806b8dab
Merge pull request #38 from FabriBorgobello/feature/endpoint-filtering
feature: Add endpoint filtering
2025-08-24 16:04:01 -07:00
Fabricio Borgobello
c9015f395e
Update src/utils/helpers.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-08-22 11:58:27 +02:00
Fabricio Borgobello
af1b664653
Adjust boolean validation 2025-08-22 11:57:58 +02:00
Fabricio Borgobello
1f001bb47a
Remove comment 2025-08-22 11:04:08 +02:00
Fabricio Borgobello
b1e29c22de
feature/endpoint-filtering 2025-08-22 11:00:13 +02:00
Dennis Thompson
e6352d13b6 chore: fix clerical error on docs 2025-08-17 21:48:46 -07:00
Dennis Thompson
26307f26ad
Update src/api.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-08-17 21:48:06 -07:00
Dennis Thompson
b7bc67e444 fix: addresses harsha-iiiv/openapi-mcp-generator#35 2025-08-17 21:26:27 -07:00
Harsha v
47292c89cf
Merge pull request #30 from oneWalker/dev
feat: style and ci optimization
2025-06-19 22:00:22 +05:30
Brian,Kun Liu
2cab8aeada style: format the code with the prettier config 2025-06-19 11:31:27 +08:00
Brian,Kun Liu
ea89e0498e ci: add build and check on PR before merged 2025-06-19 11:31:07 +08:00
Brian,Kun Liu
34a1f6df12 perf: keep code with the same style and format command 2025-06-19 11:28:24 +08:00
Harsha v
e17ab1a3d0
Merge pull request #29 from oneWalker/dev
feat: remove the lowercase transfer to make toolName readable and versionNo from package.json
2025-06-18 15:30:57 +05:30
Brian,Kun Liu
0ca1310c56 perf: remove the lowercase transfer to make toolName readable 2025-06-16 16:12:00 +08:00
Brian,Kun Liu
aa388035ad fix: use the versionNo in package.json 2025-06-16 16:11:10 +08:00
Harsha v
c98d652933
Merge pull request #27 from oneWalker/dev
fix: cannot find the package after building and the problem during th…
2025-06-15 00:19:04 +05:30
Brian,Kun Liu
9c6fed9beb
Update the version serial No 2025-06-12 19:17:09 +08:00
Brian,Kun Liu
67e06c3c34
fix: cannot find the package after building and the problem during the building 2025-06-12 19:00:34 +08:00
Harsha v
df758359e8
Update issue templates 2025-06-09 14:51:07 +05:30
Harsha v
78c3d91ec2
Merge pull request #22 from harsha-iiiv/fix/schema-cycle-detection
feat: Enhance schema mapping with cycle protection
2025-06-08 23:49:38 +05:30
Harsha v
4f7417890f
Create LICENSE 2025-06-08 23:45:58 +05:30
harsha-iiiv
aaf8613216 chore: Update changelog and enhance schema mapping error handling 2025-06-08 23:35:23 +05:30
harsha-iiiv
4c84306814 chore: Bump version to 3.1.2 and update changelog 2025-06-08 23:29:13 +05:30
harsha-iiiv
e2fd79c2ec feat: Enhance schema mapping with cycle protection
- Added cycle detection to the mapOpenApiSchemaToJsonSchema function to prevent infinite recursion when processing schemas.
- Introduced a WeakSet to track visited schema objects, ensuring robust handling of circular references.
2025-06-08 23:10:43 +05:30
Harsha v
2c6c05988e
Update npm-publish.yml 2025-05-26 09:18:29 +05:30
Harsha v
c607d9c759
Merge pull request #18 from harsha-iiiv/fix/cli-path
chore: Update version to 3.1.1 and modify CLI entry point
2025-05-26 08:55:21 +05:30
harsha-iiiv
6141d2e8ae chore: Update version to 3.1.1 and modify CLI entry point
- Bumped package version to 3.1.1 in package.json to match the new release.
- Changed the CLI entry point to use the new bin/openapi-mcp-generator.js file.
- Updated build script to ensure the new CLI file has the correct permissions.
- Refactored index.ts to streamline argument parsing and error handling.
2025-05-26 08:43:41 +05:30
Harsha v
0a3aeae2fb
Merge pull request #14 from harsha-iiiv/docs/add-programmatic-api-docs
feat: Add programmatic API documentation and implementation
2025-05-18 19:24:49 +05:30
harsha-iiiv
83c4e3bba6 chore: Add versioning scripts to package.json for easier version management 2025-05-18 19:23:51 +05:30
Harsha v
55c0279613
Create npm-publish.yml 2025-05-18 19:18:22 +05:30
harsha-iiiv
5052b00bbe chore: Update version to 3.1.0 and changelog 2025-05-18 18:47:33 +05:30
harsha-iiiv
5b88b5e58d feat: Add programmatic API documentation and implementation
- Introduced PROGRAMMATIC_API.md to document the usage of the OpenAPI to MCP Generator programmatically.
- Implemented the getToolsFromOpenApi function in src/api.ts for extracting MCP tool definitions from OpenAPI specifications.
- Updated README.md to reference the new programmatic API documentation.
- Exported the programmatic API and related types from src/index.ts for easier access.
2025-05-18 18:37:27 +05:30
Harsha v
536714a31b
Merge pull request #6 from adnanhusain15/patch-1
Update README.md
2025-05-14 14:47:13 +05:30
Adnan Husain
8f1a6c8529
Update README.md
Fixed MCP documentation link
2025-05-07 12:05:25 +05:30
harsha-iiiv
a4d5e589e6 Fix and add streamable http 2025-04-26 22:31:52 +05:30
Harsha v
258074b2d6
Update README.md
Add star history
2025-04-20 13:06:55 +05:30
harsha-iiiv
bd68adee51 update README 2025-04-13 23:50:50 +05:30
harsha-iiiv
f68f8c2c64 update package.json 2025-04-13 23:37:25 +05:30
harsha-iiiv
6f645e06f3 feat: Add parser and type definitions for OpenAPI to MCP generator
- Introduced a new parser module with exports from extract-tools.
- Created core type definitions for CLI options and MCP tool definitions.
- Removed outdated utility functions and replaced them with new code generation utilities.
- Implemented security handling utilities for API key, HTTP, and OAuth2 authentication.
- Added URL handling utilities for base URL determination and query parameter management.
- Updated TypeScript configuration for improved module resolution and output settings.
2025-04-13 23:32:24 +05:30
harsha-iiiv
7e5c34bc1f add change log 2025-04-12 17:52:43 +05:30
harsha-iiiv
04cd82fa53 Add build folder 2025-04-12 17:24:15 +05:30
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
Harsha v
2c4f2e4f49 Update version to 1.0.4 2025-03-16 17:26:49 +05:30