Skip to content

Commit 2edca6d

Browse files
committed
Remove unrelated formatting and threejs changes from PR
1 parent 4509330 commit 2edca6d

71 files changed

Lines changed: 1127 additions & 1619 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ npm install -S @modelcontextprotocol/ext-apps
8484

8585
The SDK serves three roles: app developers building interactive Views, host developers embedding those Views, and MCP server authors registering tools with UI metadata.
8686

87-
| Package | Purpose | Docs |
88-
| ------------------------------------------- | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
89-
| `@modelcontextprotocol/ext-apps` | Build interactive Views (App class, PostMessageTransport) | [API Docs →](https://modelcontextprotocol.github.io/ext-apps/api/modules/app.html) |
90-
| `@modelcontextprotocol/ext-apps/react` | React hooks for Views (useApp, useHostStyles, etc.) | [API Docs →](https://modelcontextprotocol.github.io/ext-apps/api/modules/_modelcontextprotocol_ext-apps_react.html) |
91-
| `@modelcontextprotocol/ext-apps/app-bridge` | Embed and communicate with Views in your chat client | [API Docs →](https://modelcontextprotocol.github.io/ext-apps/api/modules/app-bridge.html) |
92-
| `@modelcontextprotocol/ext-apps/server` | Register tools and resources on your MCP server | [API Docs →](https://modelcontextprotocol.github.io/ext-apps/api/modules/server.html) |
87+
| Package | Purpose | Docs |
88+
|---------|---------|------|
89+
| `@modelcontextprotocol/ext-apps` | Build interactive Views (App class, PostMessageTransport) | [API Docs →](https://modelcontextprotocol.github.io/ext-apps/api/modules/app.html) |
90+
| `@modelcontextprotocol/ext-apps/react` | React hooks for Views (useApp, useHostStyles, etc.) | [API Docs →](https://modelcontextprotocol.github.io/ext-apps/api/modules/_modelcontextprotocol_ext-apps_react.html) |
91+
| `@modelcontextprotocol/ext-apps/app-bridge` | Embed and communicate with Views in your chat client | [API Docs →](https://modelcontextprotocol.github.io/ext-apps/api/modules/app-bridge.html) |
92+
| `@modelcontextprotocol/ext-apps/server` | Register tools and resources on your MCP server | [API Docs →](https://modelcontextprotocol.github.io/ext-apps/api/modules/server.html) |
9393

9494
There's no _supported_ host implementation in this repo (beyond the [examples/basic-host](https://github.com/modelcontextprotocol/ext-apps/tree/main/examples/basic-host) example).
9595

docs/index.html

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<meta http-equiv="refresh" content="0; url=api/" />
6-
<title>Redirecting...</title>
7-
</head>
8-
<body>
9-
<p>Redirecting to <a href="api/">API Documentation</a>...</p>
10-
<script>
11-
window.location.href = "api/";
12-
</script>
13-
</body>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="refresh" content="0; url=api/">
6+
<title>Redirecting...</title>
7+
</head>
8+
<body>
9+
<p>Redirecting to <a href="api/">API Documentation</a>...</p>
10+
<script>window.location.href = 'api/';</script>
11+
</body>
1412
</html>

docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Create [`mcp-app.html`](https://github.com/modelcontextprotocol/ext-apps/blob/ma
352352

353353
<!-- prettier-ignore -->
354354
```html source="../examples/quickstart/mcp-app.html"
355-
<!doctype html>
355+
<!DOCTYPE html>
356356
<html lang="en">
357357
<head>
358358
<meta charset="UTF-8" />

examples/basic-host/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<meta name="color-scheme" content="light dark" />
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta name="color-scheme" content="light dark">
77
<title>MCP Apps Host</title>
8-
<link rel="stylesheet" href="/src/global.css" />
8+
<link rel="stylesheet" href="/src/global.css">
99
</head>
1010
<body>
1111
<div id="root"></div>

examples/basic-host/sandbox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html>
33
<head>
44
<meta charset="utf-8" />
5-
<meta name="color-scheme" content="light dark" />
5+
<meta name="color-scheme" content="light dark">
66
<!-- CSP is set via HTTP headers by serve.ts (based on ?csp= query param).
77
The inner iframe inherits this CSP since we use document.write(). -->
88
<title>MCP-UI Proxy</title>

examples/basic-host/src/global.css

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,14 @@
2525
box-sizing: border-box;
2626
}
2727

28-
html,
29-
body {
28+
html, body {
3029
margin: 0;
3130
padding: 0;
32-
font-family:
33-
system-ui,
34-
-apple-system,
35-
sans-serif;
31+
font-family: system-ui, -apple-system, sans-serif;
3632
font-size: 1rem;
3733
background-color: var(--color-bg);
3834
color: var(--color-text);
39-
transition:
40-
background-color 0.2s,
41-
color 0.2s;
35+
transition: background-color 0.2s, color 0.2s;
4236
}
4337

4438
code {

examples/basic-host/src/index.module.css

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
font-size: 1.25rem;
1313
cursor: pointer;
1414
z-index: 1000;
15-
transition:
16-
background-color 0.2s,
17-
border-color 0.2s,
18-
transform 0.1s;
15+
transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
1916

2017
&:hover {
2118
background-color: var(--color-border);
@@ -26,8 +23,7 @@
2623
}
2724
}
2825

29-
.callToolPanel,
30-
.toolCallInfoPanel {
26+
.callToolPanel, .toolCallInfoPanel {
3127
margin: 0 auto;
3228
padding: 1rem;
3329
border: 1px solid var(--color-border);
@@ -110,10 +106,7 @@
110106
}
111107

112108
@keyframes slideDown {
113-
from {
114-
opacity: 0;
115-
transform: translateY(-12px);
116-
}
109+
from { opacity: 0; transform: translateY(-12px); }
117110
}
118111

119112
.appHeader {
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<meta name="color-scheme" content="light dark" />
7-
<title>Get Time App</title>
8-
<link rel="stylesheet" href="/src/global.css" />
9-
</head>
10-
<body>
11-
<div id="root"></div>
12-
<script type="module" src="/src/mcp-app.tsx"></script>
13-
</body>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta name="color-scheme" content="light dark">
7+
<title>Get Time App</title>
8+
<link rel="stylesheet" href="/src/global.css">
9+
</head>
10+
<body>
11+
<div id="root"></div>
12+
<script type="module" src="/src/mcp-app.tsx"></script>
13+
</body>
1414
</html>

examples/basic-server-preact/src/global.css

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@
1414
--color-ring-primary: light-dark(#3b82f6, #60a5fa);
1515
--border-radius-md: 6px;
1616
--border-width-regular: 1px;
17-
--font-sans:
18-
ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
19-
"Segoe UI Symbol", "Noto Color Emoji";
20-
--font-mono:
21-
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
22-
"Courier New", monospace;
17+
--font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
18+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
2319
--font-weight-normal: 400;
2420
--font-weight-bold: 700;
2521
--font-text-md-size: 1rem;
@@ -53,8 +49,7 @@
5349
box-sizing: border-box;
5450
}
5551

56-
html,
57-
body {
52+
html, body {
5853
font-family: var(--font-sans);
5954
font-size: var(--font-text-md-size);
6055
font-weight: var(--font-weight-normal);
@@ -87,14 +82,11 @@ h6 {
8782
line-height: var(--font-heading-sm-line-height);
8883
}
8984

90-
code,
91-
pre,
92-
kbd {
85+
code, pre, kbd {
9386
font-family: var(--font-mono);
9487
font-size: 1em;
9588
}
9689

97-
b,
98-
strong {
90+
b, strong {
9991
font-weight: var(--font-weight-bold);
10092
}

examples/basic-server-preact/src/mcp-app.module.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,11 @@
4949
cursor: pointer;
5050

5151
&:hover {
52-
background-color: color-mix(
53-
in srgb,
54-
var(--color-accent) 85%,
55-
var(--color-background-inverse)
56-
);
52+
background-color: color-mix(in srgb, var(--color-accent) 85%, var(--color-background-inverse));
5753
}
5854

5955
&:focus-visible {
60-
outline: calc(var(--border-width-regular) * 2) solid
61-
var(--color-ring-primary);
56+
outline: calc(var(--border-width-regular) * 2) solid var(--color-ring-primary);
6257
outline-offset: var(--border-width-regular);
6358
}
6459
}

0 commit comments

Comments
 (0)