Skip to main content
Glama

Memory Bank MCP

npm-publish.yml3 kB
name: Publish to NPM on: push: branches: - main permissions: contents: write packages: write jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: oven-sh/setup-bun@v1 with: bun-version: latest - run: bun install - run: bun run build - run: bun test publish-npm: needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 token: ${{ secrets.GITHUB_TOKEN }} - uses: oven-sh/setup-bun@v1 with: bun-version: latest - run: bun install - run: bun run build - name: Configure NPM run: | echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - name: Configure Git run: | git config --global user.name "GitHub Actions" git config --global user.email "actions@github.com" - name: Generate Changelog and Bump Version if: github.ref == 'refs/heads/main' run: | # Get the latest commit message COMMIT_MSG=$(git log -1 --pretty=%B) # Determine version bump type based on commit message if [[ "$COMMIT_MSG" == *"BREAKING CHANGE"* || "$COMMIT_MSG" == *"!:"* ]]; then echo "Detected breaking change, bumping major version" npx standard-version --release-as major elif [[ "$COMMIT_MSG" == *"feat:"* || "$COMMIT_MSG" == *"feat("* ]]; then echo "Detected new feature, bumping minor version" npx standard-version --release-as minor else echo "Bumping patch version" npx standard-version --release-as patch fi # Extract the new version number NEW_VERSION=$(node -p "require('./package.json').version") echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV # Extract the current version's changelog VERSION_HEADER="## $NEW_VERSION" RELEASE_NOTES=$(awk -v version="$VERSION_HEADER" '/^## [0-9]+\.[0-9]+\.[0-9]+/ {if (p) { exit }; if ($0 ~ version) { p=1; print; next }} p { print }' CHANGELOG.md) echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV echo "$RELEASE_NOTES" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV # Push changes back to the repository git push --follow-tags origin main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create GitHub Release uses: softprops/action-gh-release@v1 if: github.ref == 'refs/heads/main' with: tag_name: v${{ env.NEW_VERSION }} name: Release v${{ env.NEW_VERSION }} body: ${{ env.RELEASE_NOTES }} draft: false prerelease: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish to NPM run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

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/movibe/memory-bank-mcp'

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