fa-mcp-sdk 0.12.6 → 0.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config/_local.yaml
CHANGED
|
@@ -133,6 +133,15 @@
|
|
|
133
133
|
</button>
|
|
134
134
|
</div>
|
|
135
135
|
|
|
136
|
+
<!-- MCP Apps mode toggle — placed before the mode (tab) switcher -->
|
|
137
|
+
<label id="appModeToggleLabel" class="app-mode-toggle" title="MCP Apps mode: advertises UI capability and renders widgets" data-testid="at-app-mode-toggle-label">
|
|
138
|
+
<input type="checkbox" id="appModeToggle" data-testid="at-app-mode-toggle">
|
|
139
|
+
<span class="app-mode-toggle-text">
|
|
140
|
+
<span class="material-icons-round app-mode-icon">grid_view</span>
|
|
141
|
+
<span class="app-mode-label">Apps</span>
|
|
142
|
+
</span>
|
|
143
|
+
</label>
|
|
144
|
+
|
|
136
145
|
<!-- Tabs moved into header -->
|
|
137
146
|
<div class="tabs-bar header-tabs" data-testid="at-tabs-bar">
|
|
138
147
|
<button type="button" class="tab-btn active" data-tab="chat" data-testid="at-tab-chat">
|
|
@@ -177,17 +186,6 @@
|
|
|
177
186
|
</form>
|
|
178
187
|
|
|
179
188
|
<div class="chat-actions">
|
|
180
|
-
<label id="appModeToggleLabel" class="app-mode-toggle" title="MCP Apps mode: advertises UI capability and renders widgets" data-testid="at-app-mode-toggle-label">
|
|
181
|
-
<input type="checkbox" id="appModeToggle" data-testid="at-app-mode-toggle">
|
|
182
|
-
<span class="app-mode-toggle-text">
|
|
183
|
-
<span class="material-icons-round app-mode-icon">grid_view</span>
|
|
184
|
-
<span class="app-mode-label">Apps</span>
|
|
185
|
-
</span>
|
|
186
|
-
</label>
|
|
187
|
-
<select id="defaultDisplayFormat" class="header-format-select chat-only" title="Default display format" data-testid="at-default-format">
|
|
188
|
-
<option value="HTML">HTML</option>
|
|
189
|
-
<option value="MD">MD</option>
|
|
190
|
-
</select>
|
|
191
189
|
<button id="clearChat" class="btn-icon chat-only" title="Clear Chat" data-testid="at-clear-chat">
|
|
192
190
|
<span class="material-icons-round">delete_outline</span>
|
|
193
191
|
</button>
|
|
@@ -204,6 +202,11 @@
|
|
|
204
202
|
<div class="tab-pane active" id="tabPaneChat" data-testid="at-tab-pane-chat">
|
|
205
203
|
<!-- Chat Messages -->
|
|
206
204
|
<div class="chat-container">
|
|
205
|
+
<!-- Floating HTML/MD display format toggle — applies to chat only -->
|
|
206
|
+
<select id="defaultDisplayFormat" class="chat-format-float" title="Default display format" data-testid="at-default-format">
|
|
207
|
+
<option value="HTML">HTML</option>
|
|
208
|
+
<option value="MD">MD</option>
|
|
209
|
+
</select>
|
|
207
210
|
<div id="chatMessages" class="chat-messages" data-testid="at-chat-messages">
|
|
208
211
|
<div class="message assistant welcome" data-testid="at-welcome-message">
|
|
209
212
|
<div class="message-avatar">
|
|
@@ -887,7 +887,12 @@ body {
|
|
|
887
887
|
display: none !important;
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
|
|
890
|
+
/* Floating HTML/MD display format toggle, pinned to the chat window's top-right */
|
|
891
|
+
.chat-format-float {
|
|
892
|
+
position: absolute;
|
|
893
|
+
top: 8px;
|
|
894
|
+
left: 8px;
|
|
895
|
+
z-index: 5;
|
|
891
896
|
font-size: 12px;
|
|
892
897
|
padding: 4px 6px;
|
|
893
898
|
border: 1px solid var(--border);
|
|
@@ -895,6 +900,13 @@ body {
|
|
|
895
900
|
background: var(--bg-surface);
|
|
896
901
|
color: var(--text-primary);
|
|
897
902
|
cursor: pointer;
|
|
903
|
+
opacity: 0.85;
|
|
904
|
+
box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.15));
|
|
905
|
+
transition: opacity 0.15s;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.chat-format-float:hover {
|
|
909
|
+
opacity: 1;
|
|
898
910
|
}
|
|
899
911
|
|
|
900
912
|
/* MCP Apps toggle — global, visible on every tab */
|
|
@@ -1290,12 +1302,14 @@ body {
|
|
|
1290
1302
|
overflow: auto;
|
|
1291
1303
|
}
|
|
1292
1304
|
|
|
1293
|
-
/* Inspector tab visibility tied to MCP Apps mode
|
|
1294
|
-
|
|
1305
|
+
/* Inspector tab visibility tied to MCP Apps mode.
|
|
1306
|
+
Specificity must beat the base `.tab-btn { display: inline-flex }` rule, so the
|
|
1307
|
+
hide selector is scoped under `.tabs-bar`. */
|
|
1308
|
+
.tabs-bar .app-only-tab {
|
|
1295
1309
|
display: none;
|
|
1296
1310
|
}
|
|
1297
1311
|
|
|
1298
|
-
.app.apps-mode-on .app-only-tab {
|
|
1312
|
+
.app.apps-mode-on .tabs-bar .app-only-tab {
|
|
1299
1313
|
display: inline-flex;
|
|
1300
1314
|
}
|
|
1301
1315
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fa-mcp-sdk",
|
|
3
3
|
"productName": "FA MCP SDK",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.8",
|
|
5
5
|
"description": "Core infrastructure and templates for building Model Context Protocol (MCP) servers with TypeScript",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/core/index.js",
|