-
Notifications
You must be signed in to change notification settings - Fork 103
feat: align with MCP 2026-07-28 #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ccbbccbb
wants to merge
7
commits into
main
Choose a base branch
from
ccbbccbb/mcp-2026-07-28-upgrade
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
36db810
feat: align with MCP 2026-07-28
ccbbccbb a1067d9
fix: harden MCP authorization and tool contracts
ccbbccbb 749010d
chore: refresh stable MCP migration dependencies
ccbbccbb 8a393d0
fix: complete stable MCP transport interoperability
ccbbccbb 89cd75c
ci: gate MCP releases on transport and runtime checks
ccbbccbb 48df803
fix: bound HTTP bodies before MCP adapter conversion
ccbbccbb 67e11cf
fix: enforce exact amounts and browser MCP interoperability
ccbbccbb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Check | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| node: [20, 22, 24, 26] | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: actions/setup-node@v7 | ||
| with: | ||
| node-version: ${{ matrix.node }} | ||
| - uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version: '1.4.2' | ||
| - name: Install locked dependencies | ||
| run: bun install --frozen-lockfile | ||
| - name: Check types, build and test both transports | ||
| run: bun run check | ||
| - name: Verify package contents | ||
| run: npm pack --dry-run --ignore-scripts | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,10 @@ on: | |
| default: 'latest' | ||
| type: string | ||
|
|
||
| concurrency: | ||
| group: release-${{ github.ref }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| release-and-publish: | ||
| runs-on: ubuntu-latest | ||
|
|
@@ -35,24 +39,24 @@ jobs: | |
| id-token: write | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ secrets.PAT_GITHUB }} | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| uses: actions/setup-node@v7 | ||
| with: | ||
| node-version: '18.x' | ||
| node-version: '24.x' | ||
| registry-url: 'https://registry.npmjs.org' | ||
|
|
||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v1 | ||
| uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version: latest | ||
| bun-version: '1.4.2' | ||
|
|
||
| - name: Install dependencies | ||
| run: bun install | ||
| run: bun install --frozen-lockfile | ||
|
|
||
| - name: Configure Git | ||
| run: | | ||
|
|
@@ -62,42 +66,32 @@ jobs: | |
|
|
||
| - name: Bump version | ||
| id: bump_version | ||
| env: | ||
| CUSTOM_VERSION: ${{ inputs.custom_version }} | ||
| VERSION_TYPE: ${{ inputs.version_type }} | ||
| run: | | ||
| if [ -n "${{ github.event.inputs.custom_version }}" ]; then | ||
| echo "Using custom version ${{ github.event.inputs.custom_version }}" | ||
| npm version ${{ github.event.inputs.custom_version }} --no-git-tag-version | ||
| echo "VERSION=${{ github.event.inputs.custom_version }}" >> $GITHUB_ENV | ||
| else | ||
| echo "Bumping ${{ github.event.inputs.version_type }} version" | ||
| NEW_VERSION=$(npm version ${{ github.event.inputs.version_type }} --no-git-tag-version) | ||
| echo "VERSION=${NEW_VERSION:1}" >> $GITHUB_ENV | ||
| fi | ||
| echo "New version: ${{ env.VERSION }}" | ||
| npm version "${CUSTOM_VERSION:-$VERSION_TYPE}" --no-git-tag-version | ||
| VERSION=$(node -p "JSON.parse(require('fs').readFileSync('package.json', 'utf8')).version") | ||
| echo "VERSION=$VERSION" >> "$GITHUB_ENV" | ||
| bun install --lockfile-only | ||
|
|
||
| - name: Generate Changelog | ||
| run: | | ||
| npm run changelog | ||
| npm run changelog:latest | ||
|
|
||
| - name: Build project | ||
| run: bun run build && bun run build:http | ||
|
|
||
| - name: Commit and push changes | ||
| run: | | ||
| git pull origin main --no-edit | ||
| git add package.json CHANGELOG.md | ||
| git commit -m "Bump version to v${{ env.VERSION }}" | ||
| git push --force-with-lease | ||
| - name: Check types, build and test before release | ||
| run: bun run check | ||
|
|
||
| - name: Create and push tag | ||
| - name: Commit and tag the verified release | ||
| run: | | ||
| git tag -d "v${{ env.VERSION }}" 2>/dev/null || true | ||
| git push origin --delete "v${{ env.VERSION }}" 2>/dev/null || true | ||
| git tag -a "v${{ env.VERSION }}" -m "Release v${{ env.VERSION }}" | ||
| git push origin "v${{ env.VERSION }}" | ||
| git add package.json bun.lock CHANGELOG.md | ||
| git commit -m "chore: release v$VERSION" | ||
| git tag -a "v$VERSION" -m "Release v$VERSION" | ||
| git push --atomic origin "HEAD:refs/heads/$GITHUB_REF_NAME" "refs/tags/v$VERSION" | ||
|
|
||
| - name: Create GitHub Release | ||
| uses: softprops/action-gh-release@v1 | ||
| uses: softprops/action-gh-release@v3 | ||
| with: | ||
| tag_name: v${{ env.VERSION }} | ||
| name: Release v${{ env.VERSION }} | ||
|
|
@@ -107,7 +101,8 @@ jobs: | |
| GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }} | ||
|
|
||
| - name: Publish to npm | ||
| run: npm publish --access public --provenance --tag ${{ github.event.inputs.dist_tag || 'latest' }} | ||
| run: npm publish --ignore-scripts --access public --provenance --tag "$DIST_TAG" | ||
| env: | ||
| DIST_TAG: ${{ inputs.dist_tag || 'latest' }} | ||
| # Restored the token here to ensure it works | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Leftover note to self. |
||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The upgrade doc lists four release checks and
bun auditis one of them. Neither this workflow norrelease-publish.ymlruns it.