Your MCP package is ready to publish! ✨
✅ Package: @coolver/home-assistant-mcp
✅ Version: 1.0.0
✅ Size: 10.8 kB (unpacked: 46.5 kB)
✅ Files: 15 files (source, types, README, LICENSE)
✅ Git: Initialized with 2 commits
✅ Build: Successful
Go to: https://github.com/new
- Repository name:
home-assistant-mcp - Description:
MCP server for Home Assistant integration with Cursor AI - Public (important for NPM!)
- DON'T add README, .gitignore, or LICENSE (we already have them)
cd /Users/Coolver_1/Projects/smart-home/home-assistant-mcp
# Add remote
git remote add origin https://github.com/Coolver/home-assistant-mcp.git
# Push
git branch -M main
git push -u origin main
# Create first release tag
git tag v1.0.0
git push origin v1.0.0If you don't have an NPM account:
- Go to https://www.npmjs.com/signup
- Create account
Then login:
npm login
# Enter your credentialscd /Users/Coolver_1/Projects/smart-home/home-assistant-mcp
# Publish to NPM
npm publish --access publicThat's it! 🎉
After publishing, test that it works:
# Install globally
npm install -g @coolver/home-assistant-mcp
# Or use with npx (no installation needed)
npx @coolver/home-assistant-mcpUsers will be able to install with:
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"home-assistant": {
"command": "npx",
"args": ["-y", "@coolver/home-assistant-mcp"],
"env": {
"HA_AGENT_URL": "http://homeassistant.local:8099",
"HA_TOKEN": "their_token_here"
}
}
}
}npm install -g @coolver/home-assistant-mcpThen in ~/.cursor/mcp.json:
{
"mcpServers": {
"home-assistant": {
"command": "npx",
"args": ["-y", "@coolver/home-assistant-mcp@latest"],
"env": {
"HA_AGENT_URL": "http://homeassistant.local:8099",
"HA_TOKEN": "their_token_here"
}
}
}
}- NPM page: https://www.npmjs.com/package/@coolver/home-assistant-mcp
- GitHub: https://github.com/Coolver/home-assistant-mcp
- Downloads: https://npm-stat.com/charts.html?package=@coolver/home-assistant-mcp
- Go to: https://github.com/Coolver/home-assistant-mcp/releases/new
- Tag:
v1.0.0 - Title:
MCP Home Assistant v1.0.0 - Description: Copy from CHANGELOG.md
- Publish release
When you want to update:
cd /Users/Coolver_1/Projects/smart-home/home-assistant-mcp
# Make your changes...
# Update version
npm version patch # 1.0.0 -> 1.0.1
# Build
npm run build
# Commit
git add -A
git commit -m "v1.0.1: Description of changes"
git push
# Publish
npm publish --access public
# Tag
git tag v1.0.1
git push origin v1.0.1What you have:
- ✅ Complete MCP package ready for NPM
- ✅ Professional README with examples
- ✅ MIT License
- ✅ TypeScript with type definitions
- ✅ Git repository initialized
- ✅ Build scripts configured
- ✅ Package size optimized (10.8 kB)
What's needed:
- Create GitHub repository
- Push code to GitHub
- Publish to NPM (
npm publish --access public)
Time needed: 5-10 minutes ⏱️
- NPM 2FA: Enable for security (
npm profile enable-2fa) - Watch downloads: Use npm-stat.com
- GitHub Actions: Set up CI/CD for auto-publishing
- Badges: Add download/version badges to README
Ready to publish? 🚀
# 1. Create GitHub repo (web)
# 2. Push to GitHub
git remote add origin https://github.com/Coolver/home-assistant-mcp.git
git push -u origin main
git tag v1.0.0 && git push origin v1.0.0
# 3. Publish to NPM
npm login
npm publish --access public
# Done! 🎉