@wix/mcp 1.0.7 → 1.0.9
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 +99 -95
- package/build/bin-standalone.js +16434 -0
- package/build/bin-standalone.js.map +7 -0
- package/build/cjs/index.js +24140 -0
- package/build/cjs/index.js.map +7 -0
- package/build/dts/api-call/index.d.ts +4 -0
- package/build/dts/api-call/index.d.ts.map +1 -0
- package/build/dts/api-call/index.js +150 -0
- package/build/dts/api-call/index.js.map +1 -0
- package/build/dts/auth/index.d.ts +6 -0
- package/build/dts/auth/index.d.ts.map +1 -0
- package/build/dts/auth/index.js +2 -0
- package/build/dts/auth/index.js.map +1 -0
- package/build/{bin.d.ts → dts/bin.d.ts} +3 -2
- package/build/dts/bin.d.ts.map +1 -0
- package/build/dts/bin.js +108 -0
- package/build/dts/bin.js.map +1 -0
- package/build/dts/cli-tools/cli.d.ts +5 -0
- package/build/dts/cli-tools/cli.d.ts.map +1 -0
- package/build/dts/cli-tools/cli.js +340 -0
- package/build/dts/cli-tools/cli.js.map +1 -0
- package/build/{cli-tools → dts/cli-tools}/utils.d.ts +1 -0
- package/build/dts/cli-tools/utils.d.ts.map +1 -0
- package/build/dts/cli-tools/utils.js +26 -0
- package/build/dts/cli-tools/utils.js.map +1 -0
- package/build/{docs → dts/docs}/docs.d.ts +1 -0
- package/build/dts/docs/docs.d.ts.map +1 -0
- package/build/dts/docs/docs.js +438 -0
- package/build/dts/docs/docs.js.map +1 -0
- package/build/dts/docs/fetch-article.d.ts +3 -0
- package/build/dts/docs/fetch-article.d.ts.map +1 -0
- package/build/dts/docs/fetch-article.js +20 -0
- package/build/dts/docs/fetch-article.js.map +1 -0
- package/build/dts/docs/get-to-know.d.ts +3 -0
- package/build/dts/docs/get-to-know.d.ts.map +1 -0
- package/build/dts/docs/get-to-know.js +42 -0
- package/build/dts/docs/get-to-know.js.map +1 -0
- package/build/{docs → dts/docs}/long-content.d.ts +1 -0
- package/build/dts/docs/long-content.d.ts.map +1 -0
- package/build/dts/docs/long-content.js +2 -0
- package/build/dts/docs/long-content.js.map +1 -0
- package/build/{docs → dts/docs}/semanticSearch.d.ts +1 -0
- package/build/dts/docs/semanticSearch.d.ts.map +1 -0
- package/build/dts/docs/semanticSearch.js +109 -0
- package/build/dts/docs/semanticSearch.js.map +1 -0
- package/build/dts/docs/semanticSearch.test.d.ts +2 -0
- package/build/dts/docs/semanticSearch.test.d.ts.map +1 -0
- package/build/dts/docs/semanticSearch.test.js +460 -0
- package/build/dts/docs/semanticSearch.test.js.map +1 -0
- package/build/{index.d.ts → dts/index.d.ts} +3 -0
- package/build/dts/index.d.ts.map +1 -0
- package/build/dts/index.js +8 -0
- package/build/dts/index.js.map +1 -0
- package/build/dts/infra/bi-logger.d.ts +3 -0
- package/build/dts/infra/bi-logger.d.ts.map +1 -0
- package/build/dts/infra/bi-logger.js +11 -0
- package/build/dts/infra/bi-logger.js.map +1 -0
- package/build/dts/infra/environment.d.ts +10 -0
- package/build/dts/infra/environment.d.ts.map +1 -0
- package/build/dts/infra/environment.js +28 -0
- package/build/dts/infra/environment.js.map +1 -0
- package/build/{logger.d.ts → dts/infra/logger.d.ts} +1 -0
- package/build/dts/infra/logger.d.ts.map +1 -0
- package/build/dts/infra/logger.js +62 -0
- package/build/dts/infra/logger.js.map +1 -0
- package/build/dts/infra/panorama.d.ts +8 -0
- package/build/dts/infra/panorama.d.ts.map +1 -0
- package/build/dts/infra/panorama.js +36 -0
- package/build/dts/infra/panorama.js.map +1 -0
- package/build/dts/infra/sentry.d.ts +2 -0
- package/build/dts/infra/sentry.d.ts.map +1 -0
- package/build/dts/infra/sentry.js +11 -0
- package/build/dts/infra/sentry.js.map +1 -0
- package/build/{interactive-command-tools → dts/interactive-command-tools}/eventually.d.ts +1 -0
- package/build/dts/interactive-command-tools/eventually.d.ts.map +1 -0
- package/build/dts/interactive-command-tools/eventually.js +16 -0
- package/build/dts/interactive-command-tools/eventually.js.map +1 -0
- package/build/{interactive-command-tools → dts/interactive-command-tools}/handleStdout.d.ts +1 -0
- package/build/dts/interactive-command-tools/handleStdout.d.ts.map +1 -0
- package/build/dts/interactive-command-tools/handleStdout.js +76 -0
- package/build/dts/interactive-command-tools/handleStdout.js.map +1 -0
- package/build/{interactive-command-tools → dts/interactive-command-tools}/interactive-command-utils.d.ts +1 -0
- package/build/dts/interactive-command-tools/interactive-command-utils.d.ts.map +1 -0
- package/build/dts/interactive-command-tools/interactive-command-utils.js +76 -0
- package/build/dts/interactive-command-tools/interactive-command-utils.js.map +1 -0
- package/build/{resources → dts/resources}/docs.d.ts +1 -0
- package/build/dts/resources/docs.d.ts.map +1 -0
- package/build/dts/resources/docs.js +46 -0
- package/build/dts/resources/docs.js.map +1 -0
- package/build/{support → dts/support}/index.d.ts +1 -0
- package/build/dts/support/index.d.ts.map +1 -0
- package/build/dts/support/index.js +33 -0
- package/build/dts/support/index.js.map +1 -0
- package/build/dts/tool-utils.d.ts +3 -0
- package/build/dts/tool-utils.d.ts.map +1 -0
- package/build/dts/tool-utils.js +31 -0
- package/build/dts/tool-utils.js.map +1 -0
- package/build/dts/tool-utils.spec.d.ts +2 -0
- package/build/dts/tool-utils.spec.d.ts.map +1 -0
- package/build/dts/tool-utils.spec.js +100 -0
- package/build/dts/tool-utils.spec.js.map +1 -0
- package/build/{wix-mcp-server.d.ts → dts/wix-mcp-server.d.ts} +13 -1
- package/build/dts/wix-mcp-server.d.ts.map +1 -0
- package/build/dts/wix-mcp-server.js +115 -0
- package/build/dts/wix-mcp-server.js.map +1 -0
- package/build/esm/index.js +18898 -0
- package/build/esm/index.js.map +7 -0
- package/package.json +19 -11
- package/bin.js +0 -2
- package/build/api-call/index.d.ts +0 -2
- package/build/bin.js +0 -681
- package/build/bin.js.map +0 -7
- package/build/chunk-QGIZNLF4.js +0 -8179
- package/build/chunk-QGIZNLF4.js.map +0 -7
- package/build/cli-tools/cli.d.ts +0 -4
- package/build/docs/semanticSearch.test.d.ts +0 -1
- package/build/index.js +0 -201
- package/build/index.js.map +0 -7
- package/build/panorama.d.ts +0 -2
- package/build/sentry.d.ts +0 -1
- package/build/tool-utils.d.ts +0 -1
- package/build/tool-utils.spec.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,164 +1,169 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Wix MCP
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Installation & Usage
|
|
4
4
|
|
|
5
|
+
### From npm Package
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npx @wix/mcp
|
|
5
9
|
```
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
|
|
11
|
+
### Local Development
|
|
12
|
+
|
|
13
|
+
1. Clone the repository
|
|
14
|
+
2. Install dependencies
|
|
15
|
+
3. Build the project
|
|
16
|
+
|
|
17
|
+
Run locally with:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npx /Users/absolute/path/to/repo/dir/.
|
|
8
21
|
```
|
|
9
22
|
|
|
10
|
-
|
|
23
|
+
Or directly with Node:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
node /Users/absolute/path/to/build/bin-standalone.js
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Configuration Options
|
|
30
|
+
|
|
31
|
+
### Tool Selection
|
|
11
32
|
|
|
12
|
-
|
|
33
|
+
Enable specific standard tools (all enabled by default):
|
|
13
34
|
|
|
14
35
|
```
|
|
15
|
-
|
|
16
|
-
args: ["/Users/absolute/path/to/repo/dir/."]
|
|
36
|
+
--tools=WDS,REST,SDK,WIX_HEADLESS,BUILD_APPS
|
|
17
37
|
```
|
|
18
38
|
|
|
39
|
+
### Experimental Tools
|
|
40
|
+
|
|
41
|
+
Enable experimental tools (disabled by default):
|
|
42
|
+
|
|
19
43
|
```
|
|
20
|
-
|
|
21
|
-
args: ["/Users/absolute/path/to/build/bin.js"]
|
|
44
|
+
--experimental=WIX_API,CLI_COMMAND
|
|
22
45
|
```
|
|
23
46
|
|
|
24
|
-
|
|
47
|
+
### CLI Mode
|
|
25
48
|
|
|
26
|
-
|
|
27
|
-
`--tools=WDS,REST,SDK,WIX_HEADLESS,BUILD_APPS` - specify which standard tools to enable (if not specified, all standard tools are enabled)
|
|
49
|
+
Specify CLI mode:
|
|
28
50
|
|
|
29
|
-
|
|
30
|
-
|
|
51
|
+
```
|
|
52
|
+
--cli=wix-one
|
|
53
|
+
```
|
|
31
54
|
|
|
32
|
-
###
|
|
33
|
-
`--cli=wix-one` - specifies to use Wix One CLI mode (if not specified, default CLI mode is used)
|
|
55
|
+
### Logger
|
|
34
56
|
|
|
35
|
-
|
|
36
|
-
`--logger=mcp` - log to MCP server (default)
|
|
37
|
-
`--logger=file` - log to file (in `~/wix-mcp-log.txt`)
|
|
57
|
+
Set logging output:
|
|
38
58
|
|
|
39
|
-
|
|
59
|
+
- `--logger=mcp` (default, logs to MCP server)
|
|
60
|
+
- `--logger=file` (logs to `~/wix-mcp-log.txt`)
|
|
40
61
|
|
|
41
|
-
|
|
42
|
-
- `WDS`: Wix Design System Documentation tools (MCP tool: `SearchWixWDSDocumentation`)
|
|
43
|
-
- `REST`: Wix REST API Documentation tools (MCP tool: `SearchWixRESTDocumentation`)
|
|
44
|
-
- `SDK`: Wix SDK Documentation tools (MCP tool: `SearchWixSDKDocumentation`)
|
|
45
|
-
- `BUILD_APPS`: Build Apps Documentation tools (MCP tool: `SearchBuildAppsDocumentation`)
|
|
46
|
-
- `WIX_HEADLESS`: Wix Headless Documentation tools (MCP tool: `SearchWixHeadlessDocumentation`)
|
|
62
|
+
### Tool Reference
|
|
47
63
|
|
|
48
|
-
|
|
49
|
-
- `
|
|
50
|
-
- `
|
|
64
|
+
**Standard Tools:**
|
|
65
|
+
- `WDS`: Wix Design System Documentation (`SearchWixWDSDocumentation`)
|
|
66
|
+
- `REST`: Wix REST API Documentation (`SearchWixRESTDocumentation`)
|
|
67
|
+
- `SDK`: Wix SDK Documentation (`SearchWixSDKDocumentation`)
|
|
68
|
+
- `BUILD_APPS`: Build Apps Documentation (`SearchBuildAppsDocumentation`)
|
|
69
|
+
- `WIX_HEADLESS`: Wix Headless Documentation (`SearchWixHeadlessDocumentation`)
|
|
51
70
|
|
|
52
|
-
|
|
71
|
+
**Experimental Tools:**
|
|
72
|
+
- `WIX_API`: Wix API tools (`CallWixAPI`)
|
|
73
|
+
- `CLI_COMMAND`: CLI commands for Wix apps (`RunWixCliCommand`)
|
|
53
74
|
|
|
54
|
-
|
|
75
|
+
> Experimental tools are in early development and may have limited functionality or breaking changes. They must be explicitly enabled with `--experimental`.
|
|
55
76
|
|
|
56
|
-
|
|
77
|
+
## Resources
|
|
57
78
|
|
|
58
|
-
The resource feature provides access to Wix documentation
|
|
79
|
+
The resource feature provides access to Wix documentation via the MCP server:
|
|
59
80
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
81
|
+
- Fetches documentation indexes from specified Wix portals
|
|
82
|
+
- Makes documentation articles available as resources
|
|
83
|
+
- Allows fetching article content using the MCP protocol
|
|
63
84
|
|
|
64
|
-
Resources
|
|
65
|
-
It's exactly parallel to the real docs url, for example:
|
|
66
|
-
Docs URL: https://dev.wix.com/docs/picasso/wix-ai-docs/best-practices/sdk-best-practices
|
|
67
|
-
Resource URI: wix-docs://picasso/wix-ai-docs/best-practices/sdk-best-practices
|
|
85
|
+
Resources use the `wix-docs://` URI scheme, which maps to Wix Docs URLs:
|
|
68
86
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
to load all docs from the portal as resources
|
|
87
|
+
- Docs URL: `https://dev.wix.com/docs/...`
|
|
88
|
+
- Resource URI: `wix-docs://...`
|
|
72
89
|
|
|
90
|
+
To load all docs from a portal:
|
|
73
91
|
|
|
74
|
-
|
|
92
|
+
```
|
|
93
|
+
--portals=<docs-portal-name>
|
|
94
|
+
```
|
|
75
95
|
|
|
76
|
-
## Cursor
|
|
96
|
+
## Cursor Integration
|
|
77
97
|
|
|
78
|
-
|
|
98
|
+
### MCP Docs
|
|
79
99
|
|
|
80
|
-
|
|
100
|
+
See: https://docs.cursor.com/context/model-context-protocol
|
|
81
101
|
|
|
82
|
-
|
|
102
|
+
### Configuration (`~/.cursor/mcp.json`)
|
|
83
103
|
|
|
84
|
-
|
|
104
|
+
#### Using npm package
|
|
85
105
|
|
|
86
|
-
```
|
|
106
|
+
```json
|
|
87
107
|
{
|
|
88
108
|
"mcpServers": {
|
|
89
109
|
"wix-local-mcp": {
|
|
90
110
|
"command": "npx",
|
|
91
|
-
"args": [
|
|
92
|
-
"-y",
|
|
93
|
-
"@wix/mcp"
|
|
94
|
-
]
|
|
111
|
+
"args": ["-y", "@wix/mcp"]
|
|
95
112
|
}
|
|
96
113
|
}
|
|
97
114
|
}
|
|
98
115
|
```
|
|
99
116
|
|
|
100
|
-
|
|
101
|
-
|
|
117
|
+
#### Using local build
|
|
118
|
+
|
|
119
|
+
```json
|
|
102
120
|
{
|
|
103
121
|
"mcpServers": {
|
|
104
122
|
"wix-local-mcp": {
|
|
105
123
|
"command": "npx",
|
|
106
|
-
"args": [
|
|
107
|
-
"/Users/absolute/path/to/repo/dir/."
|
|
108
|
-
]
|
|
124
|
+
"args": ["/Users/absolute/path/to/repo/dir/."]
|
|
109
125
|
}
|
|
110
126
|
}
|
|
111
127
|
}
|
|
112
128
|
```
|
|
113
129
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
1. clone
|
|
117
|
-
2. build
|
|
130
|
+
#### Using Node
|
|
118
131
|
|
|
119
|
-
```
|
|
132
|
+
```json
|
|
120
133
|
{
|
|
121
134
|
"mcpServers": {
|
|
122
135
|
"wix-local-mcp": {
|
|
123
136
|
"command": "node",
|
|
124
|
-
"args": [
|
|
125
|
-
"/Users/absolute/path/to/build/bin.js"
|
|
126
|
-
]
|
|
137
|
+
"args": ["/Users/absolute/path/to/build/bin-standalone.js"]
|
|
127
138
|
}
|
|
128
139
|
}
|
|
129
140
|
}
|
|
130
141
|
```
|
|
131
142
|
|
|
132
|
-
|
|
143
|
+
## Troubleshooting
|
|
133
144
|
|
|
134
|
-
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
- make sure build files have permissions for cursor to access
|
|
141
|
-
- log should be written to `~/wix-mcp-log.txt`
|
|
142
|
-
- add .env file with `WIX_COOKIE=` to avoid rate limits on SDK tool use
|
|
145
|
+
- Check logs from Claude Desktop or Cursor
|
|
146
|
+
- For Node/fnm/nvm errors: ensure the latest Node version is set as default
|
|
147
|
+
- For npx errors: use `-y` and the correct npm registry
|
|
148
|
+
- Try specifying the full path to Node
|
|
149
|
+
- Try using Bun and `index.ts` directly
|
|
150
|
+
- Ensure build files have appropriate permissions
|
|
143
151
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"PATH": "<path-to-your-nvm-node-version>/bin"
|
|
155
|
-
}
|
|
156
|
-
}
|
|
152
|
+
### NVM Example Fix
|
|
153
|
+
|
|
154
|
+
```json
|
|
155
|
+
"wix-mcp-remote-prod": {
|
|
156
|
+
"command": "npx",
|
|
157
|
+
"args": ["-y", "@wix/mcp-remote", "https://mcp.wix.com/sse"],
|
|
158
|
+
"env": {
|
|
159
|
+
"PATH": "<path-to-your-nvm-node-version>/bin"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
157
162
|
```
|
|
158
163
|
|
|
159
|
-
|
|
164
|
+
### FNM Example Fix
|
|
160
165
|
|
|
161
|
-
```
|
|
166
|
+
```json
|
|
162
167
|
{
|
|
163
168
|
"mcpServers": {
|
|
164
169
|
"wix-mcp-remote-prod": {
|
|
@@ -172,5 +177,4 @@ https://docs.cursor.com/context/model-context-protocol
|
|
|
172
177
|
}
|
|
173
178
|
```
|
|
174
179
|
|
|
175
|
-
|
|
176
|
-
|
|
180
|
+
> Node 20 is required to build.
|