@nestjs-mcp/server 0.3.0 → 0.4.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.
- package/README.md +32 -6
- package/dist/classes/prompt.args.d.ts +3 -3
- package/dist/classes/prompt.args.js.map +1 -1
- package/dist/classes/tool.args.d.ts +4 -4
- package/dist/classes/tool.args.js.map +1 -1
- package/dist/decorators/prompt.decorator.js.map +1 -1
- package/dist/decorators/resource.decorator.js.map +1 -1
- package/dist/decorators/tool.decorator.d.ts +3 -3
- package/dist/decorators/tool.decorator.js.map +1 -1
- package/dist/mcp.types.d.ts +2 -4
- package/dist/services/registry.service.d.ts +5 -3
- package/dist/services/registry.service.js +26 -9
- package/dist/services/registry.service.js.map +1 -1
- package/dist/transports/sse/sse.service.d.ts +1 -1
- package/dist/transports/sse/sse.service.js +2 -2
- package/dist/transports/sse/sse.service.js.map +1 -1
- package/dist/transports/streamable/streamable.service.d.ts +1 -1
- package/dist/transports/streamable/streamable.service.js +2 -2
- package/dist/transports/streamable/streamable.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +57 -41
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs-mcp/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Modular library for building scalable MCP servers with NestJS, providing decorators and integration patterns as a wrapper for the official MCP TypeScript SDK.",
|
|
5
5
|
"author": "Adrián Darío Hidalgo Flores",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"packageManager": "pnpm@10.12.1",
|
|
7
8
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
9
|
+
"node": ">=24",
|
|
9
10
|
"pnpm": ">=10"
|
|
10
11
|
},
|
|
11
12
|
"publishConfig": {
|
|
@@ -45,62 +46,75 @@
|
|
|
45
46
|
"scripts": {
|
|
46
47
|
"build": "nest build",
|
|
47
48
|
"prepare": "is-ci || husky",
|
|
48
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
49
49
|
"start:example": "npx -y ts-node-dev --respawn examples/$EXAMPLE/main.ts",
|
|
50
50
|
"start:inspector": "npx -y @modelcontextprotocol/inspector",
|
|
51
|
-
"lint": "eslint \"{src,test,examples}/**/*.ts\"
|
|
51
|
+
"lint:check": "eslint \"{src,test,examples}/**/*.ts\"",
|
|
52
|
+
"lint:fix": "eslint \"{src,test,examples}/**/*.ts\" --fix",
|
|
53
|
+
"format:check": "prettier --check \"{src,test,examples}/**/*.ts\"",
|
|
54
|
+
"format:fix": "prettier --write \"{src,test,examples}/**/*.ts\"",
|
|
52
55
|
"typecheck": "tsc --noEmit",
|
|
56
|
+
"quality:check": "pnpm lint:check && pnpm format:check && pnpm typecheck",
|
|
57
|
+
"quality:fix": "pnpm lint:fix && pnpm format:fix",
|
|
53
58
|
"test": "jest",
|
|
54
59
|
"test:watch": "jest --watch",
|
|
55
60
|
"test:cov": "jest --coverage",
|
|
56
61
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
57
|
-
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
58
|
-
"test:publish": "node scripts/test-npm-publish.js",
|
|
59
|
-
"npm:publish": "node scripts/npm-publish.js"
|
|
62
|
+
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
60
63
|
},
|
|
61
64
|
"peerDependencies": {
|
|
62
|
-
"@nestjs/common": "^11.
|
|
63
|
-
"@nestjs/core": "^11.
|
|
64
|
-
"@nestjs/platform-express": "^11.
|
|
65
|
+
"@nestjs/common": "^11.1.11",
|
|
66
|
+
"@nestjs/core": "^11.1.11",
|
|
67
|
+
"@nestjs/platform-express": "^11.1.11",
|
|
65
68
|
"reflect-metadata": "^0.2.2",
|
|
66
69
|
"rxjs": "^7.8.1"
|
|
67
70
|
},
|
|
68
71
|
"dependencies": {
|
|
69
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
70
|
-
"zod": "^
|
|
72
|
+
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
73
|
+
"zod": "^4.2.1"
|
|
71
74
|
},
|
|
72
75
|
"devDependencies": {
|
|
73
|
-
"@commitlint/cli": "^
|
|
74
|
-
"@commitlint/config-conventional": "^
|
|
75
|
-
"@commitlint/types": "^
|
|
76
|
-
"@eslint/eslintrc": "^3.
|
|
77
|
-
"@eslint/js": "^9.
|
|
78
|
-
"@nestjs/cli": "^11.0.
|
|
76
|
+
"@commitlint/cli": "^20.2.0",
|
|
77
|
+
"@commitlint/config-conventional": "^20.2.0",
|
|
78
|
+
"@commitlint/types": "^20.2.0",
|
|
79
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
80
|
+
"@eslint/js": "^9.39.2",
|
|
81
|
+
"@nestjs/cli": "^11.0.14",
|
|
79
82
|
"@nestjs/config": "^4.0.2",
|
|
80
|
-
"@nestjs/schematics": "^11.0.
|
|
81
|
-
"@nestjs/testing": "^11.
|
|
82
|
-
"@
|
|
83
|
-
"@
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
83
|
+
"@nestjs/schematics": "^11.0.9",
|
|
84
|
+
"@nestjs/testing": "^11.1.11",
|
|
85
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
86
|
+
"@semantic-release/git": "^10.0.1",
|
|
87
|
+
"@semantic-release/github": "^12.0.2",
|
|
88
|
+
"@swc/cli": "^0.7.9",
|
|
89
|
+
"@swc/core": "^1.15.8",
|
|
90
|
+
"@swc/jest": "^0.2.39",
|
|
91
|
+
"@types/express": "^5.0.6",
|
|
92
|
+
"@types/jest": "^30.0.0",
|
|
93
|
+
"@types/node": "^25.0.3",
|
|
87
94
|
"@types/supertest": "^6.0.2",
|
|
88
|
-
"eslint": "^9.
|
|
89
|
-
"eslint-config-prettier": "^10.
|
|
90
|
-
"eslint-plugin-prettier": "^5.
|
|
91
|
-
"globals": "^16.
|
|
95
|
+
"eslint": "^9.39.2",
|
|
96
|
+
"eslint-config-prettier": "^10.1.8",
|
|
97
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
98
|
+
"globals": "^16.5.0",
|
|
92
99
|
"husky": "^9.1.7",
|
|
93
100
|
"is-ci": "^4.1.0",
|
|
94
|
-
"jest": "^
|
|
95
|
-
"
|
|
101
|
+
"jest": "^30.2.0",
|
|
102
|
+
"lint-staged": "^16.2.7",
|
|
103
|
+
"prettier": "^3.7.4",
|
|
104
|
+
"semantic-release": "^25.0.2",
|
|
96
105
|
"source-map-support": "^0.5.21",
|
|
97
|
-
"supertest": "^7.
|
|
98
|
-
"ts-
|
|
99
|
-
"ts-loader": "^9.5.2",
|
|
106
|
+
"supertest": "^7.1.4",
|
|
107
|
+
"ts-loader": "^9.5.4",
|
|
100
108
|
"ts-node": "^10.9.2",
|
|
101
109
|
"tsconfig-paths": "^4.2.0",
|
|
102
|
-
"typescript": "^5.
|
|
103
|
-
"typescript-eslint": "^8.
|
|
110
|
+
"typescript": "^5.9.3",
|
|
111
|
+
"typescript-eslint": "^8.51.0"
|
|
112
|
+
},
|
|
113
|
+
"lint-staged": {
|
|
114
|
+
"{src,test,examples}/**/*.ts": [
|
|
115
|
+
"eslint --fix",
|
|
116
|
+
"prettier --write"
|
|
117
|
+
]
|
|
104
118
|
},
|
|
105
119
|
"jest": {
|
|
106
120
|
"moduleFileExtensions": [
|
|
@@ -111,7 +125,9 @@
|
|
|
111
125
|
"rootDir": "src",
|
|
112
126
|
"testRegex": ".*\\.spec\\.ts$",
|
|
113
127
|
"transform": {
|
|
114
|
-
"^.+\\.(t|j)s$":
|
|
128
|
+
"^.+\\.(t|j)s$": [
|
|
129
|
+
"@swc/jest"
|
|
130
|
+
]
|
|
115
131
|
},
|
|
116
132
|
"collectCoverageFrom": [
|
|
117
133
|
"**/*.(t|j)s"
|
|
@@ -120,10 +136,10 @@
|
|
|
120
136
|
"testEnvironment": "node",
|
|
121
137
|
"coverageThreshold": {
|
|
122
138
|
"global": {
|
|
123
|
-
"statements":
|
|
124
|
-
"branches":
|
|
125
|
-
"functions":
|
|
126
|
-
"lines":
|
|
139
|
+
"statements": 80,
|
|
140
|
+
"branches": 55,
|
|
141
|
+
"functions": 70,
|
|
142
|
+
"lines": 85
|
|
127
143
|
}
|
|
128
144
|
},
|
|
129
145
|
"coveragePathIgnorePatterns": [
|