We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/edicarloslds/businessmap-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
README.mdβ’2.38 KiB
# Publishing Scripts
This directory contains scripts to automate the release and publishing process of the BusinessMap MCP Server.
## Available Scripts
### π¦ `publish-npm.sh` β NPM Publish
Publishes the package to the NPM Registry.
**Usage:**
```bash
npm run publish:npm
```
**Features:**
- Automatically detects if the current version has already been published
- Automatically bumps the version when needed
- Runs build and tests automatically
- Publishes to NPM
**Prerequisites:**
- You must be logged in to NPM (`npm login`)
### π·οΈ `publish-github.sh` β GitHub Release
Creates a GitHub release with automatically generated release notes.
**Usage:**
```bash
npm run publish:github
```
**Features:**
- Automatically detects if the release already exists
- Automatically bumps the version when needed
- Automatically creates git tags
- Automatically generates release notes
- Automatically pushes tags to the remote repository
**Prerequisites:**
- GitHub CLI must be authenticated (`gh auth login`)
### π `generate-release-notes.sh` β Release Notes Generation
Generates release notes based on commits since the last tag.
**Usage:**
```bash
bash scripts/generate-release-notes.sh <version> [commit-range]
```
### π `preview-release-notes.sh` β Release Notes Preview
Previews the release notes that would be generated.
**Usage:**
```bash
npm run preview:release
```
## Workflows
### Option 1: Fully Automated Process
```bash
# NPM detects published version and offers automatic bump
npm run publish:npm
# GitHub detects existing release and offers automatic bump
npm run publish:github
```
### Option 2: Independent Flows
```bash
# Only publish to NPM (with automatic bump if needed)
npm run publish:npm
# Only create a GitHub release (with automatic bump if needed)
npm run publish:github
```
## Safety Features
- β **Lock files** prevent duplicate execution
- β **Validations** check authentication and repository state
- β **Automatic rollback** in case of errors during version bump
- β **Confirmations** before performing irreversible actions
- β **Automatic cleanup** removes lock files on exit
## Troubleshooting
### Script is already running
```bash
rm /tmp/businessmap-mcp-publish*.lock
```
### Manually revert a version bump
```bash
git tag -d v<version>
git reset --hard HEAD~1
```
### Preview the release notes
```bash
npm run preview:release
```