diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c58f197..005fbc3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,11 +1,12 @@ name: Publish Any Commit on: + workflow_dispatch: pull_request: push: branches: - "**" tags: - - "!**" + - "v*" jobs: build: @@ -14,14 +15,19 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + + - name: Add git.kvant.cloud scope + run: npm config set @kvant:registry=https://git.kvant.cloud/api/packages/${{ github.repository_owner }}/npm/ + + - name: Login to git.kvant.cloud npm + run: npm config set -- '//git.kvant.cloud/api/packages/${{ github.repository_owner }}/npm/:_authToken' "${{ secrets.PHOENIX_PACKAGE_WRITER_TOKEN }}" - name: Setup pnpm & install - uses: wyvox/action-setup-pnpm@v3 + uses: https://github.com/wyvox/action-setup-pnpm@v3 with: node-version: 22 - pnpm-version: 10 - name: Build run: pnpm build - - run: pnpm dlx pkg-pr-new publish --compact --bin + - run: pnpm dlx publish --compact --bin diff --git a/README.md b/README.md index bc70b15..bc0a4a7 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,11 @@ To bypass authentication, or to emit custom headers on all requests to your remo "https://remote.mcp.server/sse", "--header", "Authorization: Bearer ${AUTH_TOKEN}" - ] + ], + "env": { + "AUTH_TOKEN": "..." + } }, - "env": { - "AUTH_TOKEN": "..." - } } } ``` @@ -65,11 +65,11 @@ To bypass authentication, or to emit custom headers on all requests to your remo "https://remote.mcp.server/sse", "--header", "Authorization:${AUTH_HEADER}" // note no spaces around ':' - ] + ], + "env": { + "AUTH_HEADER": "Bearer " // spaces OK in env vars + } }, -"env": { - "AUTH_HEADER": "Bearer " // spaces OK in env vars -} ``` ### Flags diff --git a/package.json b/package.json index b7f3f7f..bf4892f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "mcp-remote", + "name": "@kvant/mcp-remote", "version": "0.1.5", "description": "Remote proxy for Model Context Protocol, allowing local-only clients to connect to remote servers using oAuth", "keywords": [ @@ -31,6 +31,7 @@ "express": "^4.21.2", "open": "^10.1.0" }, + "packageManager": "pnpm@10.11.0", "devDependencies": { "@modelcontextprotocol/sdk": "^1.11.2", "@types/express": "^5.0.0",