@whook/mcp 26.0.5
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/LICENSE +20 -0
- package/README.md +93 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/index.test.d.ts +1 -0
- package/dist/index.test.js +550 -0
- package/dist/index.test.js.map +1 -0
- package/dist/services/httpRouter.d.ts +20 -0
- package/dist/services/httpRouter.js +5 -0
- package/dist/services/httpRouter.js.map +1 -0
- package/dist/services/mcpHandler.d.ts +60 -0
- package/dist/services/mcpHandler.js +334 -0
- package/dist/services/mcpHandler.js.map +1 -0
- package/dist/wrappers/wrapHTTPRouterWithMCPServer.d.ts +17 -0
- package/dist/wrappers/wrapHTTPRouterWithMCPServer.js +72 -0
- package/dist/wrappers/wrapHTTPRouterWithMCPServer.js.map +1 -0
- package/package.json +162 -0
- package/src/index.test.ts +598 -0
- package/src/index.ts +9 -0
- package/src/services/httpRouter.ts +8 -0
- package/src/services/mcpHandler.ts +551 -0
- package/src/types.d.ts +7 -0
- package/src/wrappers/wrapHTTPRouterWithMCPServer.ts +137 -0
package/package.json
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metapak": {
|
|
3
|
+
"configs": [
|
|
4
|
+
"main",
|
|
5
|
+
"readme",
|
|
6
|
+
"tsesm",
|
|
7
|
+
"eslint",
|
|
8
|
+
"jest",
|
|
9
|
+
"jsdocs"
|
|
10
|
+
],
|
|
11
|
+
"data": {
|
|
12
|
+
"childPackage": true,
|
|
13
|
+
"files": "'src/**/*.ts'",
|
|
14
|
+
"testsFiles": "'src/**/*.test.ts'",
|
|
15
|
+
"distFiles": "'dist/**/*.js'",
|
|
16
|
+
"ignore": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"bundleFiles": [
|
|
20
|
+
"dist",
|
|
21
|
+
"src"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"name": "@whook/mcp",
|
|
26
|
+
"version": "26.0.5",
|
|
27
|
+
"description": "Adds an MCP server that proxies the API routes",
|
|
28
|
+
"type": "module",
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"main": "dist/index.js",
|
|
33
|
+
"types": "dist/index.d.ts",
|
|
34
|
+
"keywords": [
|
|
35
|
+
"whook",
|
|
36
|
+
"knifecycle",
|
|
37
|
+
"REST",
|
|
38
|
+
"HTTP",
|
|
39
|
+
"OpenAPI",
|
|
40
|
+
"web",
|
|
41
|
+
"wrapper",
|
|
42
|
+
"swagger"
|
|
43
|
+
],
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "rimraf 'dist' && tsc --outDir dist",
|
|
46
|
+
"cli": "env NODE_ENV=${NODE_ENV:-cli}",
|
|
47
|
+
"cover": "node --run jest -- --coverage",
|
|
48
|
+
"doc": "echo \"# API\" > API.md; jsdoc2md 'dist/**/*.js' >> API.md && git add API.md",
|
|
49
|
+
"format": "node --run prettier",
|
|
50
|
+
"jest": "NODE_OPTIONS=--experimental-vm-modules NODE_ENV=test jest",
|
|
51
|
+
"lint": "eslint 'src/**/*.ts'",
|
|
52
|
+
"metapak": "metapak",
|
|
53
|
+
"prettier": "prettier --write 'src/**/*.ts'",
|
|
54
|
+
"rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
|
|
55
|
+
"test": "node --run jest"
|
|
56
|
+
},
|
|
57
|
+
"author": {
|
|
58
|
+
"name": "Nicolas Froidure",
|
|
59
|
+
"email": "nicolas.froidure@insertafter.com",
|
|
60
|
+
"url": "http://insertafter.com/en/index.html"
|
|
61
|
+
},
|
|
62
|
+
"license": "MIT",
|
|
63
|
+
"repository": {
|
|
64
|
+
"type": "git",
|
|
65
|
+
"url": "git+https://github.com/nfroidure/whook.git"
|
|
66
|
+
},
|
|
67
|
+
"bugs": {
|
|
68
|
+
"url": "https://github.com/nfroidure/whook/issues"
|
|
69
|
+
},
|
|
70
|
+
"homepage": "https://github.com/nfroidure/whook",
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@modelcontextprotocol/node": "^2.0.0",
|
|
73
|
+
"@modelcontextprotocol/server": "^2.0.0",
|
|
74
|
+
"@whook/whook": "^26.0.5",
|
|
75
|
+
"@whook/authorization": "^26.0.5",
|
|
76
|
+
"common-services": "^20.1.0",
|
|
77
|
+
"knifecycle": "^21.4.0",
|
|
78
|
+
"ya-json-schema-types": "^2.0.2",
|
|
79
|
+
"ya-open-api-types": "^2.2.0",
|
|
80
|
+
"yerror": "^11.0.0",
|
|
81
|
+
"yhttperror": "^9.0.2"
|
|
82
|
+
},
|
|
83
|
+
"devDependencies": {
|
|
84
|
+
"@eslint/js": "^10.0.1",
|
|
85
|
+
"@swc/cli": "^0.8.1",
|
|
86
|
+
"@swc/core": "^1.16.0",
|
|
87
|
+
"@swc/jest": "^0.2.39",
|
|
88
|
+
"axios": "^1.19.0",
|
|
89
|
+
"eslint": "^10.8.1",
|
|
90
|
+
"eslint-config-prettier": "^10.1.8",
|
|
91
|
+
"eslint-plugin-jest": "^29.16.1",
|
|
92
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
93
|
+
"jest": "^30.4.2",
|
|
94
|
+
"jsdoc-to-markdown": "^9.1.3",
|
|
95
|
+
"metapak": "^7.1.1",
|
|
96
|
+
"metapak-nfroidure": "22.2.0",
|
|
97
|
+
"prettier": "^3.9.6",
|
|
98
|
+
"rimraf": "^6.1.3",
|
|
99
|
+
"typescript": "^6.0.3",
|
|
100
|
+
"typescript-eslint": "^8.67.0"
|
|
101
|
+
},
|
|
102
|
+
"contributors": [],
|
|
103
|
+
"engines": {
|
|
104
|
+
"node": ">=24.14.0"
|
|
105
|
+
},
|
|
106
|
+
"files": [
|
|
107
|
+
"dist",
|
|
108
|
+
"src",
|
|
109
|
+
"LICENSE",
|
|
110
|
+
"README.md",
|
|
111
|
+
"CHANGELOG.md"
|
|
112
|
+
],
|
|
113
|
+
"prettier": {
|
|
114
|
+
"semi": true,
|
|
115
|
+
"printWidth": 80,
|
|
116
|
+
"singleQuote": true,
|
|
117
|
+
"trailingComma": "all",
|
|
118
|
+
"proseWrap": "always"
|
|
119
|
+
},
|
|
120
|
+
"jest": {
|
|
121
|
+
"coverageReporters": [
|
|
122
|
+
"lcov",
|
|
123
|
+
"html"
|
|
124
|
+
],
|
|
125
|
+
"testPathIgnorePatterns": [
|
|
126
|
+
"/node_modules/"
|
|
127
|
+
],
|
|
128
|
+
"roots": [
|
|
129
|
+
"<rootDir>/src"
|
|
130
|
+
],
|
|
131
|
+
"testEnvironment": "node",
|
|
132
|
+
"transform": {
|
|
133
|
+
"^.+\\.tsx?$": [
|
|
134
|
+
"@swc/jest",
|
|
135
|
+
{}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"moduleNameMapper": {
|
|
139
|
+
"#(.*)": "<rootDir>/../../node_modules/$1",
|
|
140
|
+
"(.+)\\.js": "$1"
|
|
141
|
+
},
|
|
142
|
+
"extensionsToTreatAsEsm": [
|
|
143
|
+
".ts"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"gitHead": "eeb8604ffb2c51fa36b10fe3c0011143948ad374",
|
|
147
|
+
"funding": {
|
|
148
|
+
"type": "individual",
|
|
149
|
+
"url": "https://github.com/sponsors/nfroidure"
|
|
150
|
+
},
|
|
151
|
+
"overrides": {
|
|
152
|
+
"typescript-eslint": {
|
|
153
|
+
"typescript": "^6"
|
|
154
|
+
},
|
|
155
|
+
"@typescript-eslint/eslint-plugin": {
|
|
156
|
+
"typescript": "^6"
|
|
157
|
+
},
|
|
158
|
+
"@typescript-eslint/parser": {
|
|
159
|
+
"typescript": "^6"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|