Basic information
About deploy-website
Deploy and serve web projects locally for preview. Automatically detects project type (Node.js or static HTML) and starts the appropriate development server.
deploy-website is an agent skill listed in the AddMCP.net directory, published by chaitin. Runtime: TypeScript. The repository has 559 GitHub stars. Source code is hosted on github.com. Related topics: ai, community, customer support, faq, forum.
Overview
What is deploy-website?
name: deploy-website description: Deploy and serve web projects locally for preview. Automatically detects project type (Node.js or static HTML) and starts the appropriate development server. arguments:
- name: workspace
description: Absolute path to the workspace directory to deploy required: false
Deploy Website
Automatically detect the project type and start the appropriate development server.
Detection Logic
- Node.js web project
- Look for
package.jsonin the workspace root - Check if it contains a
devorstartscript - Execute
npm run dev(ornpm startifdevis not available)
- Static website
- Look for
.htmlfiles in the workspace (especiallyindex.html) - Execute
python3 -m http.server 8000to serve static files
Workflow
# Step 1: Check if this is a Node.js project
if [ -f "package.json" ]; then
# Check for dev script
if grep -q '"dev"' package.json; then
npm run dev
elif grep -q '"start"' package.json; then
npm start
fi
# Step 2: Check for static HTML files
elif [ -f "index.html" ] || ls *.html 1> /dev/null 2>&1; then
python3 -m http.server 8000
fiNotes
- The server will run in the background or as a subagent task
- Default port for static server is 8000
- For Node.js projects, the port depends on the project configuration
- Make sure dependencies are installed (
npm install) before running Node.js projects
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In