oneie 3.6.5 → 3.6.7

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 (98) hide show
  1. package/.claude/commands/onboard.md +179 -0
  2. package/.claude/commands/one copy.md +565 -0
  3. package/.claude/commands/one.md +125 -487
  4. package/.claude/commands/server.md +333 -0
  5. package/.claude/hooks/README-knowledge-hooks.md +265 -0
  6. package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
  7. package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
  8. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  9. package/.claude/hooks/check-filenames.py +40 -0
  10. package/.claude/hooks/clean-post.py +301 -0
  11. package/.claude/hooks/clean-pre.py +308 -0
  12. package/.claude/hooks/done.py +175 -0
  13. package/.claude/hooks/format-hook.sh +75 -0
  14. package/.claude/hooks/hook-logger.sh +59 -0
  15. package/.claude/hooks/knowledge-post.py +251 -0
  16. package/.claude/hooks/knowledge-pre.py +150 -0
  17. package/.claude/hooks/notification-hook.sh +112 -0
  18. package/.claude/hooks/security-hook.sh +157 -0
  19. package/.claude/hooks/tag-all-docs.py +338 -0
  20. package/.claude/hooks/todo.py +298 -0
  21. package/.claude/hooks/validate-ontology-structure.py +455 -0
  22. package/.claude/skills/astro/add-content-collection.md +30 -0
  23. package/.claude/skills/astro/check-build.md +29 -0
  24. package/.claude/skills/astro/create-component.md +29 -0
  25. package/.claude/skills/astro/create-page.md +30 -0
  26. package/.claude/skills/astro/optimize-performance.md +21 -0
  27. package/.claude/skills/convex/check-deployment.md +46 -0
  28. package/.claude/skills/convex/create-mutation.md +405 -0
  29. package/.claude/skills/convex/create-query.md +52 -0
  30. package/.claude/skills/convex/read-schema.md +373 -0
  31. package/.claude/skills/convex/test-function.md +50 -0
  32. package/.claude/skills/deployment/check-deployment-health.md +20 -0
  33. package/.claude/skills/deployment/create-release.md +21 -0
  34. package/.claude/skills/deployment/deploy-cloudflare.md +31 -0
  35. package/.claude/skills/deployment/deploy-convex.md +30 -0
  36. package/.claude/skills/deployment/sync-repositories.md +19 -0
  37. package/.claude/skills/design/check-accessibility.md +21 -0
  38. package/.claude/skills/design/create-component-spec.md +27 -0
  39. package/.claude/skills/design/generate-design-tokens.md +24 -0
  40. package/.claude/skills/design/generate-wireframe.md +30 -0
  41. package/.claude/skills/documentation/create-migration-guide.md +20 -0
  42. package/.claude/skills/documentation/generate-api-docs.md +27 -0
  43. package/.claude/skills/documentation/generate-readme.md +22 -0
  44. package/.claude/skills/documentation/update-knowledge.md +20 -0
  45. package/.claude/skills/integration/connect-external-system.md +21 -0
  46. package/.claude/skills/integration/implement-a2a.md +20 -0
  47. package/.claude/skills/integration/implement-acp.md +20 -0
  48. package/.claude/skills/integration/verify-integration.md +20 -0
  49. package/.claude/skills/ontology/README.md +255 -0
  50. package/.claude/skills/ontology/check-dimension.md +307 -0
  51. package/.claude/skills/ontology/generate-entity-type.md +339 -0
  52. package/.claude/skills/ontology/validate-schema.md +229 -0
  53. package/.claude/skills/ontology/verify-relationships.md +310 -0
  54. package/.claude/skills/problem-solving/analyze-test-failure.md +21 -0
  55. package/.claude/skills/problem-solving/identify-root-cause.md +20 -0
  56. package/.claude/skills/problem-solving/propose-solution.md +29 -0
  57. package/.claude/skills/problem-solving/verify-fix.md +21 -0
  58. package/.claude/skills/sales/generate-demo-script.md +21 -0
  59. package/.claude/skills/sales/qualify-lead.md +30 -0
  60. package/.claude/skills/sales/track-trial.md +20 -0
  61. package/.claude/skills/sales/verify-kyc.md +20 -0
  62. package/.claude/skills/testing/analyze-coverage.md +24 -0
  63. package/.claude/skills/testing/generate-tests.md +24 -0
  64. package/.claude/skills/testing/run-tests.md +27 -0
  65. package/.claude/skills/testing/validate-e2e.md +25 -0
  66. package/.mcp.json +30 -3
  67. package/dist/commands/init.d.ts.map +1 -1
  68. package/dist/commands/init.js +13 -6
  69. package/dist/commands/init.js.map +1 -1
  70. package/dist/utils/launch-claude.d.ts +3 -2
  71. package/dist/utils/launch-claude.d.ts.map +1 -1
  72. package/dist/utils/launch-claude.js +64 -29
  73. package/dist/utils/launch-claude.js.map +1 -1
  74. package/folders.yaml +1 -1
  75. package/one/.obsidian/workspace.json +22 -22
  76. package/one/events/CREATE-WEBSITE.md +442 -0
  77. package/one/events/CUSTOM-DOMAIN.md +357 -0
  78. package/one/events/DEPLOYMENT copy.md +426 -0
  79. package/one/events/ECOMMERCE-BEFORE-AFTER.md +251 -0
  80. package/one/events/ECOMMERCE-ENHANCEMENTS.md +576 -0
  81. package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +421 -0
  82. package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +196 -0
  83. package/one/events/ECOMMERCE-SETUP-SUMMARY.md +396 -0
  84. package/one/events/INSTALLATION_FOLDERS.md +516 -0
  85. package/one/events/INSTALLATION_FOLDERS_FILES.md +205 -0
  86. package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +419 -0
  87. package/one/events/LICENSE.md +89 -0
  88. package/one/events/MCP-CONFIGURATION.md +336 -0
  89. package/one/events/MCP-SETUP-COMPLETE.md +205 -0
  90. package/one/events/NODE-UPGRADE.md +111 -0
  91. package/one/events/PACKAGE-STRUCTURE.md +310 -0
  92. package/one/events/PLAYBOOK-SETUP-SUMMARY.md +331 -0
  93. package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +567 -0
  94. package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +262 -0
  95. package/one/events/STRIPE-INTEGRATION.md +414 -0
  96. package/one/events/STRIPE-SETUP-GUIDE.md +462 -0
  97. package/one/events/TRANSPARENCY-FIXES.md +275 -0
  98. package/package.json +4 -2
