@omercnet/paseo-omp 5.3.0 → 5.4.0-next.391.1

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/OVERVIEW.md CHANGED
@@ -11,6 +11,7 @@ OMP adds an agent provider for the OMP coding agent, plus an OMP sidebar and wor
11
11
  - Edit OMP settings and project configuration for the default store or a named profile.
12
12
  - Manage OMP's own plugins, and view quota history, memory, hub processes, session history and a support report.
13
13
  - List the logins in OMP's own credential store, add or sign one out, spend a banked reset, and steer how OMP balances agents across them, from the **Accounts** tab.
14
+ - List the MCP servers OMP connects to, add, test, enable, disable or remove them, and authorize a remote server through your browser, from the **MCPs** tab.
14
15
  - An **MCP** composer control runs OMP's MCP management in the current session, with authorization prompts shown in the chat.
15
16
  - While OMP subagents run, a row under each `task` card in the conversation lets you steer one with a message or stop it after confirmation. It needs OMP 18.4.9 or newer.
16
17
  - OMP agents can call Paseo's orchestration tools with the optional `serverId` argument and `list_hosts` to delegate work to other connected Paseo hosts.
package/README.md CHANGED
@@ -31,10 +31,12 @@ paseo plugin install npm:@omercnet/paseo-omp@<version>
31
31
  paseo plugin ls paseo-omp
