Skip to content

Commit edc3788

Browse files
committed
Merge branch 'feat/mcp-ui-apps' into beta
2 parents 64d5ca7 + 1d9107d commit edc3788

File tree

5 files changed

+137
-11
lines changed

5 files changed

+137
-11
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,48 @@ jobs:
4343
id: changesets
4444
uses: changesets/action@v1
4545
with:
46-
# This expects you to have a script called release which does a build and a publish
47-
publish: pnpm release
4846
version: pnpm version
4947
commit: 'chore: version packages'
5048
title: 'chore: version packages'
5149
env:
5250
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
52+
- name: Publish mcp-use package with NPM_TOKEN
53+
if: steps.changesets.outputs.hasChangesets == 'false'
54+
run: |
55+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
56+
echo "📦 Publishing mcp-use with NPM_TOKEN..."
57+
cd packages/mcp-use && pnpm publish --access public --no-git-checks
58+
cd ../..
59+
rm -f .npmrc
60+
env:
5461
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62+
63+
- name: Publish other packages with NPM_TOKEN_ORG
64+
if: steps.changesets.outputs.hasChangesets == 'false'
65+
run: |
66+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_ORG }}" > .npmrc
67+
68+
# Publish in dependency order: inspector and create-mcp-use-app first, then cli
69+
echo "📦 Publishing @mcp-use/inspector with NPM_TOKEN_ORG..."
70+
cd packages/inspector && pnpm publish --access public --no-git-checks
71+
cd ../..
72+
73+
echo "📦 Publishing create-mcp-use-app with NPM_TOKEN_ORG..."
74+
cd packages/create-mcp-use-app && pnpm publish --access public --no-git-checks
75+
cd ../..
76+
77+
echo "📦 Publishing @mcp-use/cli with NPM_TOKEN_ORG..."
78+
cd packages/cli && pnpm publish --access public --no-git-checks
79+
cd ../..
80+
81+
rm -f .npmrc
82+
env:
83+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ORG }}
5584

5685
- name: Send Notification on Success
57-
if: steps.changesets.outputs.published == 'true'
86+
if: steps.changesets.outputs.hasChangesets == 'false'
5887
run: |
5988
echo "✅ Packages published successfully!"
60-
echo "Published packages: ${{ steps.changesets.outputs.publishedPackages }}"
89+
echo "📦 mcp-use published with NPM_TOKEN"
90+
echo "📦 Other packages published with NPM_TOKEN_ORG"

.github/workflows/release_beta.yml

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
name: Release Beta
2+
3+
on:
4+
push:
5+
branches:
6+
- beta
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release Beta
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
id-token: write
18+
steps:
19+
- name: Checkout Repo
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v3
26+
with:
27+
version: 10.6.1
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: 22
33+
cache: 'pnpm'
34+
registry-url: 'https://registry.npmjs.org'
35+
36+
- name: Install Dependencies
37+
run: pnpm install --frozen-lockfile
38+
39+
- name: Build Packages
40+
run: pnpm build
41+
42+
- name: Create Release Pull Request or Publish to npm
43+
id: changesets
44+
uses: changesets/action@v1
45+
with:
46+
version: pnpm version
47+
commit: 'chore: version packages (beta)'
48+
title: 'chore: version packages (beta)'
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
52+
- name: Publish mcp-use package with NPM_TOKEN (beta)
53+
if: steps.changesets.outputs.hasChangesets == 'false'
54+
run: |
55+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
56+
echo "📦 Publishing mcp-use@beta with NPM_TOKEN..."
57+
cd packages/mcp-use && pnpm publish --access public --no-git-checks --tag beta
58+
cd ../..
59+
rm -f .npmrc
60+
env:
61+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62+
63+
- name: Publish other packages with NPM_TOKEN_ORG (beta)
64+
if: steps.changesets.outputs.hasChangesets == 'false'
65+
run: |
66+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_ORG }}" > .npmrc
67+
68+
# Publish in dependency order: inspector and create-mcp-use-app first, then cli
69+
echo "📦 Publishing @mcp-use/inspector@beta with NPM_TOKEN_ORG..."
70+
cd packages/inspector && pnpm publish --access public --no-git-checks --tag beta
71+
cd ../..
72+
73+
echo "📦 Publishing create-mcp-use-app@beta with NPM_TOKEN_ORG..."
74+
cd packages/create-mcp-use-app && pnpm publish --access public --no-git-checks --tag beta
75+
cd ../..
76+
77+
echo "📦 Publishing @mcp-use/cli@beta with NPM_TOKEN_ORG..."
78+
cd packages/cli && pnpm publish --access public --no-git-checks --tag beta
79+
cd ../..
80+
81+
rm -f .npmrc
82+
env:
83+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ORG }}
84+
85+
- name: Send Notification on Success
86+
if: steps.changesets.outputs.hasChangesets == 'false'
87+
run: |
88+
echo "✅ Beta packages published successfully!"
89+
echo "📦 mcp-use@beta published with NPM_TOKEN"
90+
echo "📦 Other packages@beta published with NPM_TOKEN_ORG"
91+
echo ""
92+
echo "Install beta versions with:"
93+
echo " npm install mcp-use@beta"
94+
echo " npm install @mcp-use/cli@beta"
95+
echo " npm install @mcp-use/inspector@beta"
96+
echo " npm install create-mcp-use-app@beta"
97+

packages/create-mcp-use-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-mcp-use-app",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"type": "module",
55
"description": "Create MCP-Use apps with one command",
66
"author": "mcp-use, Inc.",

packages/inspector/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@mcp-use/inspector",
33
"type": "module",
4-
"version": "0.1.0",
4+
"version": "0.2.0",
55
"description": "MCP Inspector - A tool for inspecting and debugging MCP servers",
66
"author": "",
77
"license": "MIT",

packages/mcp-use/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "mcp-use",
33
"type": "module",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"packageManager": "[email protected]",
6-
"description": "A utility library for integrating Model Context Protocol (MCP) with LangChain, Zod, and related tools. Provides helpers for schema conversion, event streaming, and SDK usage.",
6+
"description": "Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents and Clients + MCP Servers with support for MCP-UI.",
77
"author": "mcp-use, Inc.",
88
"license": "MIT",
99
"homepage": "https://github.com/mcp-use/mcp-use-ts#readme",
@@ -17,7 +17,6 @@
1717
"keywords": [
1818
"MCP",
1919
"Model Context Protocol",
20-
"LangChain",
2120
"Zod",
2221
"schema",
2322
"SDK",
@@ -89,7 +88,7 @@
8988
"example:observability": "npm run build && node dist/examples/observability.js"
9089
},
9190
"peerDependencies": {
92-
"@mcp-use/inspector": "^0.1.0",
91+
"@mcp-use/inspector": "^0.2.0",
9392
"cors": "^2.8.5",
9493
"express": "^4.18.2",
9594
"langfuse": "^3.32.0",

0 commit comments

Comments
 (0)