@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.
Files changed (122) hide show
  1. package/README.md +99 -95
  2. package/build/bin-standalone.js +16434 -0
  3. package/build/bin-standalone.js.map +7 -0
  4. package/build/cjs/index.js +24140 -0
  5. package/build/cjs/index.js.map +7 -0
  6. package/build/dts/api-call/index.d.ts +4 -0
  7. package/build/dts/api-call/index.d.ts.map +1 -0
  8. package/build/dts/api-call/index.js +150 -0
  9. package/build/dts/api-call/index.js.map +1 -0
  10. package/build/dts/auth/index.d.ts +6 -0
  11. package/build/dts/auth/index.d.ts.map +1 -0
  12. package/build/dts/auth/index.js +2 -0
  13. package/build/dts/auth/index.js.map +1 -0
  14. package/build/{bin.d.ts → dts/bin.d.ts} +3 -2
  15. package/build/dts/bin.d.ts.map +1 -0
  16. package/build/dts/bin.js +108 -0
  17. package/build/dts/bin.js.map +1 -0
  18. package/build/dts/cli-tools/cli.d.ts +5 -0
  19. package/build/dts/cli-tools/cli.d.ts.map +1 -0
  20. package/build/dts/cli-tools/cli.js +340 -0
  21. package/build/dts/cli-tools/cli.js.map +1 -0
  22. package/build/{cli-tools → dts/cli-tools}/utils.d.ts +1 -0
  23. package/build/dts/cli-tools/utils.d.ts.map +1 -0
  24. package/build/dts/cli-tools/utils.js +26 -0
  25. package/build/dts/cli-tools/utils.js.map +1 -0
  26. package/build/{docs → dts/docs}/docs.d.ts +1 -0
  27. package/build/dts/docs/docs.d.ts.map +1 -0
  28. package/build/dts/docs/docs.js +438 -0
  29. package/build/dts/docs/docs.js.map +1 -0
  30. package/build/dts/docs/fetch-article.d.ts +3 -0
  31. package/build/dts/docs/fetch-article.d.ts.map +1 -0
  32. package/build/dts/docs/fetch-article.js +20 -0
  33. package/build/dts/docs/fetch-article.js.map +1 -0
  34. package/build/dts/docs/get-to-know.d.ts +3 -0
  35. package/build/dts/docs/get-to-know.d.ts.map +1 -0
  36. package/build/dts/docs/get-to-know.js +42 -0
  37. package/build/dts/docs/get-to-know.js.map +1 -0
  38. package/build/{docs → dts/docs}/long-content.d.ts +1 -0
  39. package/build/dts/docs/long-content.d.ts.map +1 -0
  40. package/build/dts/docs/long-content.js +2 -0
  41. package/build/dts/docs/long-content.js.map +1 -0
  42. package/build/{docs → dts/docs}/semanticSearch.d.ts +1 -0
  43. package/build/dts/docs/semanticSearch.d.ts.map +1 -0
  44. package/build/dts/docs/semanticSearch.js +109 -0
  45. package/build/dts/docs/semanticSearch.js.map +1 -0
  46. package/build/dts/docs/semanticSearch.test.d.ts +2 -0
  47. package/build/dts/docs/semanticSearch.test.d.ts.map +1 -0
  48. package/build/dts/docs/semanticSearch.test.js +460 -0
  49. package/build/dts/docs/semanticSearch.test.js.map +1 -0
  50. package/build/{index.d.ts → dts/index.d.ts} +3 -0
  51. package/build/dts/index.d.ts.map +1 -0
  52. package/build/dts/index.js +8 -0
  53. package/build/dts/index.js.map +1 -0
  54. package/build/dts/infra/bi-logger.d.ts +3 -0
  55. package/build/dts/infra/bi-logger.d.ts.map +1 -0
  56. package/build/dts/infra/bi-logger.js +11 -0
  57. package/build/dts/infra/bi-logger.js.map +1 -0
  58. package/build/dts/infra/environment.d.ts +10 -0
  59. package/build/dts/infra/environment.d.ts.map +1 -0
  60. package/build/dts/infra/environment.js +28 -0
  61. package/build/dts/infra/environment.js.map +1 -0
  62. package/build/{logger.d.ts → dts/infra/logger.d.ts} +1 -0
  63. package/build/dts/infra/logger.d.ts.map +1 -0
  64. package/build/dts/infra/logger.js +62 -0
  65. package/build/dts/infra/logger.js.map +1 -0
  66. package/build/dts/infra/panorama.d.ts +8 -0
  67. package/build/dts/infra/panorama.d.ts.map +1 -0
  68. package/build/dts/infra/panorama.js +36 -0
  69. package/build/dts/infra/panorama.js.map +1 -0
  70. package/build/dts/infra/sentry.d.ts +2 -0
  71. package/build/dts/infra/sentry.d.ts.map +1 -0
  72. package/build/dts/infra/sentry.js +11 -0
  73. package/build/dts/infra/sentry.js.map +1 -0
  74. package/build/{interactive-command-tools → dts/interactive-command-tools}/eventually.d.ts +1 -0
  75. package/build/dts/interactive-command-tools/eventually.d.ts.map +1 -0
  76. package/build/dts/interactive-command-tools/eventually.js +16 -0
  77. package/build/dts/interactive-command-tools/eventually.js.map +1 -0
  78. package/build/{interactive-command-tools → dts/interactive-command-tools}/handleStdout.d.ts +1 -0
  79. package/build/dts/interactive-command-tools/handleStdout.d.ts.map +1 -0
  80. package/build/dts/interactive-command-tools/handleStdout.js +76 -0
  81. package/build/dts/interactive-command-tools/handleStdout.js.map +1 -0
  82. package/build/{interactive-command-tools → dts/interactive-command-tools}/interactive-command-utils.d.ts +1 -0
  83. package/build/dts/interactive-command-tools/interactive-command-utils.d.ts.map +1 -0
  84. package/build/dts/interactive-command-tools/interactive-command-utils.js +76 -0
  85. package/build/dts/interactive-command-tools/interactive-command-utils.js.map +1 -0
  86. package/build/{resources → dts/resources}/docs.d.ts +1 -0
  87. package/build/dts/resources/docs.d.ts.map +1 -0
  88. package/build/dts/resources/docs.js +46 -0
  89. package/build/dts/resources/docs.js.map +1 -0
  90. package/build/{support → dts/support}/index.d.ts +1 -0
  91. package/build/dts/support/index.d.ts.map +1 -0
  92. package/build/dts/support/index.js +33 -0
  93. package/build/dts/support/index.js.map +1 -0
  94. package/build/dts/tool-utils.d.ts +3 -0
  95. package/build/dts/tool-utils.d.ts.map +1 -0
  96. package/build/dts/tool-utils.js +31 -0
  97. package/build/dts/tool-utils.js.map +1 -0
  98. package/build/dts/tool-utils.spec.d.ts +2 -0
  99. package/build/dts/tool-utils.spec.d.ts.map +1 -0
  100. package/build/dts/tool-utils.spec.js +100 -0
  101. package/build/dts/tool-utils.spec.js.map +1 -0
  102. package/build/{wix-mcp-server.d.ts → dts/wix-mcp-server.d.ts} +13 -1
  103. package/build/dts/wix-mcp-server.d.ts.map +1 -0
  104. package/build/dts/wix-mcp-server.js +115 -0
  105. package/build/dts/wix-mcp-server.js.map +1 -0
  106. package/build/esm/index.js +18898 -0
  107. package/build/esm/index.js.map +7 -0
  108. package/package.json +19 -11
  109. package/bin.js +0 -2
  110. package/build/api-call/index.d.ts +0 -2
  111. package/build/bin.js +0 -681
  112. package/build/bin.js.map +0 -7
  113. package/build/chunk-QGIZNLF4.js +0 -8179
  114. package/build/chunk-QGIZNLF4.js.map +0 -7
  115. package/build/cli-tools/cli.d.ts +0 -4
  116. package/build/docs/semanticSearch.test.d.ts +0 -1
  117. package/build/index.js +0 -201
  118. package/build/index.js.map +0 -7
  119. package/build/panorama.d.ts +0 -2
  120. package/build/sentry.d.ts +0 -1
  121. package/build/tool-utils.d.ts +0 -1
  122. package/build/tool-utils.spec.d.ts +0 -1
