dsh-mcp 1.14.0 → 1.14.2

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.
@@ -23,24 +23,6 @@
23
23
  gap: 8px;
24
24
  }
25
25
 
26
- .row input {
27
- box-sizing: border-box;
28
- border: 1px solid var(--dsw-alias-border-l2);
29
- border-radius: 6px;
30
- padding: 5px 8px;
31
- outline: none;
32
- background: var(--dsw-alias-bg-layer-1);
33
- color: var(--dsw-alias-label-primary);
34
- font: inherit;
35
- font-size: 13px;
36
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
37
- }
38
-
39
- .row input:focus-visible {
40
- border-color: var(--dsw-alias-brand-primary);
41
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-brand-primary) 18%, transparent);
42
- }
43
-
44
26
  .name {
45
27
  width: 100%;
46
28
  }
@@ -61,10 +43,6 @@
61
43
  user-select: none;
62
44
  }
63
45
 
64
- .secretToggle input {
65
- cursor: pointer;
66
- }
67
-
68
46
  .secretToggle.secretOn {
69
47
  color: var(--dsw-alias-brand-primary);
70
48
  font-weight: 600;
@@ -135,22 +113,6 @@
135
113
  gap: 10px;
136
114
  }
137
115
 
138
- .retryRow button {
139
- border: 1px solid var(--dsw-alias-border-l2);
140
- border-radius: 6px;
141
- padding: 3px 10px;
142
- background: transparent;
143
- color: var(--dsw-alias-label-primary);
144
- font: inherit;
145
- font-size: 12px;
146
- line-height: 18px;
147
- cursor: pointer;
148
- }
149
-
150
- .retryRow button:hover {
151
- background: var(--dsw-alias-interactive-bg-hover);
152
- }
153
-
154
116
  .error {
155
117
  margin: 0;
156
118
  color: var(--dsw-alias-state-error-primary);
@@ -171,34 +133,3 @@
171
133
  justify-content: flex-end;
172
134
  gap: 8px;
173
135
  }
174
-
175
- .actions button {
176
- border: 1px solid var(--dsw-alias-border-l2);
177
- border-radius: 6px;
178
- padding: 5px 12px;
179
- background: transparent;
180
- color: var(--dsw-alias-label-primary);
181
- font: inherit;
182
- font-size: 13px;
183
- line-height: 20px;
184
- cursor: pointer;
185
- }
186
-
187
- .actions button:hover {
188
- background: var(--dsw-alias-interactive-bg-hover);
189
- }
190
-
191
- .actions button:disabled {
192
- cursor: not-allowed;
193
- opacity: 0.55;
194
- }
195
-
196
- .actions .primary {
197
- border-color: var(--dsw-alias-button-primary-fill);
198
- background: var(--dsw-alias-button-primary-fill);
199
- color: var(--dsw-alias-label-primary-foreground);
200
- }
201
-
202
- .actions .primary:hover {
203
- background: var(--dsw-alias-button-primary-hover);
204
- }
@@ -9,6 +9,7 @@
9
9
  import { useEffect, useRef, useState, type ReactNode } from 'react'
10
10
  import type { McpEnvVarView } from './types.ts'
11
11
  import type { McpSettingsLocaleKey } from './locales.ts'
12
+ import controls from './controls.module.css'
12
13
  import css from './GlobalEnvEditor.module.css'
13
14
 
14
15
  /** One editable row in the editor. */
