@automattic/mcp-wordpress-remote 0.2.10 → 0.2.12
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/dist/lib.d.ts +205 -0
- package/dist/lib.js +5125 -0
- package/dist/proxy.js +36589 -3946
- package/package.json +46 -10
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/mcp-wordpress-remote",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "MCP WordPress Remote proxy server",
|
|
5
5
|
"engines": {
|
|
6
|
-
"node": ">=
|
|
6
|
+
"node": ">=18.0.0"
|
|
7
7
|
},
|
|
8
8
|
"keywords": [
|
|
9
9
|
"mcp",
|
|
@@ -23,6 +23,16 @@
|
|
|
23
23
|
"LICENSE"
|
|
24
24
|
],
|
|
25
25
|
"main": "dist/proxy.js",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": "./dist/proxy.js",
|
|
29
|
+
"types": "./dist/proxy.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./lib": {
|
|
32
|
+
"import": "./dist/lib.js",
|
|
33
|
+
"types": "./dist/lib.d.ts"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
26
36
|
"bin": {
|
|
27
37
|
"@automattic/mcp-wordpress-remote": "dist/proxy.js"
|
|
28
38
|
},
|
|
@@ -47,6 +57,7 @@
|
|
|
47
57
|
"dependencies": {
|
|
48
58
|
"@modelcontextprotocol/sdk": "^1.8.0",
|
|
49
59
|
"express": "^4.18.2",
|
|
60
|
+
"node-fetch": "^3.3.2",
|
|
50
61
|
"open": "^10.0.0"
|
|
51
62
|
},
|
|
52
63
|
"devDependencies": {
|
|
@@ -54,7 +65,7 @@
|
|
|
54
65
|
"@types/express": "^4.17.21",
|
|
55
66
|
"@types/jest": "^29.5.12",
|
|
56
67
|
"@types/mockdate": "^2.0.0",
|
|
57
|
-
"@types/node": "^
|
|
68
|
+
"@types/node": "^18.19.0",
|
|
58
69
|
"@types/supertest": "^6.0.3",
|
|
59
70
|
"@types/tmp": "^0.2.6",
|
|
60
71
|
"jest": "^29.7.0",
|
|
@@ -70,14 +81,32 @@
|
|
|
70
81
|
},
|
|
71
82
|
"tsup": {
|
|
72
83
|
"entry": [
|
|
73
|
-
"src/proxy.ts"
|
|
84
|
+
"src/proxy.ts",
|
|
85
|
+
"src/lib.ts"
|
|
74
86
|
],
|
|
75
87
|
"format": [
|
|
76
88
|
"esm"
|
|
77
89
|
],
|
|
78
90
|
"dts": true,
|
|
79
91
|
"clean": true,
|
|
80
|
-
"outDir": "dist"
|
|
92
|
+
"outDir": "dist",
|
|
93
|
+
"splitting": false,
|
|
94
|
+
"noExternal": [
|
|
95
|
+
"@modelcontextprotocol/sdk",
|
|
96
|
+
"express",
|
|
97
|
+
"node-fetch",
|
|
98
|
+
"open"
|
|
99
|
+
],
|
|
100
|
+
"external": [
|
|
101
|
+
"node:*"
|
|
102
|
+
],
|
|
103
|
+
"minify": false,
|
|
104
|
+
"sourcemap": false,
|
|
105
|
+
"target": "node18",
|
|
106
|
+
"platform": "node",
|
|
107
|
+
"banner": {
|
|
108
|
+
"js": "import { createRequire } from 'module'; const require = createRequire(import.meta.url);"
|
|
109
|
+
}
|
|
81
110
|
},
|
|
82
111
|
"jest": {
|
|
83
112
|
"testEnvironment": "node",
|
|
@@ -96,18 +125,25 @@
|
|
|
96
125
|
"json",
|
|
97
126
|
"node"
|
|
98
127
|
],
|
|
99
|
-
"extensionsToTreatAsEsm": [
|
|
128
|
+
"extensionsToTreatAsEsm": [
|
|
129
|
+
".ts"
|
|
130
|
+
],
|
|
100
131
|
"preset": "ts-jest/presets/default-esm",
|
|
101
132
|
"transform": {
|
|
102
|
-
"^.+\\.ts$": [
|
|
103
|
-
"
|
|
104
|
-
|
|
133
|
+
"^.+\\.ts$": [
|
|
134
|
+
"ts-jest",
|
|
135
|
+
{
|
|
136
|
+
"useESM": true
|
|
137
|
+
}
|
|
138
|
+
]
|
|
105
139
|
},
|
|
106
140
|
"moduleNameMapper": {
|
|
107
141
|
"^(\\.{1,2}/.*)\\.js$": "$1",
|
|
108
142
|
"^open$": "<rootDir>/tests/__mocks__/open.ts"
|
|
109
143
|
},
|
|
110
|
-
"setupFilesAfterEnv": [
|
|
144
|
+
"setupFilesAfterEnv": [
|
|
145
|
+
"<rootDir>/tests/setup.ts"
|
|
146
|
+
],
|
|
111
147
|
"collectCoverageFrom": [
|
|
112
148
|
"src/**/*.ts",
|
|
113
149
|
"!src/**/*.d.ts",
|