Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Release

on:
push:
branches:
- main
workflow_dispatch:

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

jobs:
semantic-release:
runs-on: ubuntu-latest
outputs:
released: ${{ steps.release.outputs.released }}
tag: ${{ steps.release.outputs.tag }}
permissions:
contents: write
issues: write
pull-requests: write
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: true

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build --if-present

- name: Semantic release
id: release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
set -e
BEFORE=$(git describe --tags --abbrev=0 2>/dev/null || true)
npx semantic-release
AFTER=$(git describe --tags --abbrev=0 2>/dev/null || true)
if [ -n "$AFTER" ] && [ "$BEFORE" != "$AFTER" ]; then
echo "released=true" >> "$GITHUB_OUTPUT"
echo "tag=$AFTER" >> "$GITHUB_OUTPUT"
else
echo "released=false" >> "$GITHUB_OUTPUT"
fi

mcp-publish:
needs: semantic-release
if: needs.semantic-release.outputs.released == 'true'
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- name: Checkout tag
uses: actions/checkout@v5
with:
ref: ${{ needs.semantic-release.outputs.tag }}

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 'lts/*'

- name: Install dependencies
run: npm ci

- name: Build package
run: npm run build --if-present

- name: Install MCP Publisher
run: |
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.1.0/mcp-publisher_1.1.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher

- name: Login to MCP Registry
run: ./mcp-publisher login github-oidc

- name: Publish to MCP Registry
run: ./mcp-publisher publish
22 changes: 22 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": true
}
],
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
13 changes: 0 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
# Contributing

# Development

The `mcps-logger` package is used to redirect stdio logs into the console during development. To
enable the logger:

1. Set the `ENABLE_MCPS_LOGGER` env to `true`.

2. Build MCP server and run it with a client.

3. Run `npx mcps-logger` in a new terminal tab.

Now logs like `console.log("test")` should show up in the new terminal tab.
122 changes: 72 additions & 50 deletions README.md

Large diffs are not rendered by default.

Loading
Loading