Skip to main content
Glama
srthkdev

DBeaver MCP Server

by srthkdev
publish.shβ€’1.82 kB
#!/bin/bash # DBeaver MCP Server Publish Script # This script helps with publishing new versions to npm set -e echo "πŸš€ DBeaver MCP Server - Publishing to npm" echo "==========================================" # Check if we're in the right directory if [ ! -f "package.json" ]; then echo "❌ Error: package.json not found. Please run this script from the project root." exit 1 fi # Check if git is clean if [ -n "$(git status --porcelain)" ]; then echo "❌ Error: Git working directory is not clean. Please commit all changes first." echo "Current status:" git status --short exit 1 fi # Check if logged into npm if ! npm whoami > /dev/null 2>&1; then echo "❌ Error: Not logged into npm. Please run 'npm login' first." exit 1 fi echo "βœ… Git working directory is clean" echo "βœ… Logged into npm as: $(npm whoami)" # Determine version type if [ "$1" = "major" ]; then VERSION_TYPE="major" echo "πŸ“¦ Publishing MAJOR version" elif [ "$1" = "minor" ]; then VERSION_TYPE="minor" echo "πŸ“¦ Publishing MINOR version" else VERSION_TYPE="patch" echo "πŸ“¦ Publishing PATCH version" fi # Build and publish echo "πŸ”¨ Building project..." npm run build echo "πŸ“€ Publishing to npm..." # Use the direct npm publish command instead of the npm run publish script to avoid recursion if [ "$VERSION_TYPE" = "major" ]; then npm version major && npm publish elif [ "$VERSION_TYPE" = "minor" ]; then npm version minor && npm publish else npm version patch && npm publish fi echo "" echo "πŸŽ‰ Successfully published dbeaver-mcp-server!" echo "πŸ“‹ Package info:" npm info dbeaver-mcp-server version echo "" echo "πŸ”— Install with: npm install -g dbeaver-mcp-server@latest" echo "🌐 View on npm: https://www.npmjs.com/package/dbeaver-mcp-server"

Latest Blog Posts

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/srthkdev/dbeaver-mcp-server'

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