- npm account: Create an account at https://www.npmjs.com/
- npm CLI: Make sure you have npm installed and are logged in:
npm login
- Set the correct version number
- Update repository URLs (replace with your actual GitHub repository)
- Verify author information
- Check keywords are relevant
# Build the project
npm run build
# Test the built version
node dist/index.js --help
node dist/index.js --version
# Test with npm pack (creates a tarball without publishing)
npm pack# See what files will be included in the package
npm publish --dry-run# Make sure you're logged in
npm whoami
# Build the project
npm run build
# Publish to npm (this will also run prepublishOnly script)
npm publish# Update version number
npm version patch # for bug fixes
npm version minor # for new features
npm version major # for breaking changes
# Build and publish
npm run build
npm publish# Test npx installation
npx summarai-mcp@latest --help
# Test global installation
npm install -g summarai-mcp@latest
summarai-mcp --versionAdd to your Claude Desktop configuration:
{
"mcpServers": {
"SummarAI": {
"command": "npx",
"args": ["-y", "summarai-mcp@latest", "--mcp"],
"env": {
"API_KEY": "your-api-key-here"
}
}
}
}- npm: https://www.npmjs.com/package/summarai-mcp
- GitHub: https://github.com/yourusername/summarai-mcp
- Permission denied: Make sure you're logged into npm with
npm login - Package name taken: Choose a different name in package.json
- Version already exists: Increment version number with
npm version patch
# Check if package name is available
npm view summarai-mcp
# Check your published versions
npm view summarai-mcp versions --json