@@ -0,0 +1,336 @@
1
+ # MCP Server Configuration
2
+
3
+ This document explains the Model Context Protocol (MCP) server configuration for the ONE Platform.
4
+
5
+ ## Prerequisites
6
+
7
+ ### Node.js Version
8
+
9
+ **Required:** Node.js 20.19.0 or higher
10
+
11
+ The project includes a `.nvmrc` file that specifies Node 20.19.0. To use it:
12
+
13
+ ```bash
14
+ # Install nvm if you haven't already
15
+ # See: https://github.com/nvm-sh/nvm
16
+
17
+ # Use the version specified in .nvmrc
18
+ nvm use
19
+
20
+ # Or install and use in one command
21
+ nvm install
22
+ ```
23
+
24
+ ### Environment Variables
25
+
26
+ **Required in `.env`:**
27
+
28
+ ```bash
29
+ # Cloudflare (for cloudflare-builds MCP)
30
+ CLOUDFLARE_GLOBAL_API_KEY=your-cloudflare-global-api-key
31
+ CLOUDFLARE_ACCOUNT_ID=your-cloudflare-account-id
32
+ CLOUDFLARE_EMAIL=your-cloudflare-email
33
+
34
+ # Anthropic (for claude MCP)
35
+ ANTHROPIC_API_KEY=sk-ant-api03-your-key
36
+
37
+ # Figma (for framelink-figma MCP)
38
+ FIGMA_ACCESS_TOKEN=figd_your-figma-token
39
+ ```
40
+
41
+ These credentials are automatically passed to their respective MCP servers via the `env` configuration in `.mcp.json`.
42
+
43
+ ## Working MCP Servers
44
+
45
+ ### 1. Stripe (`stripe`)
46
+ **Status:** ✅ Working
47
+ **Type:** Remote HTTPS endpoint
48
+ **Configuration:**
49
+ ```json
50
+ {
51
+ "stripe": {
52
+ "url": "https://mcp.stripe.com"
53
+ }
54
+ }
55
+ ```
56
+
57
+ **Features:**
58
+ - Search Stripe documentation
59
+ - Manage customers, products, prices
60
+ - Create payment links and invoices
61
+ - Handle subscriptions and refunds
62
+ - View disputes and coupons
63
+
64
+ ### 2. shadcn (`shadcn`)
65
+ **Status:** ✅ Available
66
+ **Type:** Command-based (npx)
67
+ **Configuration:**
68
+ ```json
69
+ {
70
+ "shadcn": {
71
+ "command": "npx",
72
+ "args": ["shadcn@latest", "mcp"]
73
+ }
74
+ }
75
+ ```
76
+
77
+ **Features:**
78
+ - Add shadcn/ui components to projects
79
+ - Search component registry
80
+ - View component details
81
+ - Manage project configuration
82
+
83
+ ### 3. Cloudflare Builds (`cloudflare-builds`)
84
+ **Status:** ✅ Enabled (requires Node 20.19.0+)
85
+ **Type:** Command-based with authentication
86
+ **Configuration:**
87
+ ```json
88
+ {
89
+ "cloudflare-builds": {
90
+ "command": "npx",
91
+ "args": ["-y", "mcp-remote", "https://builds.mcp.cloudflare.com/sse"],
92
+ "env": {
93
+ "CLOUDFLARE_API_KEY": "${CLOUDFLARE_GLOBAL_API_KEY}",
94
+ "CLOUDFLARE_API_TOKEN": "${CLOUDFLARE_GLOBAL_API_KEY}"
95
+ }
96
+ }
97
+ }
98
+ ```
99
+
100
+ **Features:**
101
+ - Monitor Cloudflare Pages builds
102
+ - View build logs and status
103
+ - Manage deployments
104
+
105
+ **Requirements:**
106
+ - Node.js 20.19.0+ (use `nvm use` to switch)
107
+ - `CLOUDFLARE_GLOBAL_API_KEY` in `.env`
108
+
109
+ ### 4. Chrome DevTools (`chrome-devtools`)
110
+ **Status:** ✅ Enabled (requires Node 20.19.0+)
111
+ **Type:** Command-based (npx)
112
+ **Configuration:**
113
+ ```json
114
+ {
115
+ "chrome-devtools": {
116
+ "command": "npx",
117
+ "args": ["-y", "chrome-devtools-mcp@latest"]
118
+ }
119
+ }
120
+ ```
121
+
122
+ **Features:**
123
+ - Debug web applications
124
+ - Inspect DOM and styles
125
+ - Monitor network activity
126
+ - Access Chrome DevTools Protocol
127
+
128
+ **Requirements:**
129
+ - Node.js 20.19.0+ (use `nvm use` to switch)
130
+ - Chrome browser running
131
+
132
+ ### 5. Claude MCP (`claude`)
133
+ **Status:** ✅ Enabled
134
+ **Type:** Command-based with authentication
135
+ **Configuration:**
136
+ ```json
137
+ {
138
+ "claude": {
139
+ "command": "npx",
140
+ "args": ["-y", "@anthropic-ai/mcp-server-claude"],
141
+ "env": {
142
+ "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}"
143
+ }
144
+ }
145
+ }
146
+ ```
147
+
148
+ **Features:**
149
+ - Access Claude AI capabilities
150
+ - Enhanced AI-powered development workflows
151
+ - Integration with Anthropic services
152
+
153
+ **Requirements:**
154
+ - `ANTHROPIC_API_KEY` in `.env`
155
+
156
+ ### 6. Framelink Figma MCP (`framelink-figma`)
157
+ **Status:** ✅ Enabled
158
+ **Type:** Command-based with authentication
159
+ **Configuration:**
160
+ ```json
161
+ {
162
+ "framelink-figma": {
163
+ "command": "npx",
164
+ "args": [
165
+ "-y",
166
+ "figma-developer-mcp",
167
+ "--figma-api-key=${FIGMA_ACCESS_TOKEN}",
168
+ "--stdio"
169
+ ]
170
+ }
171
+ }
172
+ ```
173
+
174
+ **Features:**
175
+ - Access Figma designs and files
176
+ - Retrieve design tokens and styles
177
+ - Export assets and components
178
+ - Developer-focused Figma integration
179
+
180
+ **Requirements:**
181
+ - `FIGMA_ACCESS_TOKEN` in `.env`
182
+
183
+ ### 7. Astro Documentation (`astro-docs`)
184
+ **Status:** ✅ Enabled
185
+ **Type:** Remote HTTP endpoint
186
+ **Configuration:**
187
+ ```json
188
+ {
189
+ "astro-docs": {
190
+ "transport": "http",
191
+ "url": "https://mcp.docs.astro.build/mcp"
192
+ }
193
+ }
194
+ ```
195
+
196
+ **Features:**
197
+ - Search Astro documentation
198
+ - Get API references
199
+ - Access guides and tutorials
200
+ - Framework-specific help
201
+
202
+ **Requirements:**
203
+ - None (public endpoint)
204
+
205
+ ## Setup Instructions
206
+
207
+ ### Step 1: Upgrade to Node 20.19.0+
208
+
209
+ ```bash
210
+ # If using nvm (recommended)
211
+ nvm install 20.19.0
212
+ nvm use
213
+
214
+ # Verify version
215
+ node --version # Should show v20.19.0 or higher
216
+ ```
217
+
218
+ ### Step 2: Verify Environment Variables
219
+
220
+ Ensure your `.env` file contains:
221
+
222
+ ```bash
223
+ CLOUDFLARE_GLOBAL_API_KEY=your-cloudflare-global-api-key
224
+ CLOUDFLARE_ACCOUNT_ID=your-cloudflare-account-id
225
+ CLOUDFLARE_EMAIL=your-cloudflare-email
226
+ ```
227
+
228
+ ### Step 3: Restart Claude Code
229
+
230
+ After making any changes to `.mcp.json` or upgrading Node.js, restart Claude Code to reload the MCP configuration.
231
+
232
+ ## MCP Configuration Patterns
233
+
234
+ ### Pattern 1: Remote HTTPS Endpoint (Stripe)
235
+ ```json
236
+ {
237
+ "server-name": {
238
+ "url": "https://mcp.example.com"
239
+ }
240
+ }
241
+ ```
242
+
243
+ **When to use:** For hosted MCP servers with simple HTTP/HTTPS access.
244
+
245
+ ### Pattern 2: Command-based (shadcn)
246
+ ```json
247
+ {
248
+ "server-name": {
249
+ "command": "npx",
250
+ "args": ["package-name@latest", "mcp"]
251
+ }
252
+ }
253
+ ```
254
+
255
+ **When to use:** For npm-installable MCP servers that run as Node.js processes.
256
+
257
+ ### Pattern 3: Remote SSE with Wrapper (mcp-remote)
258
+ ```json
259
+ {
260
+ "server-name": {
261
+ "command": "npx",
262
+ "args": ["-y", "mcp-remote", "https://sse-endpoint.com"]
263
+ }
264
+ }
265
+ ```
266
+
267
+ **When to use:** For Server-Sent Events (SSE) endpoints that need the `mcp-remote` wrapper.
268
+
269
+ ## Testing MCP Servers
270
+
271
+ ### Test Remote Endpoint
272
+ ```bash
273
+ curl -s -I https://mcp.example.com
274
+ # Should return HTTP 200 or 405 (but not 401/404)
275
+ ```
276
+
277
+ ### Test Command-based
278
+ ```bash
279
+ npx package-name@latest --help
280
+ # Should show help or version info without errors
281
+ ```
282
+
283
+ ### Check Node Version Requirements
284
+ ```bash
285
+ node --version
286
+ # Compare against package requirements
287
+ ```
288
+
289
+ ## Adding New MCP Servers
290
+
291
+ 1. **Test the server first** using bash commands
292
+ 2. **Choose the right pattern** (URL vs command)
293
+ 3. **Add to `.mcp.json`** with minimal configuration
294
+ 4. **Restart Claude Code** to reload MCP configuration
295
+ 5. **Document in this file** if it requires special setup
296
+
297
+ ## Current Status Summary
298
+
299
+ | MCP Server | Status | Type | Notes |
300
+ |------------|--------|------|-------|
301
+ | Stripe | ✅ Working | Remote HTTPS | Payment processing, no auth needed |
302
+ | shadcn | ✅ Working | Command (npx) | UI component management |
303
+ | Cloudflare Builds | ✅ Enabled | Command + Auth | Requires Node 20.19.0+ and `.env` credentials |
304
+ | Chrome DevTools | ✅ Enabled | Command (npx) | Requires Node 20.19.0+ |
305
+ | Claude | ✅ Enabled | Command + Auth | Requires `ANTHROPIC_API_KEY` in `.env` |
306
+ | Framelink Figma | ✅ Enabled | Command + Auth | Requires `FIGMA_ACCESS_TOKEN` in `.env` |
307
+ | Astro Docs | ✅ Working | Remote HTTP | Astro documentation, no auth needed |
308
+
309
+ ## Troubleshooting
310
+
311
+ ### MCP Server Not Responding
312
+
313
+ 1. Check `.mcp.json` syntax (valid JSON)
314
+ 2. Restart Claude Code to reload config
315
+ 3. Test endpoint/command manually
316
+ 4. Check Claude Code logs for errors
317
+ 5. Verify Node.js version for command-based MCPs
318
+
319
+ ### Authentication Errors
320
+
321
+ 1. Some MCP servers require API keys
322
+ 2. Add credentials to environment variables
323
+ 3. Configure auth in `.mcp.json` (if supported)
324
+ 4. Contact service provider for access
325
+
326
+ ### Version Conflicts
327
+
328
+ 1. Check Node.js version: `node --version`
329
+ 2. Upgrade Node if needed
330
+ 3. Try specific package versions instead of `@latest`
331
+ 4. Check package documentation for requirements
332
+
333
+ ---
334
+
335
+ **Last Updated:** 2025-10-22
336
+ **ONE Platform Version:** v3.0.0+
@@ -0,0 +1,205 @@
1
+ # MCP Configuration Complete ✅
2
+
3
+ ## Changes Made
4
+
5
+ ### 1. Replaced Figma MCP with Claude MCP + Framelink Figma MCP
6
+
7
+ **Removed:**
8
+ - `figma` - Old Figma remote endpoint (HTTP 405 errors)
9
+
10
+ **Added:**
11
+ - `claude` - Official Anthropic Claude MCP server
12
+ - `framelink-figma` - Developer-focused Figma integration
13
+
14
+ ### 2. Complete MCP Server List (7 Servers)
15
+
16
+ | # | MCP Server | Type | Auth Required | Status |
17
+ |---|------------|------|---------------|--------|
18
+ | 1 | **Stripe** | Remote HTTPS | ❌ None | ✅ Working |
19
+ | 2 | **shadcn** | Command (npx) | ❌ None | ✅ Working |
20
+ | 3 | **Cloudflare Builds** | Command + Auth | ✅ CLOUDFLARE_GLOBAL_API_KEY | ✅ Enabled* |
21
+ | 4 | **Chrome DevTools** | Command (npx) | ❌ None | ✅ Enabled* |
22
+ | 5 | **Claude** | Command + Auth | ✅ ANTHROPIC_API_KEY | ✅ Enabled |
23
+ | 6 | **Framelink Figma** | Command + Auth | ✅ FIGMA_ACCESS_TOKEN | ✅ Enabled |
24
+ | 7 | **Astro Docs** | Remote HTTP | ❌ None | ✅ Working |
25
+
26
+ **\* Requires Node.js 20.19.0+ (current: 20.11.0)**
27
+
28
+ ## Environment Variables Status
29
+
30
+ ```bash
31
+ ✅ CLOUDFLARE_GLOBAL_API_KEY # Present
32
+ ✅ CLOUDFLARE_ACCOUNT_ID # Present
33
+ ✅ ANTHROPIC_API_KEY # Present
34
+ ✅ FIGMA_ACCESS_TOKEN # Present
35
+ ```
36
+
37
+ ## Configuration Files
38
+
39
+ ### `.mcp.json` (Complete)
40
+
41
+ ```json
42
+ {
43
+ "mcpServers": {
44
+ "shadcn": {
45
+ "command": "npx",
46
+ "args": ["shadcn@latest", "mcp"]
47
+ },
48
+ "cloudflare-builds": {
49
+ "command": "npx",
50
+ "args": ["-y", "mcp-remote", "https://builds.mcp.cloudflare.com/sse"],
51
+ "env": {
52
+ "CLOUDFLARE_API_KEY": "${CLOUDFLARE_GLOBAL_API_KEY}",
53
+ "CLOUDFLARE_API_TOKEN": "${CLOUDFLARE_GLOBAL_API_KEY}"
54
+ }
55
+ },
56
+ "chrome-devtools": {
57
+ "command": "npx",
58
+ "args": ["-y", "chrome-devtools-mcp@latest"]
59
+ },
60
+ "claude": {
61
+ "command": "npx",
62
+ "args": ["-y", "@anthropic-ai/mcp-server-claude"],
63
+ "env": {
64
+ "ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}"
65
+ }
66
+ },
67
+ "framelink-figma": {
68
+ "command": "npx",
69
+ "args": [
70
+ "-y",
71
+ "figma-developer-mcp",
72
+ "--figma-api-key=${FIGMA_ACCESS_TOKEN}",
73
+ "--stdio"
74
+ ]
75
+ },
76
+ "astro-docs": {
77
+ "transport": "http",
78
+ "url": "https://mcp.docs.astro.build/mcp"
79
+ },
80
+ "stripe": {
81
+ "url": "https://mcp.stripe.com"
82
+ }
83
+ }
84
+ }
85
+ ```
86
+
87
+ ### `.nvmrc`
88
+
89
+ ```
90
+ 20.19.0
91
+ ```
92
+
93
+ ## Next Steps
94
+
95
+ ### 1. Upgrade Node.js (Required)
96
+
97
+ ```bash
98
+ # Option A: Using nvm (recommended)
99
+ nvm install 20.19.0
100
+ nvm use
101
+ nvm alias default 20.19.0
102
+
103
+ # Option B: Download from nodejs.org
104
+ # Visit: https://nodejs.org/
105
+ ```
106
+
107
+ ### 2. Verify Setup
108
+
109
+ ```bash
110
+ # Run the setup verification script
111
+ ./scripts/setup-mcp.sh
112
+
113
+ # Check Node version
114
+ node --version # Should show v20.19.0+
115
+ ```
116
+
117
+ ### 3. Restart Claude Code
118
+
119
+ After upgrading Node, restart Claude Code to reload the MCP configuration.
120
+
121
+ ## Available MCP Tools (After Restart)
122
+
123
+ ### Stripe MCP
124
+ - `mcp__stripe__search_stripe_documentation`
125
+ - `mcp__stripe__create_customer`
126
+ - `mcp__stripe__list_customers`
127
+ - `mcp__stripe__create_product`
128
+ - `mcp__stripe__create_price`
129
+ - `mcp__stripe__create_payment_link`
130
+ - ...and 20+ more Stripe tools
131
+
132
+ ### Claude MCP
133
+ - Enhanced AI capabilities
134
+ - Integration with Anthropic services
135
+ - Advanced development workflows
136
+
137
+ ### Framelink Figma MCP
138
+ - Access Figma files and designs
139
+ - Retrieve design tokens
140
+ - Export assets
141
+ - Developer-focused Figma integration
142
+
143
+ ### shadcn MCP
144
+ - Add UI components
145
+ - Search component registry
146
+ - Manage project configuration
147
+
148
+ ### Astro Docs MCP
149
+ - Search Astro documentation
150
+ - Get API references
151
+ - Access guides and tutorials
152
+ - Framework-specific help
153
+
154
+ ### Cloudflare Builds MCP (requires Node 20.19.0+)
155
+ - Monitor builds
156
+ - View deployment status
157
+ - Access build logs
158
+
159
+ ### Chrome DevTools MCP (requires Node 20.19.0+)
160
+ - Debug web applications
161
+ - Inspect DOM and styles
162
+ - Monitor network activity
163
+
164
+ ## Documentation
165
+
166
+ - **`MCP-CONFIGURATION.md`** - Complete MCP documentation
167
+ - **`scripts/setup-mcp.sh`** - Setup verification script
168
+ - **`.nvmrc`** - Node version specification
169
+
170
+ ## Key Features
171
+
172
+ ✅ **Auto-loading credentials from `.env`** - All API keys are automatically passed to MCPs
173
+ ✅ **Node version management** - `.nvmrc` ensures consistent Node version across team
174
+ ✅ **6 MCP servers enabled** - Stripe, shadcn, Cloudflare, Chrome DevTools, Claude, Figma
175
+ ✅ **Complete documentation** - Setup guides, troubleshooting, and usage examples
176
+ ✅ **Automated verification** - `setup-mcp.sh` checks all requirements
177
+
178
+ ## What Changed
179
+
180
+ ### Before
181
+ - ❌ Figma MCP using old remote endpoint (non-functional)
182
+ - ❌ No Claude MCP integration
183
+ - ❌ Manual credential management
184
+ - ❌ No Node version specification
185
+
186
+ ### After
187
+ - ✅ Framelink Figma MCP with developer tools
188
+ - ✅ Claude MCP for enhanced AI workflows
189
+ - ✅ Auto-loaded credentials from `.env`
190
+ - ✅ Node 20.19.0+ specified in `.nvmrc`
191
+ - ✅ All 6 MCPs properly configured
192
+
193
+ ## Summary
194
+
195
+ All MCP servers are configured and ready to use! Just:
196
+ 1. Upgrade to Node 20.19.0+ (`nvm use`)
197
+ 2. Restart Claude Code
198
+ 3. Start using `mcp__*` tools
199
+
200
+ Your `.env` already has all required API keys configured. 🎉
201
+
202
+ ---
203
+
204
+ **Last Updated:** 2025-10-22
205
+ **Configuration Version:** v2.0.0
@@ -0,0 +1,111 @@
1
+ # Node Version Upgrade Guide
2
+
3
+ ## Current Status
4
+
5
+ - **Configured for**: Node 22.16.0 (Cloudflare Pages v3 default)
6
+ - **Currently running**: Node 20.11.0
7
+ - **esbuild**: Rebuilt successfully with Node 20.11.0
8
+
9
+ ## Why Upgrade to Node 22.16.0?
10
+
11
+ 1. **Cloudflare Pages Compatibility**: Node 22.16.0 is the default for Cloudflare Pages v3 build system
12
+ 2. **Modern Dependencies**: Vite 7 and related tools work best with Node 22+
13
+ 3. **Performance**: Better performance and newer JavaScript features
14
+
15
+ ## How to Switch to Node 22.16.0
16
+
17
+ ### Method 1: Using the provided script
18
+
19
+ ```bash
20
+ cd /Users/toc/Server/ONE/web
21
+ ./switch-node.sh
22
+ ```
23
+
24
+ ### Method 2: Manual (if script fails due to npm prefix issue)
25
+
26
+ The current blocker is an npm prefix configuration conflict with nvm. Here's how to fix it:
27
+
28
+ ```bash
29
+ # Step 1: Check current npm config
30
+ npm config get prefix
31
+ # If it shows an empty string or non-standard path, continue
32
+
33
+ # Step 2: Edit .npmrc manually
34
+ nano ~/.npmrc
35
+ # Remove any lines with "prefix=" or add this line:
36
+ # prefix=/Users/toc/.nvm/versions/node/v22.16.0
37
+
38
+ # Step 3: Reload nvm
39
+ export NVM_DIR="$HOME/.nvm"
40
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
41
+
42
+ # Step 4: Use Node 22.16.0
43
+ nvm use 22.16.0
44
+
45
+ # Step 5: Verify
46
+ node --version # Should show v22.16.0
47
+
48
+ # Step 6: Rebuild esbuild
49
+ cd /Users/toc/Server/ONE
50
+ npm rebuild esbuild
51
+ ```
52
+
53
+ ### Method 3: Alternative - Use Node without nvm
54
+
55
+ If nvm continues to have issues, you can install Node directly:
56
+
57
+ ```bash
58
+ # Download Node 22.16.0 from nodejs.org
59
+ # Or use Homebrew:
60
+ brew install node@22
61
+
62
+ # Then rebuild esbuild
63
+ cd /Users/toc/Server/ONE
64
+ npm rebuild esbuild
65
+ ```
66
+
67
+ ## Current Configuration Files Updated
68
+
69
+ All configuration files have been updated to require Node 22.16.0:
70
+
71
+ - ✅ `.nvmrc` (root and web): `22.16.0`
72
+ - ✅ `package.json` engines (all 4 packages): `"node": ">=22.16.0"`
73
+ - ✅ `wrangler.toml`: `NODE_VERSION = "22.16.0"`
74
+
75
+ ## Development Server
76
+
77
+ The dev server now uses **dual adapter configuration**:
78
+
79
+ **Local Development** (Node 20.11.0 compatible):
80
+ - Uses `@astrojs/node` adapter (avoids miniflare EPIPE issues)
81
+ - No Cloudflare Workers simulation needed
82
+ - Full SSR support with Node.js runtime
83
+
84
+ **Production Builds** (NODE_ENV=production):
85
+ - Uses `@astrojs/cloudflare` adapter
86
+ - Builds for Cloudflare Workers runtime
87
+ - Cloudflare Pages will use Node 22.16.0 automatically
88
+
89
+ This approach gives you:
90
+ - ✅ Working local development on any Node version (20.11.0+)
91
+ - ✅ Optimal Cloudflare deployment (Node 22.16.0)
92
+ - ✅ No miniflare errors or version conflicts
93
+
94
+ ## Start Development
95
+
96
+ ```bash
97
+ cd /Users/toc/Server/ONE/web
98
+ bun run dev
99
+ ```
100
+
101
+ ## Deploy to Cloudflare
102
+
103
+ ```bash
104
+ # Build
105
+ bun run build
106
+
107
+ # Deploy
108
+ wrangler pages deploy dist --project-name=web --branch=main
109
+ ```
110
+
111
+ Cloudflare Pages will automatically use Node 22.16.0 for the build process.