@@ -185,7 +186,7 @@ export function GlobalEnvEditor({ injected, t, onApplied }: GlobalEnvEditorProps
185
186
  <div key={row.key} className={css.row}>
186
187
  <input
187
188
  type="text"
188
- className={css.name}
189
+ className={`${controls.control} ${controls.controlMono} ${css.name}`}
189
190
  value={row.name}
190
191
  placeholder={t('globalEnvName')}
191
192
  aria-label={t('globalEnvName')}
@@ -193,7 +194,7 @@ export function GlobalEnvEditor({ injected, t, onApplied }: GlobalEnvEditorProps
193
194
  />
194
195
  <input
195
196
  type={row.secret ? 'password' : 'text'}
196
- className={css.value}
197
+ className={`${controls.control} ${controls.controlMono} ${css.value}`}
197
198
  value={row.value}
198
199
  placeholder={row.secret && row.configured ? '••••••••' : t('globalEnvValue')}
199
200
  aria-label={t('globalEnvValue')}
@@ -202,13 +203,14 @@ export function GlobalEnvEditor({ injected, t, onApplied }: GlobalEnvEditorProps
202
203
  <label className={`${css.secretToggle} ${row.secret ? css.secretOn : ''}`} title={t('globalEnvSecretHint')}>
203
204
  <input
204
205
  type="checkbox"
206
+ className={controls.checkbox}
205
207
  checked={row.secret}
206
208
  aria-label={t('globalEnvSecret')}
207
209
  onChange={(event) => update(row.key, { secret: event.currentTarget.checked })}
208
210
  />
209
211
  {t('globalEnvSecret')}
210
212
  </label>
211
- <button type="button" className={css.danger} aria-label={t('globalEnvRemove')} onClick={() => remove(row.key)}>
213
+ <button type="button" className={`${controls.button} ${css.danger}`} aria-label={t('globalEnvRemove')} onClick={() => remove(row.key)}>
212
214
  ✕
213
215
  </button>
214
216
  </div>
@@ -216,15 +218,15 @@ export function GlobalEnvEditor({ injected, t, onApplied }: GlobalEnvEditorProps
216
218
  {loadFailed ? (
217
219
  <div className={css.retryRow}>
218
220
  <p className={css.error} role="alert">{t('globalEnvLoadFailed')}</p>
219
- <button type="button" onClick={reload}>{t('globalEnvRetry')}</button>
221
+ <button type="button" className={`${controls.button} ${controls.buttonSmall}`} onClick={reload}>{t('globalEnvRetry')}</button>
220
222
  </div>
221
223
  ) : null}
222
224
  {error !== null && !loadFailed ? <p className={css.error} role="alert">{error}</p> : null}
223
225
  {notice !== null ? <p className={css.notice} role="status">{notice}</p> : null}
224
226
  <div className={css.actions}>
225
- <button type="button" disabled={busy} onClick={add}>{t('globalEnvAdd')}</button>
226
- <button type="button" disabled={busy} onClick={() => setBulkOpen(true)}>{t('globalEnvBulk')}</button>
227
- <button type="button" className={css.primary} disabled={busy} onClick={save}>
227
+ <button type="button" className={controls.button} disabled={busy} onClick={add}>{t('globalEnvAdd')}</button>
228
+ <button type="button" className={controls.button} disabled={busy} onClick={() => setBulkOpen(true)}>{t('globalEnvBulk')}</button>
229
+ <button type="button" className={`${controls.button} ${controls.primary}`} disabled={busy} onClick={save}>
228
230
  {busy ? t('globalEnvSaving') : t('globalEnvSave')}
229
231
  </button>
230
232
  </div>
@@ -243,8 +245,8 @@ export function GlobalEnvEditor({ injected, t, onApplied }: GlobalEnvEditorProps
243
245
  onChange={(event) => setBulkText(event.currentTarget.value)}
244
246
  />
245
247
  <div className={css.actions}>
246
- <button type="button" onClick={() => setBulkOpen(false)}>{t('cancel')}</button>
247
- <button type="button" className={css.primary} onClick={applyBulk}>{t('globalEnvBulkOk')}</button>
248
+ <button type="button" className={controls.button} onClick={() => setBulkOpen(false)}>{t('cancel')}</button>
249
+ <button type="button" className={`${controls.button} ${controls.primary}`} onClick={applyBulk}>{t('globalEnvBulkOk')}</button>
248
250
  </div>
249
251
  </div>
250
252
  </div>
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .status,
17
- .failure p {
17
+ .failureText {
18
18
  margin: 0;
19
19
  }
20
20
 
@@ -32,41 +32,9 @@
32
32
  color: var(--dsw-alias-state-error-primary);
33
33
  }
34
34
 
35
- button {
36
- border: 1px solid var(--dsw-alias-border-l2);
37
- border-radius: 6px;
38
- padding: 5px 12px;
39
- background: transparent;
40
- color: var(--dsw-alias-label-primary);
41
- font: inherit;
42
- font-size: 13px;
43
- line-height: 20px;
44
- cursor: pointer;
45
- }
46
-
47
- button:hover {
48
- background: var(--dsw-alias-interactive-bg-hover);
49
- }
50
-
51
- button:focus-visible {
52
- outline: 2px solid var(--dsw-alias-brand-primary);
53
- outline-offset: 1px;
54
- }
55
-
56
- button:disabled {
57
- cursor: not-allowed;
58
- opacity: 0.55;
59
- }
60
-
61
- .primary {
62
- border-color: var(--dsw-alias-button-primary-fill);
63
- background: var(--dsw-alias-button-primary-fill);
64
- color: var(--dsw-alias-label-primary-foreground);
65
- }
66
-
67
- .primary:hover {
68
- background: var(--dsw-alias-button-primary-hover);
69
- }
35
+ /* Control styling lives in class form in ./controls.module.css; these are the
36
+ section's own variants. No rule may match an element by tag: the sheets are
37
+ injected into the host page globally (issue #14). */
70
38
 
71
39
  .active {
72
40
  border-color: var(--dsw-alias-brand-primary);
@@ -10,6 +10,7 @@ import { GlobalEnvEditor, type GlobalEnvRemote } from './GlobalEnvEditor.tsx'
10
10
  import type { McpToolControlRemote } from './ToolControlSection.tsx'
11
11
  import type { McpSettingsLocaleKey } from './locales.ts'
12
12
  import { createMcpManagerStore, type McpDraft, type McpTestOutcome } from './mcp-store.ts'
13
+ import controls from './controls.module.css'
13
14
  import css from './McpSettingsSection.module.css'
14
15
 
15
16
  /** One adopt/release attempt: a business failure, or an advisory note. */
@@ -416,10 +417,10 @@ export function McpSettingsSection(props: McpSettingsSectionProps): ReactNode {
416
417
  if (state.loadState === 'error') {
417
418
  return (
418
419
  <div className={css.failure}>
419
- <p role="alert">{t('loadError')}</p>
420
- {hostMissing ? <p className={css.muted}>{t('loadErrorHostMissing')}</p> : null}
420
+ <p className={css.failureText} role="alert">{t('loadError')}</p>
421
+ {hostMissing ? <p className={`${css.muted} ${css.failureText}`}>{t('loadErrorHostMissing')}</p> : null}
421
422
  {loadErrorDetail !== null ? <pre className={css.muted}>{loadErrorDetail}</pre> : null}
422
- <button type="button" onClick={() => { setLoadState('loading'); load() }}>{t('retry')}</button>
423
+ <button type="button" className={controls.button} onClick={() => { setLoadState('loading'); load() }}>{t('retry')}</button>
423
424
  </div>
424
425
  )
425
426
  }
@@ -484,7 +485,7 @@ export function McpSettingsSection(props: McpSettingsSectionProps): ReactNode {
484
485
  <div className={css.module}>
485
486
  <button
486
487
  type="button"
487
- className={css.moduleTitle}
488
+ className={`${controls.button} ${css.moduleTitle}`}
488
489
  aria-expanded={envOpen}
489
490
  onClick={() => setEnvOpen(open => !open)}
490
491
  >
@@ -511,13 +512,13 @@ export function McpSettingsSection(props: McpSettingsSectionProps): ReactNode {
511
512
  <div className={css.configActions}>
512
513
  <button
513
514
  type="button"
514
- className={jsonOpen ? css.active : undefined}
515
+ className={jsonOpen ? `${controls.button} ${css.active}` : controls.button}
515
516
  aria-expanded={jsonOpen}
516
517
  onClick={() => setJsonOpen(open => !open)}
517
518
  >
518
519
  {t('serversJson')}
519
520
  </button>
520
- <button type="button" className={css.primary} onClick={beginCreate}>{t('addServer')}</button>
521
+ <button type="button" className={`${controls.button} ${controls.primary}`} onClick={beginCreate}>{t('addServer')}</button>
521
522
  </div>
522
523
  </div>
523
524
  {actionError !== null ? (
@@ -651,7 +652,7 @@ export function McpSettingsSection(props: McpSettingsSectionProps): ReactNode {
651
652
  </div>
652
653
  <div className={css.rowActions}>
653
654
  {declared || server.conflict || server.pendingTakeover ? null : (
654
- <button type="button" disabled={isRefreshing} onClick={() => void toggleEnabled(server)}>
655
+ <button type="button" className={controls.button} disabled={isRefreshing} onClick={() => void toggleEnabled(server)}>
655
656
  {server.enabled ? t('disable') : t('enabled')}
656
657
  </button>
657
658
  )}
@@ -663,31 +664,31 @@ export function McpSettingsSection(props: McpSettingsSectionProps): ReactNode {
663
664
  {oauthNeedsAuth && !server.conflict && !server.pendingTakeover ? (
664
665
  <button
665
666
  type="button"
666
- className={oauthBlocks ? css.dangerButton : undefined}
667
+ className={oauthBlocks ? `${controls.button} ${css.dangerButton}` : controls.button}
667
668
  onClick={() => void runOAuth(server)}
668
669
  >
669
670
  {oauthInFlight ? t('oauthInProgress') : t('oauthAuthorize')}
670
671
  </button>
671
672
  ) : null}
672
673
  {declared ? null : (
673
- <button type="button" disabled={isRefreshing} onClick={() => refreshServer(server.serverName)}>
674
+ <button type="button" className={controls.button} disabled={isRefreshing} onClick={() => refreshServer(server.serverName)}>
674
675
  {isRefreshing ? t('refreshing') : t('refresh')}
675
676
  </button>
676
677
  )}
677
678
  {declared && server.adoptable ? (
678
- <button type="button" disabled={adopting.has(server.serverName)} onClick={() => void runAdopt(server)}>
679
+ <button type="button" className={controls.button} disabled={adopting.has(server.serverName)} onClick={() => void runAdopt(server)}>
679
680
  {adopting.has(server.serverName) ? t('adopting') : t('adopt')}
680
681
  </button>
681
682
  ) : null}
682
683
  {server.adopted ? (
683
- <button type="button" disabled={adopting.has(server.serverName)} onClick={() => void runAdopt(server)}>
684
+ <button type="button" className={controls.button} disabled={adopting.has(server.serverName)} onClick={() => void runAdopt(server)}>
684
685
  {adopting.has(server.serverName) ? t('releasing') : t('release')}
685
686
  </button>
686
687
  ) : null}
687
- <button type="button" onClick={() => toggleExpand(server.serverName)}>
688
+ <button type="button" className={controls.button} onClick={() => toggleExpand(server.serverName)}>
688
689
  {isExpanded ? t('toolsCollapse') : t('toolsExpand')}
689
690
  </button>
690
- {declared ? null : <button type="button" onClick={() => beginEdit(server)}>{t('edit')}</button>}
691
+ {declared ? null : <button type="button" className={controls.button} onClick={() => beginEdit(server)}>{t('edit')}</button>}
691
692
  </div>
692
693
  </div>
693
694
  {isExpanded ? (
@@ -26,41 +26,9 @@
26
26
  gap: 8px;
27
27
  }
28
28
 
29
- button {
30
- border: 1px solid var(--dsw-alias-border-l2);
31
- border-radius: 6px;
32
- padding: 5px 12px;
33
- background: transparent;
34
- color: var(--dsw-alias-label-primary);
35
- font: inherit;
36
- font-size: 13px;
37
- line-height: 20px;
38
- cursor: pointer;
39
- }
40
-
41
- button:hover {
42
- background: var(--dsw-alias-interactive-bg-hover);
43
- }
44
-
45
- button:focus-visible {
46
- outline: 2px solid var(--dsw-alias-brand-primary);
47
- outline-offset: 1px;
48
- }
49
-
50
- button:disabled {
51
- cursor: not-allowed;
52
- opacity: 0.55;
53
- }
54
-
55
- .primary {
56
- border-color: var(--dsw-alias-button-primary-fill);
57
- background: var(--dsw-alias-button-primary-fill);
58
- color: var(--dsw-alias-label-primary-foreground);
59
- }
60
-
61
- .primary:hover {
62
- background: var(--dsw-alias-button-primary-hover);
63
- }
29
+ /* Control styling lives in class form in ./controls.module.css; this module
30
+ only keeps its own layout and modifiers, and it must never match an element
31
+ by tag (the sheets are injected into the host page globally, issue #14). */
64
32
 
65
33
  .danger {
66
34
  color: var(--dsw-alias-state-error-primary);
@@ -82,34 +50,6 @@ button:disabled {
82
50
  color: var(--dsw-alias-label-secondary);
83
51
  }
84
52
 
85
- .field input,
86
- .field select,
87
- .field textarea {
88
- width: 100%;
89
- box-sizing: border-box;
90
- border: 1px solid var(--dsw-alias-border-l2);
91
- border-radius: 8px;
92
- padding: 6px 10px;
93
- outline: none;
94
- background: var(--dsw-alias-bg-layer-1);
95
- color: var(--dsw-alias-label-primary);
96
- font: inherit;
97
- font-size: 13px;
98
- resize: vertical;
99
- }
100
-
101
- .field input::placeholder,
102
- .field textarea::placeholder {
103
- color: var(--dsw-alias-label-tertiary);
104
- }
105
-
106
- .field input:focus-visible,
107
- .field select:focus-visible,
108
- .field textarea:focus-visible {
109
- border-color: var(--dsw-alias-brand-primary);
110
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--dsw-alias-brand-primary) 18%, transparent);
111
- }
112
-
113
53
  .hint,
114
54
  .muted {
115
55
  margin: 0;
@@ -7,6 +7,7 @@ import type {
7
7
  } from './mcp-store.ts'
8
8
  import { parseArgs } from './mcp-store.ts'
9
9
  import type { McpSettingsLocaleKey } from './locales.ts'
10
+ import controls from './controls.module.css'
10
11
  import css from './ServerForm.module.css'
11
12
 
12
13
  /** Poll interval of the authorization status while a flow is pending. */
@@ -179,9 +180,9 @@ export function McpServerForm(props: McpServerFormProps): ReactNode {
179
180
  <div className={css.titleRow}>
180
181
  <h3 className={css.title}>{draft.id === null ? t('newTitle') : t('editTitle')}</h3>
181
182
  <div className={css.titleActions}>
182
- <button type="button" onClick={() => actions.cancelEdit()}>{t('backToList')}</button>
183
+ <button type="button" className={controls.button} onClick={() => actions.cancelEdit()}>{t('backToList')}</button>
183
184
  {draft.id !== null ? (
184
- <button type="button" className={css.danger} disabled={busy !== null} onClick={() => void removeServer()}>
185
+ <button type="button" className={`${controls.button} ${css.danger}`} disabled={busy !== null} onClick={() => void removeServer()}>
185
186
  {busy === 'remove' ? t('removing') : t('remove')}
186
187
  </button>
187
188
  ) : null}
@@ -194,6 +195,7 @@ export function McpServerForm(props: McpServerFormProps): ReactNode {
194
195
  <span>{t('serverName')}</span>
195
196
  <input
196
197
  type="text"
198
+ className={controls.control}
197
199
  value={draft.serverName}
198
200
  placeholder={t('serverNameHint')}
199
201
  onChange={(event) => update({ serverName: event.currentTarget.value })}
@@ -203,6 +205,7 @@ export function McpServerForm(props: McpServerFormProps): ReactNode {
203
205
  <label className={css.field}>
204
206
  <span>{t('transport')}</span>
205
207
  <select
208
+ className={controls.control}
206
209
  value={draft.transport}
207
210
  onChange={(event) => update({ transport: event.currentTarget.value as McpDraft['transport'] })}
208
211
  >
@@ -217,6 +220,7 @@ export function McpServerForm(props: McpServerFormProps): ReactNode {
217
220
  <span>{t('command')}</span>
218
221
  <input
219
222
  type="text"
223
+ className={controls.control}
220
224
  value={draft.command}
221
225
  placeholder={t('commandPlaceholder')}
222
226
  onChange={(event) => update({ command: event.currentTarget.value })}
@@ -225,6 +229,7 @@ export function McpServerForm(props: McpServerFormProps): ReactNode {
225
229
  <label className={css.field}>
226
230
  <span>{t('args')}</span>
227
231
  <textarea
232
+ className={controls.control}
228
233
  rows={3}
229
234
  value={draft.argsText}
230
235
  placeholder={t('argsPlaceholder')}
@@ -241,6 +246,7 @@ export function McpServerForm(props: McpServerFormProps): ReactNode {
241
246
  <span>{t('cwd')}</span>
242
247
  <input
243
248
  type="text"
249
+ className={controls.control}
244
250
  value={draft.cwd}
245
251
  placeholder={t('cwdPlaceholder')}
246
252
  onChange={(event) => update({ cwd: event.currentTarget.value })}
@@ -254,6 +260,7 @@ export function McpServerForm(props: McpServerFormProps): ReactNode {
254
260
  <span>{t('url')}</span>
255
261
  <input
256
262
  type="url"
263
+ className={controls.control}
257
264
  value={draft.url}
258
265
  placeholder={t('urlPlaceholder')}
259
266
  onChange={(event) => update({ url: event.currentTarget.value })}
@@ -262,6 +269,7 @@ export function McpServerForm(props: McpServerFormProps): ReactNode {
262
269
  <label className={css.field}>
263
270
  <span>{t('headers')}</span>
264
271
  <textarea
272
+ className={controls.control}
265
273
  rows={2}
266
274
  value={draft.headersText}
267
275
  placeholder={t('headersPlaceholder')}
@@ -275,6 +283,7 @@ export function McpServerForm(props: McpServerFormProps): ReactNode {
275
283
  <span>{t('toolCallTimeoutMs')}</span>
276
284
  <input
277
285
  type="number"
286
+ className={controls.control}
278
287
  min={1}
279
288
  value={draft.toolCallTimeoutMs}
280
289
  onChange={(event) => update({ toolCallTimeoutMs: event.currentTarget.value })}
@@ -336,13 +345,13 @@ export function McpServerForm(props: McpServerFormProps): ReactNode {
336
345
  ) : null}
337
346
 
338
347
  <div className={css.actions}>
339
- <button type="button" disabled={testRunning || busy !== null} onClick={() => void runTest()}>
348
+ <button type="button" className={controls.button} disabled={testRunning || busy !== null} onClick={() => void runTest()}>
340
349
  {testRunning ? t('testRunning') : t('test')}
341
350
  </button>
342
- <button type="submit" className={css.primary} disabled={busy !== null || testRunning}>
351
+ <button type="submit" className={`${controls.button} ${controls.primary}`} disabled={busy !== null || testRunning}>
343
352
  {busy === 'save' ? t('saving') : t('save')}
344
353
  </button>
345
- <button type="button" disabled={busy !== null} onClick={() => actions.cancelEdit()}>{t('cancel')}</button>
354
+ <button type="button" className={controls.button} disabled={busy !== null} onClick={() => actions.cancelEdit()}>{t('cancel')}</button>
346
355
  </div>
347
356
  </form>
348
357
  )
@@ -57,34 +57,3 @@
57
57
  justify-content: flex-end;
58
58
  gap: 8px;
59
59
  }
60
-
61
- .actions button {
62
- border: 1px solid var(--dsw-alias-border-l2);
63
- border-radius: 6px;
64
- padding: 5px 12px;
65
- background: transparent;
66
- color: var(--dsw-alias-label-primary);
67
- font: inherit;
68
- font-size: 13px;
69
- line-height: 20px;
70
- cursor: pointer;
71
- }
72
-
73
- .actions button:hover {
74
- background: var(--dsw-alias-interactive-bg-hover);
75
- }
76
-
77
- .actions button:disabled {
78
- cursor: not-allowed;
79
- opacity: 0.55;
80
- }
81
-
82
- .actions .primary {
83
- border-color: var(--dsw-alias-button-primary-fill);
84
- background: var(--dsw-alias-button-primary-fill);
85
- color: var(--dsw-alias-label-primary-foreground);
86
- }
87
-
88
- .actions .primary:hover {
89
- background: var(--dsw-alias-button-primary-hover);
90
- }
@@ -26,6 +26,7 @@
26
26
  import { useEffect, useRef, useState, type ReactNode } from 'react'
27
27
  import type { McpServerView } from './types.ts'
28
28
  import type { McpSettingsLocaleKey } from './locales.ts'
29
+ import controls from './controls.module.css'
29
30
  import css from './ServersJsonEditor.module.css'
30
31
 
31
32
  /** One { server, env } entry submitted to the Host's upsertJson. */
@@ -239,8 +240,8 @@ export function ServersJsonEditor({ injected, t, onApplied }: ServersJsonEditorP
239
240
  {error !== null ? <p className={css.error} role="alert">{error}</p> : null}
240
241
  {notice !== null ? <p className={css.notice} role="status">{notice}</p> : null}
241
242
  <div className={css.actions}>
242
- <button type="button" disabled={busy} onClick={reseed}>{t('serversJsonReseed')}</button>
243
- <button type="button" className={css.primary} disabled={busy} onClick={apply}>
243
+ <button type="button" className={controls.button} disabled={busy} onClick={reseed}>{t('serversJsonReseed')}</button>
244
+ <button type="button" className={`${controls.button} ${controls.primary}`} disabled={busy} onClick={apply}>
244
245
  {busy ? t('serversJsonSaving') : t('serversJsonApply')}
245
246
  </button>
246
247
  </div>
@@ -30,7 +30,7 @@
30
30
  color: var(--dsw-alias-label-secondary);
31
31
  }
32
32
 
33
- .mode label {
33
+ .modeOption {
34
34
  display: inline-flex;
35
35
  align-items: center;
36
36
  gap: 4px;
@@ -38,10 +38,6 @@
38
38
  user-select: none;
39
39
  }
40
40
 
41
- .mode input {
42
- margin: 0;
43
- }
44
-
45
41
  .hint {
46
42
  margin: 0;
47
43
  font-size: 12px;
@@ -75,7 +71,7 @@
75
71
  line-height: 18px;
76
72
  }
77
73
 
78
- .row input {
74
+ .toolSwitch {
79
75
  flex: none;
80
76
  margin: 0;
81
77
  }
@@ -11,6 +11,7 @@ import type {
11
11
  McpToolInjectionMode, McpToolView, McpToolsState,
12
12
  } from './types.ts'
13
13
  import type { McpSettingsLocaleKey } from './locales.ts'
14
+ import controls from './controls.module.css'
14
15
  import css from './ToolControlSection.module.css'
15
16
 
16
17
  /** Host Remote face required by this section. */
@@ -86,6 +87,7 @@ export function ToolControlSection({ injected, t }: ToolControlSectionProps): Re
86
87
  <label key={tool.name} className={css.row} title={tool.name}>
87
88
  <input
88
89
  type="checkbox"
90
+ className={css.toolSwitch}
89
91
  checked={tool.enabled}
90
92
  onChange={() => toggle(tool)}
91
93
  />
@@ -101,7 +103,7 @@ export function ToolControlSection({ injected, t }: ToolControlSectionProps): Re
101
103
  <h3 className={css.title}>{t('toolsTitle')}</h3>
102
104
  <div className={css.mode}>
103
105
  <span className={css.modeLabel}>{t('toolsModeLabel')}</span>
104
- <label>
106
+ <label className={css.modeOption}>
105
107
  <input
106
108
  type="radio"
107
109
  name="mcp-tool-mode"
@@ -110,7 +112,7 @@ export function ToolControlSection({ injected, t }: ToolControlSectionProps): Re
110
112
  />
111
113
  {t('toolsModeFull')}
112
114
  </label>
113
- <label>
115
+ <label className={css.modeOption}>
114
116
  <input
115
117
  type="radio"
116
118
  name="mcp-tool-mode"