Skip to content

Commit 1354767

Browse files
committed
Merge remote-tracking branch 'origin/main' into ochafik/swift-sdk
2 parents da0b36f + 9963d0f commit 1354767

File tree

20 files changed

+238
-220
lines changed

20 files changed

+238
-220
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157
mkdir test-project
158158
cd test-project
159159
npm init -y
160-
# Install from the PR branch
161-
npm install "git+https://github.com/${{ github.repository }}#${{ github.head_ref || github.ref_name }}"
160+
# Install from the PR branch (use head repo for fork PRs)
161+
npm install "git+https://github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }}#${{ github.head_ref || github.ref_name }}"
162162
# Verify the package is usable (ESM import)
163163
node --input-type=module -e "import { App } from '@modelcontextprotocol/ext-apps'; console.log('Import successful:', typeof App)"

examples/basic-host/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "1.0.0",
55
"type": "module",
66
"scripts": {
7-
"build": "concurrently \"cross-env INPUT=index.html vite build\" \"cross-env INPUT=sandbox.html vite build\"",
7+
"build": "tsc --noEmit && concurrently \"cross-env INPUT=index.html vite build\" \"cross-env INPUT=sandbox.html vite build\"",
88
"watch": "concurrently \"cross-env INPUT=index.html vite build --watch\" \"cross-env INPUT=sandbox.html vite build --watch\"",
99
"serve": "bun serve.ts",
1010
"start": "cross-env NODE_ENV=development npm run build && npm run serve",

examples/basic-server-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build": "cross-env INPUT=mcp-app.html vite build",
7+
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build",
88
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
99
"serve": "bun server.ts",
1010
"start": "cross-env NODE_ENV=development npm run build && npm run serve",

examples/basic-server-react/src/mcp-app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @file App that demonstrates a few features using MCP Apps SDK + React.
33
*/
4-
import type { App, McpUiResourceTeardownResult } from "@modelcontextprotocol/ext-apps";
4+
import type { App } from "@modelcontextprotocol/ext-apps";
55
import { useApp } from "@modelcontextprotocol/ext-apps/react";
66
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
77
import { StrictMode, useCallback, useEffect, useState } from "react";

examples/basic-server-vanillajs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build": "cross-env INPUT=mcp-app.html vite build",
7+
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build",
88
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
99
"serve": "bun server.ts",
1010
"start": "cross-env NODE_ENV=development npm run build && npm run serve",

examples/budget-allocator-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build": "cross-env INPUT=mcp-app.html vite build",
7+
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build",
88
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
99
"serve:http": "bun server.ts",
1010
"serve:stdio": "bun server.ts --stdio",

examples/cohort-heatmap-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build": "cross-env INPUT=mcp-app.html vite build",
7+
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build",
88
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
99
"serve:http": "bun server.ts",
1010
"serve:stdio": "bun server.ts --stdio",

examples/customer-segmentation-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build": "cross-env INPUT=mcp-app.html vite build",
7+
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build",
88
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
99
"serve:http": "bun server.ts",
1010
"serve:stdio": "bun server.ts --stdio",

examples/customer-segmentation-server/src/mcp-app.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44
import {
55
App,
6-
PostMessageTransport,
76
applyHostStyleVariables,
87
applyHostFonts,
98
applyDocumentTheme,

examples/scenario-modeler-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build": "cross-env INPUT=mcp-app.html vite build",
7+
"build": "tsc --noEmit && cross-env INPUT=mcp-app.html vite build",
88
"watch": "cross-env INPUT=mcp-app.html vite build --watch",
99
"serve:http": "bun server.ts",
1010
"serve:stdio": "bun server.ts --stdio",

0 commit comments

Comments
 (0)