package/README.md CHANGED
@@ -1,164 +1,169 @@
1
- # General Config:
1
+ # Wix MCP
2
2
 
3
- ## From npm package:
3
+ ## Installation & Usage
4
4
 
5
+ ### From npm Package
6
+
7
+ ```sh
8
+ npx @wix/mcp
5
9
  ```
6
- command: npx:
7
- args: ["@wix/mcp"]
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
- ## Local:
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
- First: clone + install + build
33
+ Enable specific standard tools (all enabled by default):
13
34
 
14
35
  ```
15
- command: npx
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
- command: node
21
- args: ["/Users/absolute/path/to/build/bin.js"]
44
+ --experimental=WIX_API,CLI_COMMAND
22
45
  ```
23
46
 
24
- # Optional config arguments:
47
+ ### CLI Mode
25
48
 
26
- ### choose a tool:
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
- ### enable experimental tools:
30
- `--experimental=WIX_API,CLI_COMMAND` - enable specific experimental tools (disabled by default)
51
+ ```
52
+ --cli=wix-one
53
+ ```
31
54
 
32
- ### choose a CLI mode:
33
- `--cli=wix-one` - specifies to use Wix One CLI mode (if not specified, default CLI mode is used)
55
+ ### Logger
34
56
 
35
- ### choose a logger:
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
- Available tool options:
59
+ - `--logger=mcp` (default, logs to MCP server)
60
+ - `--logger=file` (logs to `~/wix-mcp-log.txt`)
40
61
 
