api2ai 0.2.29 → 0.2.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -0
  2. package/package.json +21 -5
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  <img width="600px" src="https://i.imgur.com/TTJBLxo.png" />
4
4
  </p>
5
5
  <h3 align="center">
6
+ <a href="https://api-2-ai.vercel.app/"> 🌐 Live Site </a> &nbsp;|&nbsp;
6
7
  <a href="https://github.com/vtempest/GRAB-URL/tree/master/api2ai/example-petstore"> 🎯 Example MCP Server </a>
7
8
  </h3>
8
9
 
@@ -19,6 +20,8 @@ Generate production-ready MCP servers from any OpenAPI specification using the h
19
20
 
20
21
  OpenAPI specs are easy to write and organize your code and have [100s of tools available](https://openapi.tools) such as the [OpenAPI Builder web UI](https://www.apibldr.com).
21
22
 
23
+ Try it in the browser at **[api-2-ai.vercel.app](https://api-2-ai.vercel.app/)** — the hosted site lets you design and validate OpenAPI specs visually, browse the docs, and see generated-server examples without installing anything.
24
+
22
25
  ## Features
23
26
 
24
27
  - 🚀 **Modern Framework** - Uses mcp-use for clean, maintainable code
@@ -290,3 +293,9 @@ const result = await generateMcpServer(specUrl, outputDir, {
290
293
  | Runtime policy | ✅ Generated | ❌ Manual |
291
294
  | HTTP hardening | ✅ Built-in | ❌ Manual |
292
295
  | Production ready | ✅ Yes | ⚠️ Requires work |
296
+
297
+ ---
298
+
299
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
300
+
301
+ Please star this repo for updates! 🌟
package/package.json CHANGED
@@ -1,19 +1,30 @@
1
1
  {
2
2
  "name": "api2ai",
3
- "version": "0.2.29",
3
+ "version": "0.2.43",
4
4
  "description": "Generate production-ready MCP servers from any OpenAPI specification using the highly-used and convenient [mcp-use](https://mcp-use.com) framework",
5
5
  "license": "rights.institute/prosper",
6
6
  "author": "vtempest",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/OpenSourceAGI/dev-tools-starter-agent/tree/master/packages/api2ai-mcp-generator"
9
+ "url": "git+https://github.com/OpenSourceAGI/dev-tools-starter-agent.git",
10
+ "directory": "packages/api2ai-mcp-generator"
10
11
  },
11
12
  "homepage": "https://github.com/OpenSourceAGI/dev-tools-starter-agent/tree/master/packages/api2ai-mcp-generator",
13
+ "keywords": [
14
+ "mcp",
15
+ "mcp-server",
16
+ "model-context-protocol",
17
+ "openapi",
18
+ "api",
19
+ "ai",
20
+ "code-generator",
21
+ "zod"
22
+ ],
12
23
  "exports": {
13
24
  ".": {
25
+ "types": "./dist/index.d.ts",
14
26
  "import": "./dist/index.mjs",
15
- "require": "./dist/index.js",
16
- "types": "./dist/index.d.ts"
27
+ "require": "./dist/index.js"
17
28
  }
18
29
  },
19
30
  "main": "dist/index.js",
@@ -33,7 +44,10 @@
33
44
  "docs:generate": "fumadocs-mdx",
34
45
  "postinstall": "fumadocs-mdx && drizzle-kit push",
35
46
  "make": "concurrently \"next build && next start \" \"wait-on http://localhost:3000 && opener http://localhost:3000\"",
36
- "start": "next start"
47
+ "start": "next start",
48
+ "test": "vitest run",
49
+ "test:watch": "vitest",
50
+ "coverage": "vitest run --coverage"
37
51
  },
38
52
  "dependencies": {
39
53
  "@ai-sdk/react": "3.0.3",
@@ -214,6 +228,7 @@
214
228
  "@types/react": "^19.2.7",
215
229
  "@types/react-dom": "^19.2.3",
216
230
  "@types/three": "^0.182.0",
231
+ "@vitest/coverage-v8": "^4.1.0",
217
232
  "concurrently": "^9.2.1",
218
233
  "drizzle-kit": "^0.31.8",
219
234
  "opener": "^1.5.2",
@@ -223,6 +238,7 @@
223
238
  "typescript": "^5.9.3",
224
239
  "vite": "^7.3.0",
225
240
  "vite-plugin-dts": "^4.5.4",
241
+ "vitest": "^4.1.0",
226
242
  "wait-on": "^9.0.3"
227
243
  },
228
244
  "data": "dist/index.d.ts",