32
32
  ```
33
33
 
34
- Open the **OMP** sidebar to review the provider-profile contract, choose which composer pills appear, browse and edit native scalar settings, manage OMP-native plugins, verify runtime health, and generate a bounded support report under **Help**. The same tabs are available in the workspace OMP panel, except for the global Composer preference and Accounts tabs. Then create an agent and select **OMP Plugin**. Its optional **MCP** composer control runs OMP-native management commands in the current session; setup questions and authorization stay in that chat timeline, where OAuth can open in a workspace-scoped Paseo Browser or on the current device. While OMP subagents run, a row under each `task` card in the conversation lets you steer or stop one of them; this needs OMP 18.4.9 or newer. Composer pill preferences are shared by clients connected to the same host; normal use requires no other plugin-specific settings.
34
+ Open the **OMP** sidebar to review the provider-profile contract, choose which composer pills appear, browse and edit native scalar settings, manage OMP-native plugins, verify runtime health, and generate a bounded support report under **Help**. The same tabs are available in the workspace OMP panel, except for the global Composer preference and the Accounts and MCPs tabs. Then create an agent and select **OMP Plugin**. Its optional **MCP** composer control runs OMP-native management commands in the current session; setup questions and authorization stay in that chat timeline, where OAuth can open in a workspace-scoped Paseo Browser or on the current device. While OMP subagents run, a row under each `task` card in the conversation lets you steer or stop one of them; this needs OMP 18.4.9 or newer. Composer pill preferences are shared by clients connected to the same host; normal use requires no other plugin-specific settings.
35
35
 
36
36
  Open the **Accounts** tab of the **OMP** sidebar to see the logins in OMP's own credential store with their usage and banked resets, add a login through OMP's own sign-in, sign one out, spend a banked reset, and steer OMP's balancing: prefer a login, keep part of its quota in reserve, and set what OMP does at a limit. Steering is written to OMP's own config. See [OMP accounts](docs/configuration.md#omp-accounts).
37
37
 
38
+ Open the **MCPs** tab of the **OMP** sidebar to list the MCP servers OMP connects to, add one by URL or command, test, enable, disable or remove it, and sign a remote server in through your browser, like **Accounts** does for logins. See [OMP MCP servers](docs/configuration.md#omp-mcp-servers).
39
+
38
40
  - [Install, update, rollback, and local development](docs/installation.md)
39
41
  - [Configuration and every provider option](docs/configuration.md)
40
42
  - [Compatibility, limitations, and support](SUPPORT.md)
@@ -2,7 +2,9 @@ import { type PluginSurfaceProps, useRpc } from "@getpaseo/plugin/client";
2
2
  import {
3
3
  Icon,
4
4
  Modal,
5
+ SettingsAction,
5
6
  SettingsCard,
7
+ SettingsInput,
6
8
  SettingsSelect,
7
9
  TextInput,
8
10
  useToast,
@@ -54,7 +56,7 @@ type SignInState =
54
56
  | { kind: "failed"; message: string }
55
57
  | { kind: "login"; id: string };
56
58
 
57
- function describe(error: unknown): string {
59
+ export function describe(error: unknown): string {
58
60
  return error instanceof Error ? error.message : String(error);
59
61
  }
60
62
 
@@ -71,7 +73,7 @@ interface ActionButtonProps {
71
73
  disabled?: boolean;
72
74
  }
73
75
 
74
- function ActionButton({ styles, theme, label, onPress, tone, disabled }: ActionButtonProps) {
76
+ export function ActionButton({ styles, theme, label, onPress, tone, disabled }: ActionButtonProps) {
75
77
  const dangerBorder = tone === "danger" ? { borderColor: theme.colors.statusDanger } : null;
76
78
  const dangerText = tone === "danger" ? { color: theme.colors.statusDanger } : null;
77
79
  return (
@@ -384,7 +386,7 @@ function SteeringSettingsCard({
384
386
  );
385
387
  }
386
388
 
387
- function ConfirmModal({
389
+ export function ConfirmModal({
388
390
  styles,
389
391
  theme,
390
392
  title,
@@ -477,33 +479,67 @@ function ProviderPicker({
477
479
  );
478
480
  }
479
481
 
480
- function LoginProgress({
482
+ /** Owns the pasted text, so it is dropped with the input instead of lingering unseen. */
483
+ function CodeEntry({
484
+ placeholder,
485
+ error,
486
+ submitting,
487
+ onSubmit,
488
+ onEdit,
489
+ }: {
490
+ placeholder: string;
491
+ error: string | null;
492
+ submitting: boolean;
493
+ onSubmit(code: string): void;
494
+ /** The pasted text changed, so the last attempt's error no longer describes it. */
495
+ onEdit(): void;
496
+ }) {
497
+ const [code, setCode] = useState("");
498
+ return (
499
+ <SettingsCard>
500
+ <SettingsInput
501
+ label="Signing in on another device?"
502
+ hint="Paste the address of the page that failed to load after signing in, or the code"
503
+ placeholder={placeholder}
504
+ error={error}
505
+ onChangeText={(value) => {
506
+ setCode(value);
507
+ if (error) onEdit();
508
+ }}
509
+ />
510
+ <SettingsAction
511
+ label="Finish sign-in"
512
+ actionLabel={submitting ? "Continuing..." : "Continue"}
513
+ disabled={submitting || code.trim() === ""}
514
+ onPress={() => onSubmit(code)}
515
+ />
516
+ </SettingsCard>
517
+ );
518
+ }
519
+
520
+ export function LoginProgress({
481
521
  styles,
482
- theme,
483
522
  login,
484
523
  onSubmit,
485
524
  onRetry,
486
525
  onClose,
487
526
  }: {
488
527
  styles: OmpConfigStyles;
489
- theme: Theme;
490
- login: OmpLogin;
528
+ login: Omit<OmpLogin, "provider">;
491
529
  onSubmit(code: string): Promise<void>;
492
530
  onRetry(): void;
493
531
  onClose(): void;
494
532
  }) {
495
533
  const toast = useToast();
496
- const [code, setCode] = useState("");
497
534
  const [submitting, setSubmitting] = useState(false);
498
535
  const [codeError, setCodeError] = useState<string | null>(null);
499
536
  const url = login.url;
500
537
 
501
- async function submit() {
538
+ async function submit(code: string) {
502
539
  setSubmitting(true);
503
540
  setCodeError(null);
504
541
  try {
505
542
  await onSubmit(code);
506
- setCode("");
507
543
  } catch (error) {
508
544
  setCodeError(describe(error));
509
545
  } finally {
@@ -513,92 +549,54 @@ function LoginProgress({
513
549
 
514
550
  if (login.step === "done") {
515
551
  return (
516
- <>
517
- <Text style={styles.cardTitle}>You're signed in</Text>
518
- <Text style={styles.rowValue}>OMP agents on this host can use the login now.</Text>
519
- <View style={[styles.row, { justifyContent: "flex-end" }]}>
520
- <ActionButton
521
- styles={styles}
522
- theme={theme}
523
- label="Done"
524
- tone="primary"
525
- onPress={onClose}
526
- />
527
- </View>
528
- </>
552
+ <SettingsCard>
553
+ <SettingsAction
554
+ label="You're signed in"
555
+ hint="OMP agents on this host can use the login now"
556
+ actionLabel="Done"
557
+ onPress={onClose}
558
+ />
559
+ </SettingsCard>
529
560
  );
530
561
  }
531
562
  if (login.step === "failed" || login.step === "canceled") {
563
+ const failed = login.step === "failed";
532
564
  return (
533
- <>
534
- <Text style={login.step === "failed" ? styles.error : styles.muted}>
535
- {login.message ?? "Sign-in did not finish"}
536
- </Text>
537
- <View style={[styles.row, { justifyContent: "flex-end" }]}>
538
- <ActionButton styles={styles} theme={theme} label="Close" onPress={onClose} />
539
- <ActionButton
540
- styles={styles}
541
- theme={theme}
542
- label="Try again"
543
- tone="primary"
544
- onPress={onRetry}
545
- />
546
- </View>
547
- </>
565
+ <SettingsCard>
566
+ <SettingsAction
567
+ label={failed ? "Sign-in did not finish" : "Sign-in was canceled"}
568
+ hint={failed ? undefined : (login.message ?? undefined)}
569
+ error={failed ? (login.message ?? "Sign-in did not finish") : null}
570
+ actionLabel="Try again"
571
+ onPress={onRetry}
572
+ />
573
+ </SettingsCard>
548
574
  );
549
575
  }
550
576
  if (login.step === "starting") return <Text style={styles.muted}>Preparing sign-in...</Text>;
551
577
  if (login.step === "verifying") return <Text style={styles.muted}>Checking the login...</Text>;
552
578
  return (
553
579
  <>
554
- <Text style={styles.cardTitle}>1. Open the sign-in page</Text>
555
- <Text style={styles.muted}>Sign in with the account you want to add.</Text>
556
- {login.instructions ? <Text style={styles.rowValue}>{login.instructions}</Text> : null}
557
- <View style={styles.row}>
558
- <ActionButton
559
- styles={styles}
560
- theme={theme}
561
- label="Open sign-in page"
562
- tone="primary"
580
+ <SettingsCard>
581
+ <SettingsAction
582
+ label="Open the sign-in page"
583
+ hint={login.instructions ?? "Finish signing in on the page that opens"}
584
+ actionLabel="Open"
563
585
  disabled={url === null}
564
586
  onPress={() => {
565
587
  if (url)
566
588
  openOmpExternalUrl(url).catch((error: unknown) => toast.error(describe(error)));
567
589
  }}
568
590
  />
569
- </View>
591
+ </SettingsCard>
570
592
  {login.codePrompt ? (
571
- <>
572
- <Text style={styles.cardTitle}>
573
- 2. Not on this host's computer? Paste what the page shows
574
- </Text>
575
- <Text style={styles.muted}>
576
- On the host's computer sign-in finishes by itself. Anywhere else, paste the code, or the
577
- address of the page that failed to load after signing in.
578
- </Text>
579
- <TextInput
580
- value={code}
581
- onChangeText={setCode}
582
- placeholder={login.codePrompt}
583
- placeholderTextColor={theme.colors.foregroundMuted}
584
- autoCapitalize="none"
585
- autoCorrect={false}
586
- accessibilityLabel="Sign-in code or redirect URL"
587
- onSubmitEditing={() => void submit()}
588
- style={styles.scalarInput}
589
- />
590
- {codeError ? <Text style={styles.error}>{codeError}</Text> : null}
591
- <View style={styles.row}>
592
- <ActionButton
593
- styles={styles}
594
- theme={theme}
595
- label={submitting ? "Continuing..." : "Continue"}
596
- tone="primary"
597
- disabled={submitting || code.trim() === ""}
598
- onPress={() => void submit()}
599
- />
600
- </View>
601
- </>
593
+ <CodeEntry
594
+ placeholder={login.codePrompt}
595
+ error={codeError}
596
+ submitting={submitting}
597
+ onSubmit={(code) => void submit(code)}
598
+ onEdit={() => setCodeError(null)}
599
+ />
602
600
  ) : (
603
601
  <Text style={styles.muted}>Waiting for you to finish signing in...</Text>
604
602
  )}
@@ -677,7 +675,6 @@ function SignInModal({
677
675
  body = (
678
676
  <LoginProgress
679
677
  styles={styles}
680
- theme={theme}
681
678
  login={login}
682
679
  onSubmit={async (code) => {
683
680
  await submit({ store, loginId: login.id, code });
@@ -43,7 +43,7 @@ export function signInProviders(
43
43
  );
44
44
  }
45
45
 
46
- export function loginIsOpen(login: OmpLogin): boolean {
46
+ export function loginIsOpen(login: Pick<OmpLogin, "step">): boolean {
47
47
  return login.step === "starting" || login.step === "waiting" || login.step === "verifying";
48
48
  }
49
49
 
@@ -39,6 +39,7 @@ import {
39
39
  OMP_SETTINGS_REFERENCE,
40
40
  type OmpDocumentationLink,
41
41
  } from "./omp-doc-links";
42
+ import { OmpMcpsSection } from "./omp-mcps-section";
42
43
  import { normalizeOmpModels } from "./omp-model-picker-state";
43
44
  import { OmpPluginManagerSection } from "./omp-plugin-manager";
44
45
  import { type OmpModelCatalogState, StructuredRoutingEditor } from "./omp-routing-editor";
@@ -1150,6 +1151,10 @@ function OmpConfigContent({
1150
1151
  <OmpAccountsSection theme={theme} styles={styles} store={store} />
1151
1152
  ) : null}
1152
1153
 
1154
+ {view === "mcps" && !cwd ? (
1155
+ <OmpMcpsSection theme={theme} styles={styles} store={store} />
1156
+ ) : null}
1157
+
1153
1158
  {view === "plugin" ? (
1154
1159
  <>
1155
1160
  <PluginConfigurationSection styles={styles} />
@@ -1,6 +1,7 @@
1
1
  export type OmpConfigSurfaceView =
2
2
  | "overview"
3
3
  | "accounts"
4
+ | "mcps"
4
5
  | "plugin"
5
6
  | "plugins"
6
7
  | "composer"
@@ -11,6 +12,7 @@ export type OmpConfigSurfaceView =
11
12
  const SURFACE_VIEWS: readonly { id: OmpConfigSurfaceView; label: string }[] = [
12
13
  { id: "overview", label: "Overview" },
13
14
  { id: "accounts", label: "Accounts" },
15
+ { id: "mcps", label: "MCPs" },
14
16
  { id: "plugin", label: "Plugin" },
15
17
  { id: "plugins", label: "OMP plugins" },
16
18
  { id: "composer", label: "Composer" },
@@ -20,7 +22,7 @@ const SURFACE_VIEWS: readonly { id: OmpConfigSurfaceView; label: string }[] = [
20
22
  ];
21
23
 
22
24
  /** Views that belong to the OMP store, not to a workspace's project settings. */
23
- const STORE_ONLY_VIEWS: readonly OmpConfigSurfaceView[] = ["composer", "accounts"];
25
+ const STORE_ONLY_VIEWS: readonly OmpConfigSurfaceView[] = ["composer", "accounts", "mcps"];
24
26
 
25
27
  export function surfaceViewsForScope(workspaceScoped: boolean) {
26
28
  return workspaceScoped