Add frontend React app and server components

- Add React frontend with Excalidraw integration (App.jsx, main.jsx)
- Add Express server with MCP protocol support (server.js)
- Update CLI with new functionality (cli.js)
- Add Vite configuration for frontend build
- Update package.json with new dependencies
- Add public assets and build files
- Update .gitignore to exclude build artifacts
This commit is contained in:
ycsahara
2025-07-11 17:49:07 +00:00
parent 31c0dbd2d1
commit 1be9f3b47b
11 changed files with 2303 additions and 4 deletions
+18 -4
View File
@@ -10,25 +10,39 @@
"scripts": {
"start": "node src/index.js",
"dev": "nodemon src/index.js",
"server": "node src/server.js",
"server:dev": "nodemon src/server.js",
"frontend:dev": "vite",
"frontend:build": "vite build",
"frontend:preview": "vite preview",
"build": "npm run frontend:build",
"poc": "concurrently \"npm run server\" \"npm run frontend:dev\"",
"test": "jest",
"lint": "eslint src/**/*.js",
"build": "tsc",
"docker:build": "docker build -t mcp/excalidraw .",
"docker:run": "docker run -p 3000:3000 mcp/excalidraw",
"prepare": "node -e \"try { require('fs').chmodSync('./src/cli.js', '755') } catch(e) { console.log(e) }\""
},
"dependencies": {
"@excalidraw/excalidraw": "^0.18.0",
"@modelcontextprotocol/sdk": "latest",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"winston": "^3.11.0",
"ws": "^8.14.2",
"zod": "^3.22.4",
"zod-to-json-schema": "^3.22.3"
},
"devDependencies": {
"nodemon": "^3.0.2",
"@vitejs/plugin-react": "^4.6.0",
"concurrently": "^9.2.0",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"eslint": "^8.56.0"
"nodemon": "^3.0.2",
"vite": "^6.3.5"
},
"keywords": [
"mcp",
@@ -50,4 +64,4 @@
"README.md",
"LICENSE"
]
}
}