Skip to main content
Glama
PUBLISH_TO_NPM.mdโ€ข4.37 kB
# ๐Ÿ“ฆ Publishing to NPM Guide ## ๐Ÿš€ Ready to Publish! Your Enhanced Home Assistant MCP server is configured for npm publication under the `@thelord` scope. ### ๐Ÿ“‹ Pre-Publication Checklist - โœ… Package name: `@thelord/enhanced-homeassistant-mcp` - โœ… Author: `thelord` - โœ… Version: `1.0.0` - โœ… CLI interface ready - โœ… NPX support configured - โœ… TypeScript compiled - โœ… All tests passing - โœ… Documentation complete ### ๐Ÿ”ง Publication Steps #### 1. **Login to NPM** ```bash npm login # Enter your npm username: thelord # Enter your password: [your-password] # Enter your email: [your-email] ``` #### 2. **Verify Package Configuration** ```bash # Check package.json npm run build # Test locally npm pack # This creates @thelord-enhanced-homeassistant-mcp-1.0.0.tgz ``` #### 3. **Publish to NPM** ```bash # Publish the scoped package npm publish --access public # Or if you want to publish as beta first npm publish --tag beta --access public ``` #### 4. **Verify Publication** ```bash # Check if published npm view @thelord/enhanced-homeassistant-mcp # Test installation npx @thelord/enhanced-homeassistant-mcp help ``` ### ๐ŸŒŸ Usage After Publication Once published, users can use it immediately: ```bash # Set credentials export HOMEASSISTANT_URL="http://your-ha-ip:8123" export HOMEASSISTANT_TOKEN="your-token" # Run without installation npx @thelord/enhanced-homeassistant-mcp ``` ### ๐Ÿ“Š NPM Package Details ```json { "name": "@thelord/enhanced-homeassistant-mcp", "version": "1.0.0", "author": "thelord", "description": "Enhanced MCP server for Home Assistant with comprehensive API integration", "keywords": ["mcp", "home-assistant", "smart-home", "automation", "iot"], "license": "MIT" } ``` ### ๐Ÿ”„ Future Updates To publish updates: ```bash # Update version npm version patch # 1.0.0 โ†’ 1.0.1 npm version minor # 1.0.0 โ†’ 1.1.0 npm version major # 1.0.0 โ†’ 2.0.0 # Publish update npm publish ``` ### ๐ŸŽฏ Integration Examples #### Claude Desktop ```json { "mcpServers": { "homeassistant": { "command": "npx", "args": ["@thelord/enhanced-homeassistant-mcp"], "env": { "HOMEASSISTANT_URL": "http://your-ha-ip:8123", "HOMEASSISTANT_TOKEN": "your-token" } } } } ``` #### VS Code Settings ```json { "mcp.servers": { "homeassistant": { "command": "npx", "args": ["@thelord/enhanced-homeassistant-mcp"] } } } ``` ### ๐Ÿ“ˆ Marketing & Documentation #### NPM README Badge ```markdown [![npm version](https://badge.fury.io/js/@thelord%2Fenhanced-homeassistant-mcp.svg)](https://badge.fury.io/js/@thelord%2Fenhanced-homeassistant-mcp) [![npm downloads](https://img.shields.io/npm/dm/@thelord/enhanced-homeassistant-mcp.svg)](https://npmjs.org/package/@thelord/enhanced-homeassistant-mcp) ``` #### Key Features to Highlight - ๐Ÿš€ **52+ tools** for comprehensive Home Assistant control - ๐Ÿ”ง **Bulk operations** - Control multiple devices simultaneously - โญ **Favorites system** - Quick access to frequently used entities - ๐Ÿ” **Advanced search** - Filter entities with precision - ๐Ÿ“Š **Health dashboard** - Monitor system status - ๐Ÿ’ป **Zero installation** - Works with npx - ๐ŸŒ **Cross-platform** - Windows, macOS, Linux ### ๐Ÿ›ก๏ธ Security & Best Practices #### Environment Variables ```bash # Required HOMEASSISTANT_URL=http://your-ha-ip:8123 HOMEASSISTANT_TOKEN=your-long-lived-access-token # Optional DEBUG=false REQUEST_TIMEOUT=10000 ``` #### Claude Desktop Security - โœ… Environment variables isolated - โœ… No secrets in configuration files - โœ… Home Assistant token secured - โœ… HTTPS support ready ### ๐ŸŽ‰ Success Metrics After publication, track: - ๐Ÿ“Š **NPM downloads** - Weekly/monthly growth - ๐ŸŒŸ **GitHub stars** - Community interest - ๐Ÿ› **Issues opened** - User feedback - ๐Ÿ”„ **Update frequency** - Active maintenance - ๐Ÿ’ฌ **Community engagement** - Discussions and PRs ### ๐Ÿš€ Post-Publication TODO 1. **Create GitHub release** with changelog 2. **Update documentation** with npm links 3. **Submit to awesome lists** (MCP, Home Assistant) 4. **Create demo videos** for YouTube 5. **Write blog post** about features 6. **Share on social media** (Twitter, Reddit) 7. **Add to Claude Desktop docs** (if possible) **๐ŸŽฏ Your package is ready for the world! Publish when ready.**

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gilberth/enhanced-homeassistant-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server