@ganintegrity/mcp 1.2.0 → 1.3.0

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 +12 -8
  2. package/package.json +9 -3
package/README.md CHANGED
@@ -52,13 +52,17 @@ pnpm add @ganintegrity/mcp
52
52
 
53
53
  Peer dependencies (must exist in your service):
54
54
 
55
- | Peer | Range |
56
- | ----------------------------------- | ----- |
57
- | `@ganintegrity/postgan` | `^28` |
58
- | `@ganintegrity/postgres-migrations` | `^16` |
59
- | `express` | `^5` |
60
- | `pino` | `^10` |
61
- | `zod` | `^4` |
55
+ | Peer | Range |
56
+ | ----------------------------------- | ------------ |
57
+ | `@ganintegrity/postgan` | `^28` |
58
+ | `@ganintegrity/postgres-migrations` | `^16` |
59
+ | `express` | `^4 \|\| ^5` |
60
+ | `pino` | `^10` |
61
+ | `zod` | `^4` |
62
+
63
+ TypeScript consumers also need `@types/express` (`^4 \|\| ^5`) installed — declared as an optional peer so JS consumers aren't forced to pull it in.
64
+
65
+ > The `^4` range is transitional. The library targets Express 5; v4 support is provided so services mid-migration aren't blocked. Expect it to be dropped once consumers are on v5.
62
66
 
63
67
  The library does not bundle any of these — your service is expected to already have them.
64
68
 
@@ -135,7 +139,7 @@ The library is split into a framework-neutral core and per-framework adapters. C
135
139
  | Import | Status | Use |
136
140
  | --------------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------- |
137
141
  | `@ganintegrity/mcp` | Implemented | Framework-neutral surface: `defineMcpServer`, `materializeSdkServer`, error envelope plumbing, every shared type. |
138
- | `@ganintegrity/mcp/express` | Implemented | Express ^5 adapter: `createMcpRouter`, `mcpAuth`, `CreateMcpRouterOptions`. |
142
+ | `@ganintegrity/mcp/express` | Implemented | Express `^4 \|\| ^5` adapter: `createMcpRouter`, `mcpAuth`, `CreateMcpRouterOptions`. |
139
143
  | `@ganintegrity/mcp/koa` | Not yet built | Koa ^2 adapter; intended API documented below. Same names against Koa types. |
140
144
 
141
145
  A bootstrap file imports from both — framework-neutral helpers from the root, the adapter factory from `/express`. A tool definition file imports from the root only; it stays adapter-agnostic.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganintegrity/mcp",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Provides tooling to scaffold an MCP server",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,10 +42,16 @@
42
42
  "peerDependencies": {
43
43
  "@ganintegrity/postgan": "^28",
44
44
  "@ganintegrity/postgres-migrations": "^16 || ^17.0.0",
45
- "express": "^5",
45
+ "@types/express": "^4 || ^5",
46
+ "express": "^4 || ^5",
46
47
  "pino": "^10",
47
48
  "zod": "^4"
48
49
  },
50
+ "peerDependenciesMeta": {
51
+ "@types/express": {
52
+ "optional": true
53
+ }
54
+ },
49
55
  "dependencies": {
50
56
  "@modelcontextprotocol/sdk": "1.29.0"
51
57
  },
@@ -55,11 +61,11 @@
55
61
  "@eslint/js": "10.0.1",
56
62
  "@microsoft/api-extractor": "7.58.7",
57
63
  "@semantic-release/gitlab": "13.2.9",
58
- "@types/express": "5.0.6",
59
64
  "@types/node": "24.12.4",
60
65
  "@types/supertest": "7.2.0",
61
66
  "@vitest/coverage-v8": "4.1.6",
62
67
  "eslint": "10.4.0",
68
+ "express-v4": "npm:express@^4.22.2",
63
69
  "fallow": "2.75.0",
64
70
  "prettier": "3.8.3",
65
71
  "semantic-release": "25.0.2",