41
- Standard tools (all enabled by default if no --tools specified):
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
- Experimental tools (disabled by default):
49
- - `WIX_API`: Wix API tools for calling APIs on a Wix app (MCP tool: `CallWixAPI`)
50
- - `CLI_COMMAND`: CLI commands for working with Wix apps (MCP tool: `RunWixCliCommand`)
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
- Note: Experimental tools are in early development and may have limited functionality or breaking changes. These tools are disabled by default and must be explicitly enabled via the --experimental argument, regardless of whether --tools is specified or not.
71
+ **Experimental Tools:**
72
+ - `WIX_API`: Wix API tools (`CallWixAPI`)
73
+ - `CLI_COMMAND`: CLI commands for Wix apps (`RunWixCliCommand`)
53
74
 
54
- The tool enum value (e.g. `WDS`) is used in the `--tools` and `--experimental` arguments, while the MCP tool name (e.g. `SearchWixWDSDocumentation`) is what you'll see in the actual tool calls.
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
- # Resource Feature
77
+ ## Resources
57
78
 
58
- The resource feature provides access to Wix documentation through the MCP server. It:
79
+ The resource feature provides access to Wix documentation via the MCP server:
59
80
 
60
- 1. Fetches documentation indexes from specified Wix portals
61
- 2. Makes documentation articles available as resources through the MCP server
62
- 3. Allows fetching article content using the MCP protocol
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 are accessible using the `wix-docs://` URI scheme, which maps to the corresponding Wix documentation URLs.
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
- pass:
70
- `--portals=<docs-portal-name>`
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
- # Cursor
92
+ ```
93
+ --portals=<docs-portal-name>
94
+ ```
75
95
 
76
- ## Cursor MCP docs:
96
+ ## Cursor Integration
77
97
 
78
- https://docs.cursor.com/context/model-context-protocol
98
+ ### MCP Docs
79
99
 
80
- ## Config:
100
+ See: https://docs.cursor.com/context/model-context-protocol
81
101
 
82
- ## using `~/.cursor/mcp.json`
102
+ ### Configuration (`~/.cursor/mcp.json`)
83
103
 
84
- ### with npx:
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
- ### With npx locally:
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
- ### with node:
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
- ### You can try using bun + index.ts
143
+ ## Troubleshooting
133
144
 
134
- # Troubleshooting
135
- - check the logs from claude desktop / cursor
136
- - is the error related to node / fnm / nvm ? make sure you have the latest node version as the default on in the path
137
- - is the error related to npx? make sure you use -y and the correct npm registry
138
- - try including full path to node
139
- - try using bun and index.ts directly
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
- ## NVM possible fix:
145
- ```
146
- "wix-mcp-remote-prod": {
147
- "command": "npx",
148
- "args": [
149
- "-y",
150
- "@wix/mcp-remote",
151
- "https://mcp.wix.com/sse"
152
- ],
153
- "env": {
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
- ## fnm possible fix:
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.