feat: Publish MCP server to npm as gsd-mcp-server v0.2.1#45
Conversation
Published the GSD Task Manager MCP Server to npm for easy installation and usage. Package is now available via npx without build steps. ## Changes **Package Publishing:** - Published to npm as `gsd-mcp-server` (unscoped package) - Deprecated `@vscarpenter/gsd-mcp-server` in favor of unscoped version - Version bumped to 0.2.1 with updated README **New Files:** - Added `.npmignore` to exclude test scripts and dev files from package - Added `LICENSE` file (MIT) required for npm publishing **Package Configuration:** - Updated `package.json` with npm metadata (repository, homepage, bugs) - Added `files` field to whitelist publishable content - Added `types` field for TypeScript declarations - Added `prepublishOnly` script for automatic builds - Enhanced keywords for better discoverability **Documentation Updates:** - Added Quick Start section with `npx gsd-mcp-server` usage - Added npm version and license badges - Updated installation instructions to prioritize published package - Included both npx and local build configurations - Updated all API URLs to production (https://gsd.vinny.dev) - Added publishing instructions to Development section - Enhanced troubleshooting for npx usage **Security Improvements:** - Updated `.gitignore` to exclude sensitive config files - Excluded test scripts with hardcoded credentials from package - Removed worker dev config file with sensitive data ## Package Details - Name: `gsd-mcp-server` - Version: 0.2.1 - Size: 16.5 kB (compressed), 57.8 kB (unpacked) - Installation: `npx gsd-mcp-server` - npm URL: https://www.npmjs.com/package/gsd-mcp-server 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
PR Review: Publishing MCP Server to npm (v0.2.1)✅ Overall AssessmentThis is a well-executed npm publishing PR that significantly improves the user experience. The changes are clean, security-conscious, and follow best practices for package publishing. 🎯 Strengths1. Security Improvements ⭐⭐⭐⭐⭐
2. Package Configuration
3. Documentation Quality
4. Migration Path
🔍 Issues & Recommendations🟡 MEDIUM: Missing Shebang Check in binIssue: The Check: Does
Recommendation:
# Test locally
npm pack
tar -xzf gsd-mcp-server-0.2.1.tgz
head -n1 package/dist/index.js # Should show #!/usr/bin/env node🟡 MEDIUM: .npmignore Overlap with
|
Summary
Published the GSD Task Manager MCP Server to npm for easy installation and usage. Users can now install and run the MCP server via
npx gsd-mcp-serverwithout any build steps.Published Package
gsd-mcp-servernpx gsd-mcp-serverChanges
Package Publishing
gsd-mcp-server(unscoped package for simplicity)@vscarpenter/gsd-mcp-serverin favor of unscoped versionNew Files
.npmignore- Excludes test scripts, dev files, and sensitive configs from published packageLICENSE- MIT license file required for npm publishingPackage Configuration (
package.json)filesfield to whitelist publishable content (dist/, README.md, LICENSE)typesfield for TypeScript declaration filesprepublishOnlyscript for automatic builds before publishDocumentation (
README.md)npx gsd-mcp-serverexamplenpxand local build Claude Desktop configurationshttps://gsd.vinny.dev)Security Improvements
.gitignore- Added patterns to exclude sensitive config files:**/claude-config.json(except examples)packages/mcp-server/test-*.sh(contain hardcoded credentials)packages/mcp-server/debug-*.sh(may contain tokens)worker/cf-dev-config.json(sensitive Worker config).npmignore- Prevents test scripts with hardcoded user IDs/tokens from being publishedworker/cf-dev-config.jsonfrom repository (contained sensitive data)Installation for Users
Before (v0.2.0)
After (v0.2.1)
# Just use npx - no installation needed! npx gsd-mcp-serverClaude Desktop Configuration
Users can now add to their config with:
{ "mcpServers": { "gsd-tasks": { "command": "npx", "args": ["-y", "gsd-mcp-server"], "env": { "GSD_API_URL": "https://gsd.vinny.dev", "GSD_AUTH_TOKEN": "your-jwt-token", "GSD_ENCRYPTION_PASSPHRASE": "your-passphrase" } } } }Testing
@vscarpenter/gsd-mcp-server) deprecated with redirect messagenpx gsd-mcp-serverBreaking Changes
None - this is purely additive. Users can still build from source if desired.
🤖 Generated with Claude Code