Compare commits

..

4 commits

Author SHA1 Message Date
Glen Maddern
8aee4fc82f 0.1.5 2025-05-14 21:24:02 +10:00
Glen Maddern
f668a9b5e1 Picking a default port based on the server hash 2025-05-14 21:21:38 +10:00
Glen Maddern
5c3e4057b1 remove client info on conflict 2025-05-14 21:10:35 +10:00
Glen Maddern
97be4fadf9 Updated SDK version 2025-05-14 20:53:40 +10:00
3 changed files with 13 additions and 20 deletions

View file

@ -1,12 +1,11 @@
name: Publish Any Commit name: Publish Any Commit
on: on:
workflow_dispatch:
pull_request: pull_request:
push: push:
branches: branches:
- "**" - "**"
tags: tags:
- "v*" - "!**"
jobs: jobs:
build: build:
@ -16,18 +15,13 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 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 - name: Setup pnpm & install
uses: https://github.com/wyvox/action-setup-pnpm@v3 uses: wyvox/action-setup-pnpm@v3
with: with:
node-version: 22 node-version: 22
pnpm-version: 10
- name: Build - name: Build
run: pnpm build run: pnpm build
- run: pnpm dlx publish --compact --bin - run: pnpm dlx pkg-pr-new publish --compact --bin

View file

@ -46,11 +46,11 @@ To bypass authentication, or to emit custom headers on all requests to your remo
"https://remote.mcp.server/sse", "https://remote.mcp.server/sse",
"--header", "--header",
"Authorization: Bearer ${AUTH_TOKEN}" "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", "https://remote.mcp.server/sse",
"--header", "--header",
"Authorization:${AUTH_HEADER}" // note no spaces around ':' "Authorization:${AUTH_HEADER}" // note no spaces around ':'
], ]
"env": {
"AUTH_HEADER": "Bearer <auth-token>" // spaces OK in env vars
}
}, },
"env": {
"AUTH_HEADER": "Bearer <auth-token>" // spaces OK in env vars
}
``` ```
### Flags ### Flags

View file

@ -1,5 +1,5 @@
{ {
"name": "@kvant/mcp-remote", "name": "mcp-remote",
"version": "0.1.5", "version": "0.1.5",
"description": "Remote proxy for Model Context Protocol, allowing local-only clients to connect to remote servers using oAuth", "description": "Remote proxy for Model Context Protocol, allowing local-only clients to connect to remote servers using oAuth",
"keywords": [ "keywords": [
@ -31,7 +31,6 @@
"express": "^4.21.2", "express": "^4.21.2",
"open": "^10.1.0" "open": "^10.1.0"
}, },
"packageManager": "pnpm@10.11.0",
"devDependencies": { "devDependencies": {
"@modelcontextprotocol/sdk": "^1.11.2", "@modelcontextprotocol/sdk": "^1.11.2",
"@types/express": "^5.0.0", "@types/express": "^5.0.0",