Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(mcp): make project plugins explicit opt-in installs

Rahman05bb0d287c04
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index f72167ba..f98ee799 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -12,6 +12,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- `mcp` make project plugins explicit opt-in installs
- `mcp` trust verified ChatGPT Azure file host
- `integrations` preserve strict SC bundle validation
- `integrations` make shell embed frameable
diff --git a/docs/INTEGRATIONS.md b/docs/INTEGRATIONS.md
index 6fa193dd..1e2a48f0 100644
--- a/docs/INTEGRATIONS.md
+++ b/docs/INTEGRATIONS.md
@@ -64,11 +64,8 @@ the standalone compatibility entrypoint for secure setup links and terminal work
that internal document, `/integrations/embed`, and the compatibility alias `/integrations?embed=shell` permit same-origin framing. Other origins remain blocked.
Transfer and private setup fragment handoffs remain supported without copying field values.
-Settings → MCP → Plugins / Registry separates a declaration from a project binding.
-Enter an exact project, inspect the revision, then explicitly activate/deactivate a built-in.
-Custom manifests remain declarations only. The browser's registry is not runtime authority;
-`.mcp.json` is the project binding. A configured row is deliberately **not** labelled verified.
-Use `project_mcp_tools` and then `project_mcp_call` to verify real discovery/execution.
+Settings → MCP → **MSO Access → Project plugins** separates the available plugin catalog from installed project bindings.
+Every project starts with no SI-Coder or Batonly plugin. Select one exact project, inspect its revision, then explicitly **Install to project** or **Uninstall**. Parent and sibling `.mcp.json` files are never inherited. Custom manifests remain browser-local declarations only. The catalog is not runtime authority; the selected project's `.mcp.json` is. Installed is deliberately **not** labelled verified; use `project_mcp_tools` and then `project_mcp_call` for real discovery/execution evidence.
For an MSO-managed SC binding, use `project_mcp_manage` with `plugin: "si-coder"` instead
of `url`, retaining the revision returned by `action: "inspect"`. The portable binding is:
@@ -77,6 +74,15 @@ of `url`, retaining the revision returned by `action: "inspect"`. The portable b
{"mcpServers":{"si-coder":{"plugin":"si-coder","credentialAuthority":"mso"}}}
```
+
+Batonly uses the same project-install contract. Its project file stores only the reviewed plugin identity plus an exact private MSO connection reference; it does not duplicate the Batonly endpoint or access token:
+
+```json
+{"mcpServers":{"batonly":{"plugin":"batonly","credentialAuthority":"mso","integration":{"user":"owner","connection":"batonly-assistant"}}}}
+```
+
+The named `mcp` connection in Integrations must resolve to the reviewed Batonly endpoint before installation succeeds. Removing this binding affects only the selected project; it does not revoke the credential, delete Batonly data, or change another project.
+
The installed package is resolved by its declared package/bin identity, not the name of a
worktree directory. An unrelated system command named `sc` is never executed as SI-Coder.
This mode exposes reviewed workspace utilities and redirects supported SC account/catalog/
diff --git a/docs/MCP.md b/docs/MCP.md
index 8e51bca7..5fe63972 100644
--- a/docs/MCP.md
+++ b/docs/MCP.md
@@ -24,7 +24,7 @@ demo mode also forces MCP off. Existing installs keep their current `.env.local`
## Settings navigation
-Settings → MCP separates **Access MSO** (external clients → MSO), **MSO Access** (MSO → external services / plugin declarations), and **Sessions** (activity and handover). SI-Coder is an optional plugin, not a prerequisite. Registry declarations do not install code or configure credentials.
+Settings → MCP separates **Access MSO** (external clients → MSO), **MSO Access** (host connections plus exact-project plugin installation), and **Sessions** (activity and handover). Under MSO Access, **Project plugins** lists SI-Coder and Batonly as available catalog entries. They are not installed into a fresh project, are never inherited from a parent/sibling project, and require an explicit project-scoped install. Registry declarations alone do not install code or configure credentials.
Access MSO opens a task index: **Connect an app**, **Connected apps**, **Recent activity**, **Tools & updates**, and **Connection details**. Setup first asks for the client and shows only that client's steps. Use **MCP overview** to return; technical OAuth/tunnel fields live under Connection details. Connected apps separates active access from expired/revoked history and confirms disconnection. Tools & updates stores only a browser-local refresh reminder, never a verified client-health claim.
@@ -125,6 +125,8 @@ global by design, and withholding it from the connector was scoping nobody chose
two catalogs stay separate on purpose (different transport and guard) but may not
drift by accident.
+**Project plugin default is empty.** MSO may know an available plugin manifest without installing it anywhere. A project has SI-Coder/Batonly only when that exact project's `.mcp.json` contains the reviewed plugin binding. Discovery reads that file only; it never walks upward to inherit a parent manifest and never copies a sibling binding.
+
**Global MCP names belong to MSO only.** Project-specific functions and project MCP tools are discovered as data through the generic `project_capabilities`, `project_mcp_tools`, `project_mcp_call`, and `project_function_call` seams. A project may add or remove its own MCP tools without changing MSO's global tool list or ChatGPT scan snapshot.
The tiering is about blast radius, not about which layer the call lands in.
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index 30b13f9b..909dfd9d 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -1,5 +1,14 @@
## 2026-09-14 — Original-byte MCP file export + explicit ChatGPT import matrix
+## 2026-09-15 — Project plugins are opt-in, isolated installations
+
+MSO Access now treats SI-Coder and Batonly as **available**, not pre-installed. A fresh project has no plugin binding; exact-project `.mcp.json` is the installation authority and discovery never inherits parent/sibling bindings. The Settings wording is now Catalog → Project install with explicit Install / Update / Uninstall actions.
+
+Batonly joins SI-Coder as a first-class reviewed project plugin. Its project binding stores only `plugin: batonly`, MSO credential authority, and an exact named connection reference; endpoint/token remain in the reviewed catalog and Integrations. Inspecting an alias no longer counts as plugin installation unless its returned plugin identity matches.
+
+This preserves three separate layers: host MCP access, reusable MSO Integrations credentials, and project-local plugin bindings. Installing or removing a plugin from one project changes neither standalone SI-Coder nor Batonly data nor another project.
+
+
The upstream MSO file-transfer audit is now implemented instead of remaining a read-only finding.
`fs_export_file` exports one original file through the existing authenticated temporary-share store:
READ-root/credential guards and `O_NOFOLLOW` remain authoritative, bytes are not decoded or
diff --git a/docs/PROJECT-MCP-CONNECTIONS.md b/docs/PROJECT-MCP-CONNECTIONS.md
index 37728005..ec19aca6 100644
--- a/docs/PROJECT-MCP-CONNECTIONS.md
+++ b/docs/PROJECT-MCP-CONNECTIONS.md
@@ -4,9 +4,28 @@ MSO's generic project MCP tools can use a named private Project MCP integration.
This keeps one user-facing connector while each downstream app remains modular.
The host capability keeps exec-scope enforcement, rate limits and audit ownership.
-## Declaration
+## Default and installation boundary
-An HTTP server in the selected project's regular `.mcp.json` may include:
+A fresh project has no project MCP server and no SI-Coder/Batonly plugin. MSO's plugin catalog is only a list of available integrations. Installation always targets one exact project and writes only that project's `.mcp.json`; parent and sibling manifests are not inherited.
+
+Reviewed plugins use compact identities rather than copied executable/endpoint details:
+
+```json
+{
+ "mcpServers": {
+ "si-coder": { "plugin": "si-coder", "credentialAuthority": "mso" },
+ "batonly": {
+ "plugin": "batonly",
+ "credentialAuthority": "mso",
+ "integration": { "user": "owner", "connection": "batonly-assistant" }
+ }
+ }
+}
+```
+
+SI-Coder resolves the reviewed installed package at call time. Batonly resolves its reviewed HTTPS endpoint from MSO's plugin catalog and requires the referenced private MCP connection to target that endpoint. The project file stores neither Batonly's endpoint nor its bearer.
+
+Arbitrary HTTP MCPs remain modular too. An HTTP server in the selected project's regular `.mcp.json` may include:
```json
{
@@ -59,8 +78,7 @@ is treated as unsupported, not a hard failure. Modern stdio is opt-in with
protocolVersion: 2026-07-28. Rich image/audio/resource results
are preserved; downstream UI metadata is namespaced rather than trusted as MSO UI origins.
-Use Integrations → Add MCP or project_mcp_manage to register an HTTPS endpoint with
-revision checks. See [automation flows](AUTOMATION-FLOWS.md) for CLI, sessions and assets.
+Use **Settings → MCP → MSO Access → Project plugins** for reviewed SI-Coder/Batonly installation, or `project_mcp_manage` with revision checks. Use Integrations → Add MCP for reusable private MCP credentials. Arbitrary HTTPS project MCPs can still be registered directly with `url`. See [automation flows](AUTOMATION-FLOWS.md) for CLI, sessions and assets.
Tool arguments are objects, bounded to 128 KiB; downstream schema validation remains
the application's authority. Descriptions/results are untrusted tool data.
diff --git a/docs/generated/MCP-CATALOG.md b/docs/generated/MCP-CATALOG.md
index 5bdbb38f..10500747 100644
--- a/docs/generated/MCP-CATALOG.md
+++ b/docs/generated/MCP-CATALOG.md
@@ -4,13 +4,13 @@
## Full MSO catalog
-<!-- mcp-toolset: server=1.14.1 version=2026.09.14.1 tools=105 read=50 write=34 exec=21 -->
+<!-- mcp-toolset: server=1.14.2 version=2026.09.15.1 tools=105 read=50 write=34 exec=21 -->
| Fact | Current source value |
|---|---:|
-| MCP server | `1.14.1` |
-| Toolset | `2026.09.14.1` |
-| Toolset changed at | `2026-09-14T15:44:00Z` |
+| MCP server | `1.14.2` |
+| Toolset | `2026.09.15.1` |
+| Toolset changed at | `2026-09-15T00:10:00+07:00` |
| Transport tools | **107** |
| Model/operator tools | **105** |
| Read | **50** |
@@ -139,7 +139,7 @@
## ChatGPT model profile
-<!-- mcp-chatgpt-profile: server=1.14.1 version=2026.09.14.1 tools=105 read=50 write=34 exec=21 app-only=2 total=107 -->
+<!-- mcp-chatgpt-profile: server=1.14.2 version=2026.09.15.1 tools=105 read=50 write=34 exec=21 app-only=2 total=107 -->
The ChatGPT profile automatically projects the complete MSO-owned generic model/operator catalog. OAuth scope is still enforced independently; app-only compatibility bridges stay app-only, and project-owned MCP tool names remain dynamic data behind the generic project bridge.
diff --git a/frontend/slices/os-settings/components/mcp-direction-tabs.tsx b/frontend/slices/os-settings/components/mcp-direction-tabs.tsx
index a891f5a9..13ecceb9 100644
--- a/frontend/slices/os-settings/components/mcp-direction-tabs.tsx
+++ b/frontend/slices/os-settings/components/mcp-direction-tabs.tsx
@@ -3,7 +3,7 @@ import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
export const MCP_TABS = [
{ id: "inbound", title: "Access MSO", description: "External clients → MSO" },
- { id: "outbound", title: "MSO Access", description: "MSO → external services" },
+ { id: "outbound", title: "MSO Access", description: "Connections & per-project plugins" },
{ id: "sessions", title: "Sessions", description: "Activity & handover" },
] as const;
export type McpTab = (typeof MCP_TABS)[number]["id"];
diff --git a/frontend/slices/os-settings/components/mcp-navigation.tsx b/frontend/slices/os-settings/components/mcp-navigation.tsx
index 51f37405..2b9f6494 100644
--- a/frontend/slices/os-settings/components/mcp-navigation.tsx
+++ b/frontend/slices/os-settings/components/mcp-navigation.tsx
@@ -10,7 +10,7 @@ export const MCP_PAGES = [
{ id: "activity", title: "Recent activity", description: "Review the latest actions requested through MCP.", icon: ListChecks },
{ id: "tools", title: "Tools & updates", description: "Check the server tool catalog and your last client refresh reminder.", icon: Wrench },
{ id: "connection", title: "Connection details", description: "Server address, reachability checks, tunnels, and manual OAuth settings.", icon: Settings2 },
- { id: "registry", title: "Plugins / Registry", description: "Review built-ins or validate a custom portable plugin declaration.", icon: Wrench },
+ { id: "registry", title: "Project plugins", description: "Install SI-Coder or Batonly into one exact project. Catalog entries are not installed by default.", icon: Wrench },
] as const;
export type McpPage = "overview" | (typeof MCP_PAGES)[number]["id"];
export type McpDirection = "inbound" | "outbound";
diff --git a/frontend/slices/os-settings/components/mcp-plugin-install-contract.test.ts b/frontend/slices/os-settings/components/mcp-plugin-install-contract.test.ts
new file mode 100644
index 00000000..d86572eb
--- /dev/null
+++ b/frontend/slices/os-settings/components/mcp-plugin-install-contract.test.ts
@@ -0,0 +1,22 @@
+import { readFileSync } from "node:fs";
+import { describe, expect, it } from "vitest";
+const registry = readFileSync("frontend/slices/os-settings/components/mcp-plugin-registry.tsx", "utf8");
+const runtime = readFileSync("frontend/slices/os-settings/components/mcp-plugin-runtime.tsx", "utf8");
+const section = readFileSync("frontend/slices/os-settings/components/mcp-section.tsx", "utf8");
+const navigation = readFileSync("frontend/slices/os-settings/components/mcp-navigation.tsx", "utf8");
+describe("project plugin installation UX contract", () => {
+ it("describes built-ins as available catalog entries rather than installed defaults", () => {
+ expect(registry).toContain("not default project dependencies");
+ expect(registry).toContain('{isCustom ? "Custom catalog" : "Available"}');
+ expect(navigation).toContain('title: "Project plugins"');
+ });
+ it("uses install/uninstall language and sends plugin identity for both reviewed plugins", () => {
+ expect(runtime).toContain('"Install to project"'); expect(runtime).toContain(">Check installation</Button>"); expect(runtime).toContain('>Uninstall</Button>');
+ expect(runtime).toContain('{ plugin: "batonly", user, connection }');
+ expect(runtime).not.toContain('url: endpoint');
+ });
+ it("states that host credentials do not install or propagate project plugins", () => {
+ expect(section).toContain("does not install a plugin into any project");
+ expect(section).toContain("parent/sibling projects never inherit the binding");
+ });
+});
diff --git a/frontend/slices/os-settings/components/mcp-plugin-registry.tsx b/frontend/slices/os-settings/components/mcp-plugin-registry.tsx
index fb571d9f..f4758e99 100644
--- a/frontend/slices/os-settings/components/mcp-plugin-registry.tsx
+++ b/frontend/slices/os-settings/components/mcp-plugin-registry.tsx
@@ -68,7 +68,7 @@ export function McpPluginRegistry() {
}
persist([...custom, result.manifest]);
setSource("");
- setMessage(`Registered ${result.manifest.metadata.name}. Activation remains a separate approved action.`);
+ setMessage(`Registered ${result.manifest.metadata.name} in this browser catalog. It is not installed into any project.`);
} catch {
setMessage("Enter valid JSON matching portable plugin manifest v1.");
}
@@ -86,17 +86,16 @@ export function McpPluginRegistry() {
<div className="space-y-4">
<SettingsBlock className="space-y-3 py-4">
<div className="flex flex-wrap items-center gap-2">
- <p className="text-sm font-medium">Plugins / Registry</p>
- <span className="rounded-full bg-secondary px-2 py-0.5 text-xs text-muted-foreground">project-scoped activation</span>
+ <p className="text-sm font-medium">Project plugins</p>
+ <span className="rounded-full bg-secondary px-2 py-0.5 text-xs text-muted-foreground">catalog → project install</span>
</div>
<p className="text-sm text-muted-foreground">
- SI-Coder, Batonly, and custom plugins use the same portable manifest. A declaration may describe Agent Skills and
- MCP surfaces, but never credentials, environment values, headers, or shell commands.
+ SI-Coder and Batonly are available catalog entries, not default project dependencies. Installing one writes only the selected project’s MCP binding. Custom manifests stay browser-local declarations.
</p>
<label className="grid gap-2 text-sm">Exact target project
<Input value={project} onChange={event => setProject(event.target.value)} placeholder="Project name, ID, or absolute path" aria-label="Plugin target project" />
</label>
- <p className="text-xs text-muted-foreground">Inspect before activation. A configured binding is not proof that discovery or a tool call works. Custom declarations remain inactive.</p>
+ <p className="text-xs text-muted-foreground">Check the exact target before installing. Fresh projects are empty; no parent, sibling, or catalog entry is inherited as an installed plugin. Installation is still not a health check.</p>
<ul className="grid gap-2 sm:grid-cols-2" aria-label="Registered plugins">
{plugins.map((plugin) => {
const isCustom = custom.some((item) => item.id === plugin.id);
@@ -108,7 +107,7 @@ export function McpPluginRegistry() {
<p className="text-sm font-medium">{plugin.metadata.name}</p>
<span className="text-xs text-muted-foreground">Manifest v{plugin.version}</span>
<span className="rounded-full bg-muted px-1.5 py-0.5 text-[11px] text-muted-foreground">
- {isCustom ? "Custom" : "Built-in"}
+ {isCustom ? "Custom catalog" : "Available"}
</span>
</div>
<p className="mt-1 text-sm text-muted-foreground">{plugin.metadata.description}</p>
@@ -123,7 +122,7 @@ export function McpPluginRegistry() {
</Button>
) : null}
</div>
- {!isCustom && <McpPluginRuntime key={`${plugin.id}:${project}`} plugin={plugin.id} project={project} endpoint={plugin.mcp?.find(row => row.transport === "https")?.endpoint} />}
+ {!isCustom && <McpPluginRuntime key={`${plugin.id}:${project}`} plugin={plugin.id} project={project} />}
</li>
);
})}
@@ -136,7 +135,7 @@ export function McpPluginRegistry() {
Custom plugin manifest
</label>
<p className="mt-1 text-xs text-muted-foreground">
- Valid manifests are stored in this browser only. Activation and credentials stay separate from the registry.
+ Valid custom manifests are stored in this browser only. Catalog registration never installs code or adds a project MCP binding.
</p>
</div>
<Textarea
diff --git a/frontend/slices/os-settings/components/mcp-plugin-runtime.tsx b/frontend/slices/os-settings/components/mcp-plugin-runtime.tsx
index 2019373f..1c1c53d9 100644
--- a/frontend/slices/os-settings/components/mcp-plugin-runtime.tsx
+++ b/frontend/slices/os-settings/components/mcp-plugin-runtime.tsx
@@ -5,13 +5,13 @@ import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { openWindow } from "@/features/appshell";
-type Receipt = { revision?: string; configured: boolean };
+type Receipt = { revision?: string; installed: boolean };
/** Uses the existing owner-only project binding API; registration is not a health check. */
-export function McpPluginRuntime({ plugin, project, endpoint }: { plugin: string; project: string; endpoint?: string }) {
- const [receipt, setReceipt] = useState<Receipt>({ configured: false });
+export function McpPluginRuntime({ plugin, project }: { plugin: string; project: string }) {
+ const [receipt, setReceipt] = useState<Receipt>({ installed: false });
const [busy, setBusy] = useState(false);
- const [message, setMessage] = useState("Not inspected for this project.");
+ const [message, setMessage] = useState("Available in the catalog. Choose a project, then check installation.");
const [user, setUser] = useState("");
const [connection, setConnection] = useState("");
const operation = useRef<AbortController | null>(null);
@@ -21,14 +21,14 @@ export function McpPluginRuntime({ plugin, project, endpoint }: { plugin: string
setBusy(true);
try {
const args = { project, server: plugin, action, ...(action !== "inspect" ? { revision: receipt.revision } : {}),
- ...(action === "upsert" ? plugin === "si-coder" ? { plugin: "si-coder" } : { url: endpoint, user, connection } : {}) };
+ ...(action === "upsert" ? plugin === "si-coder" ? { plugin: "si-coder" } : { plugin: "batonly", user, connection } : {}) };
const response = await fetch("/api/v1/project-mcp", { method: "POST", credentials: "same-origin", cache: "no-store", signal: controller.signal,
headers: { "Content-Type": "application/json" }, body: JSON.stringify(args) });
const data = await response.json();
if (!response.ok) throw new Error(data.error || "Plugin operation failed");
- const configured = action === "inspect" ? data.servers?.some((server: { name: string }) => server.name === plugin) === true : action === "upsert";
- setReceipt({ revision: data.revision, configured });
- setMessage(configured ? "Project binding configured. Tool discovery and execution have not been verified by this panel." : "Declared only; no binding in this project.");
+ const installed = action === "inspect" ? data.servers?.some((server: { name: string; plugin?: string }) => server.name === plugin && server.plugin === plugin) === true : action === "upsert";
+ setReceipt({ revision: data.revision, installed });
+ setMessage(installed ? "Installed in this project. Tool discovery/execution are separate verification steps." : "Not installed in this project.");
} catch (error) {
if (!controller.signal.aborted) setMessage(error instanceof Error ? error.message : "Plugin operation failed");
} finally { if (!controller.signal.aborted) setBusy(false); }
@@ -36,19 +36,19 @@ export function McpPluginRuntime({ plugin, project, endpoint }: { plugin: string
return <div className="mt-3 space-y-3 border-t pt-3">
<p role="status" className="break-words text-xs font-medium">{busy ? "Checking project binding…" : message}</p>
<p className="text-xs text-muted-foreground">{plugin === "si-coder"
- ? "Managed mode uses MSO accounts and connection verification. Standalone SC is unchanged. Provider writes use native Integrations."
- : "Batonly owns project plans, tasks, and evidence. Bind an exact private MCP connection from MSO Integrations."}</p>
+ ? "Installing adds only this project's managed SC binding. Standalone SC and other projects remain unchanged. Provider credentials stay in Integrations."
+ : "Installing adds only this project's Batonly MCP binding. Batonly owns project/task/evidence data; the credential stays in Integrations."}</p>
{plugin === "batonly" && <div className="grid gap-2">
<Input aria-label="Batonly connection owner" placeholder="MSO connection owner" value={user} disabled={busy} onChange={event => setUser(event.target.value)} />
<Input aria-label="Batonly named MCP connection" placeholder="Named MCP connection, not a token" value={connection} disabled={busy} onChange={event => setConnection(event.target.value)} />
</div>}
<div className="flex flex-wrap gap-2">
- <Button variant="secondary" size="sm" disabled={busy || !project.trim()} onClick={() => void run("inspect")}>Inspect binding</Button>
+ <Button variant="secondary" size="sm" disabled={busy || !project.trim()} onClick={() => void run("inspect")}>Check installation</Button>
<Button size="sm" disabled={busy || !receipt.revision || (plugin === "batonly" && (!user || !connection))}
- onClick={() => { if (!receipt.configured || window.confirm("Replace this project's existing plugin binding?")) void run("upsert"); }}>{receipt.configured ? "Replace binding" : "Activate in project"}</Button>
- {receipt.configured && <Button variant="ghost" size="sm" disabled={busy} onClick={() => { if (window.confirm("Remove only this project's binding? Other projects and remote accounts are unchanged.")) void run("delete"); }}>Deactivate</Button>}
+ onClick={() => { if (!receipt.installed || window.confirm("Update this project's plugin installation?")) void run("upsert"); }}>{receipt.installed ? "Update installation" : "Install to project"}</Button>
+ {receipt.installed && <Button variant="ghost" size="sm" disabled={busy} onClick={() => { if (window.confirm("Uninstall only from this project? Sibling projects, standalone SC, Batonly data, and credentials remain unchanged.")) void run("delete"); }}>Uninstall</Button>}
<Button variant="ghost" size="sm" onClick={() => openWindow("integrations", "Integrations")}>Open Integrations</Button>
</div>
- {receipt.configured && <p className="text-xs text-muted-foreground">Verify through MSO with <code>project_mcp_tools</code> for this project and server <code>{plugin}</code>{plugin === "si-coder" ? ", then project_mcp_call → sc.version." : ". Discovery is not proof of every remote operation."}</p>}
+ {receipt.installed && <p className="text-xs text-muted-foreground">Installed ≠ verified. Check this exact project with <code>project_mcp_tools</code> and server <code>{plugin}</code>{plugin === "si-coder" ? ", then call sc.version." : ". A successful catalog read does not prove every remote mutation."}</p>}
</div>;
}
diff --git a/frontend/slices/os-settings/components/mcp-section.tsx b/frontend/slices/os-settings/components/mcp-section.tsx
index 80d886a8..3ff595f9 100644
--- a/frontend/slices/os-settings/components/mcp-section.tsx
+++ b/frontend/slices/os-settings/components/mcp-section.tsx
@@ -61,7 +61,11 @@ function OwnerMcpSection() {
<div id="mcp-direction-panel" role="tabpanel" aria-labelledby={`mcp-${direction}-tab`} className="@container min-w-0 space-y-4">
{direction === "sessions" ? <McpSessions /> : <>
<p className="text-sm text-muted-foreground">{direction === "inbound" ? "Approve how external clients and agents access this MSO host." : "Choose how MSO reaches external services and projects."}</p>
- {page === "overview" && direction === "outbound" && <SettingsBlock className="space-y-2 py-4"><p className="text-sm font-medium">External connections</p><p className="text-sm text-muted-foreground">Manage external MCP and service credentials through Integrations. Registry entries remain descriptive until a separate approved connection or activation is completed.</p><Button asChild variant="secondary"><Link href="/integrations">Open Integrations</Link></Button></SettingsBlock>}
+ {page === "overview" && direction === "outbound" && <SettingsBlock className="space-y-3 py-4">
+ <div><p className="text-sm font-medium">Service connections</p><p className="text-sm text-muted-foreground">Integrations owns reusable provider/MCP credentials on this MSO host. A saved credential does not install a plugin into any project.</p></div>
+ <div><p className="text-sm font-medium">Project plugins</p><p className="text-sm text-muted-foreground">Each project starts with no SI-Coder or Batonly binding. Install them separately per exact project; parent/sibling projects never inherit the binding.</p></div>
+ <Button asChild variant="secondary"><Link href="/integrations">Open Integrations</Link></Button>
+ </SettingsBlock>}
<McpNavigation active={page} onSelect={navigate} activeCount={state.tokens.filter(token => token.status === "active").length} direction={direction} />
{page === "connect" && <McpSetupGuide origin={state.origin} maxScope={state.maxScope} />}
{page === "connection" && <McpConnectionSection origin={state.origin} />}
diff --git a/lib/contracts/project-mcp.ts b/lib/contracts/project-mcp.ts
index ea658851..61a581b9 100644
--- a/lib/contracts/project-mcp.ts
+++ b/lib/contracts/project-mcp.ts
@@ -1,7 +1,9 @@
/** Metadata returned by project discovery; credential values are never DTOs. */
+export type ProjectPluginId = "si-coder" | "batonly";
+
export type PublicProjectMcpServer = {
name: string;
- plugin?: "si-coder";
+ plugin?: ProjectPluginId;
credentialAuthority?: "mso";
transport: "stdio" | "http";
auth: "none" | "configured" | "oauth" | "integration";
diff --git a/lib/host/project-mcp-config.ts b/lib/host/project-mcp-config.ts
index 0b203e10..dcad9c0b 100644
--- a/lib/host/project-mcp-config.ts
+++ b/lib/host/project-mcp-config.ts
@@ -1,4 +1,5 @@
-import type { PublicProjectMcpServer } from "@/lib/contracts/project-mcp";
+import type { ProjectPluginId, PublicProjectMcpServer } from "@/lib/contracts/project-mcp";
+import { BUILT_IN_PLUGINS } from "@/lib/plugins/manifest";
import { promises as fs } from "node:fs";
import path from "node:path";
import { BOUNDED_READ, readBoundedRegularFile } from "./bounded-read";
@@ -9,7 +10,7 @@ const MAX_SERVERS = 16;
const MAX_ARGV = 32;
const MAX_VALUE = 4096;
-type BaseServer = { consumer?: "mso"; protocolVersion?: "2026-07-28"; integration?: { user: string; connection: string }; name: string; headers: Record<string, string>; oauthConfigured: boolean };
+type BaseServer = { consumer?: "mso"; plugin?: ProjectPluginId; protocolVersion?: "2026-07-28"; integration?: { user: string; connection: string }; name: string; headers: Record<string, string>; oauthConfigured: boolean };
export type ProjectMcpServer = BaseServer & (
| { transport: "stdio"; command: string; args: string[]; cwd: string; env: Record<string, string> }
| { transport: "http"; url: string }
@@ -64,8 +65,17 @@ export async function readProjectMcpServers(projectPath: string): Promise<Projec
integration = { user: ref.user, connection: ref.connection };
}
if (value.plugin !== undefined) {
- if (value.plugin !== "si-coder" || value.credentialAuthority !== "mso" || Object.keys(value).some(key => !["plugin", "credentialAuthority"].includes(key))) throw new Error("invalid managed plugin declaration");
- out.push({ name, transport: "plugin", plugin: "si-coder", cwd: projectPath, headers: {}, oauthConfigured: false });
+ if (!["si-coder", "batonly"].includes(String(value.plugin)) || value.credentialAuthority !== "mso") throw new Error("invalid managed plugin declaration");
+ if (value.plugin === "si-coder") {
+ if (Object.keys(value).some(key => !["plugin", "credentialAuthority"].includes(key))) throw new Error("invalid managed SI-Coder declaration");
+ out.push({ name, transport: "plugin", plugin: "si-coder", cwd: projectPath, headers: {}, oauthConfigured: false });
+ continue;
+ }
+ if (!integration || Object.keys(value).some(key => !["plugin", "credentialAuthority", "integration"].includes(key))) throw new Error("Batonly plugin requires an exact MSO integration reference");
+ const manifest = BUILT_IN_PLUGINS.find(plugin => plugin.id === "batonly");
+ const remote = manifest?.mcp?.find(descriptor => descriptor.transport === "https");
+ if (!remote || remote.transport !== "https") throw new Error("Batonly plugin endpoint is unavailable");
+ out.push({ name, transport: "http", plugin: "batonly", url: remote.endpoint, headers: {}, oauthConfigured: false, integration });
continue;
}
if (typeof value.command === "string" && value.command.trim() && value.command.length <= MAX_VALUE) {
@@ -82,5 +92,5 @@ export async function readProjectMcpServers(projectPath: string): Promise<Projec
}
export function publicProjectMcpServers(servers: ProjectMcpServer[]): PublicProjectMcpServer[] {
- return servers.map((server) => ({ name: server.name, transport: server.transport === "plugin" ? "stdio" : server.transport, ...(server.transport === "plugin" ? { plugin: server.plugin, credentialAuthority: "mso" as const } : {}), auth: server.transport === "plugin" || server.integration ? "integration" : server.oauthConfigured ? "oauth" : Object.keys(server.headers).length ? "configured" : "none" }));
+ return servers.map((server) => ({ name: server.name, transport: server.transport === "plugin" ? "stdio" : server.transport, ...(server.plugin ? { plugin: server.plugin, credentialAuthority: "mso" as const } : {}), auth: server.plugin || server.integration ? "integration" : server.oauthConfigured ? "oauth" : Object.keys(server.headers).length ? "configured" : "none" }));
}
diff --git a/lib/host/project-mcp-manage.test.ts b/lib/host/project-mcp-manage.test.ts
index fbbc17ac..1807a1f5 100644
--- a/lib/host/project-mcp-manage.test.ts
+++ b/lib/host/project-mcp-manage.test.ts
@@ -2,7 +2,9 @@ import { afterEach, expect, it, vi } from "vitest";
import { promises as fs } from "node:fs";
import os from "node:os";
import path from "node:path";
-vi.mock("@/lib/infra/connection-service", () => ({ directConnectionValues: async () => ({ endpoint: "https://example.test/mcp", accessToken: "private-value" }) }));
+vi.mock("@/lib/infra/connection-service", () => ({ directConnectionValues: async (_provider: string, selector: { connection?: string }) => selector.connection === "batonly-private"
+ ? { endpoint: "https://site.batonly.site/mcp", accessToken: "batonly-private-value" }
+ : { endpoint: "https://example.test/mcp", accessToken: "private-value" } }));
let root = "";
afterEach(async () => { vi.unstubAllEnvs(); if (root) await fs.rm(root, { recursive: true, force: true }); });
it("preserves existing servers, refuses stale revisions and stores only private connection references", async () => {
@@ -10,7 +12,7 @@ it("preserves existing servers, refuses stale revisions and stores only private
vi.stubEnv("OS_FS_WRITE_ROOTS", root); vi.stubEnv("OS_FS_READ_ROOTS", root); vi.resetModules();
const { inspectProjectMcp, manageProjectMcp } = await import("./project-mcp-manage");
const first = await inspectProjectMcp(root);
- expect(first.revision).toBe("new");
+ expect(first).toEqual({ revision: "new", servers: [] });
const saved = await manageProjectMcp(root, { action: "upsert", server: "one", revision: first.revision, url: "https://example.test/mcp", user: "owner", connection: "private" });
await expect(manageProjectMcp(root, { action: "delete", server: "one", revision: "new" })).rejects.toThrow("revision changed");
await manageProjectMcp(root, { action: "upsert", server: "two", revision: saved.revision, url: "https://public.test/mcp" });
@@ -33,3 +35,25 @@ it("stores managed SC without a command or copied account and permits removal wh
await manageProjectMcp(root, { action: "delete", server: "si-coder", revision: saved.revision });
expect((await inspectProjectMcp(root)).servers).toHaveLength(0);
});
+
+
+it("installs Batonly only in the exact project without storing endpoint or token", async () => {
+ root = await fs.mkdtemp(path.join(os.tmpdir(), "mso-managed-batonly-"));
+ vi.stubEnv("OS_FS_WRITE_ROOTS", root); vi.stubEnv("OS_FS_READ_ROOTS", root); vi.resetModules();
+ const { inspectProjectMcp, manageProjectMcp } = await import("./project-mcp-manage");
+ const saved = await manageProjectMcp(root, { action: "upsert", server: "batonly", revision: "new", plugin: "batonly", user: "owner", connection: "batonly-private" });
+ const raw = await fs.readFile(path.join(root, ".mcp.json"), "utf8");
+ expect(JSON.parse(raw)).toEqual({ mcpServers: { batonly: { plugin: "batonly", credentialAuthority: "mso", integration: { user: "owner", connection: "batonly-private" } } } });
+ expect(raw).not.toContain("site.batonly.site"); expect(raw).not.toContain("batonly-private-value");
+ expect((await inspectProjectMcp(root)).servers[0]).toMatchObject({ name: "batonly", plugin: "batonly", transport: "http", auth: "integration", credentialAuthority: "mso" });
+ await manageProjectMcp(root, { action: "delete", server: "batonly", revision: saved.revision });
+ expect((await inspectProjectMcp(root)).servers).toEqual([]);
+});
+
+it("refuses Batonly installation through a connection for another endpoint", async () => {
+ root = await fs.mkdtemp(path.join(os.tmpdir(), "mso-managed-batonly-wrong-"));
+ vi.stubEnv("OS_FS_WRITE_ROOTS", root); vi.stubEnv("OS_FS_READ_ROOTS", root); vi.resetModules();
+ const { manageProjectMcp } = await import("./project-mcp-manage");
+ await expect(manageProjectMcp(root, { action: "upsert", server: "batonly", revision: "new", plugin: "batonly", user: "owner", connection: "private" })).rejects.toThrow("reviewed Batonly endpoint");
+ await expect(fs.stat(path.join(root, ".mcp.json"))).rejects.toMatchObject({ code: "ENOENT" });
+});
diff --git a/lib/host/project-mcp-manage.ts b/lib/host/project-mcp-manage.ts
index e889edff..3478fc65 100644
--- a/lib/host/project-mcp-manage.ts
+++ b/lib/host/project-mcp-manage.ts
@@ -5,6 +5,8 @@ import { resolveReadable } from "./paths";
import { writeFileGuarded, sha256Text } from "./fs-api";
import { readProjectMcpServers, publicProjectMcpServers } from "./project-mcp-config";
import { normalizeMcpEndpoint } from "@/lib/infra/mcp-policy";
+import { BUILT_IN_PLUGINS } from "@/lib/plugins/manifest";
+import type { ProjectPluginId } from "@/lib/contracts/project-mcp";
import { directConnectionValues } from "@/lib/infra/connection-service";
import { withSecurityStoreLock } from "@/lib/security-store-lock";
@@ -27,7 +29,7 @@ export async function inspectProjectMcp(projectPath: string) {
const stored = await manifest(projectPath);
return { revision: stored.revision, servers: publicProjectMcpServers(await readProjectMcpServers(projectPath)) };
}
-export async function manageProjectMcp(projectPath: string, input: { action: "upsert" | "delete"; server: string; revision: string; plugin?: "si-coder"; url?: string; user?: string; connection?: string }) {
+export async function manageProjectMcp(projectPath: string, input: { action: "upsert" | "delete"; server: string; revision: string; plugin?: ProjectPluginId; url?: string; user?: string; connection?: string }) {
if (!/^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$/.test(input.server) || ["__proto__", "constructor", "prototype"].includes(input.server)) throw new Error("invalid MCP server alias");
return withSecurityStoreLock(path.join(projectPath, ".mcp.json"), async () => {
const stored = await manifest(projectPath);
@@ -37,8 +39,19 @@ export async function manageProjectMcp(projectPath: string, input: { action: "up
if (input.action === "delete") delete servers[input.server];
else {
if (input.plugin) {
- if (input.plugin !== "si-coder" || input.url || input.user || input.connection) throw new Error("managed SC has no copied account configuration");
- servers[input.server] = { plugin: "si-coder", credentialAuthority: "mso" };
+ if (input.url) throw new Error("project plugins resolve their endpoint from the reviewed catalog");
+ if (input.plugin === "si-coder") {
+ if (input.user || input.connection) throw new Error("managed SC has no copied account configuration");
+ servers[input.server] = { plugin: "si-coder", credentialAuthority: "mso" };
+ } else if (input.plugin === "batonly") {
+ if (![input.user, input.connection].every(value => typeof value === "string" && /^[a-z0-9][a-z0-9_-]{0,63}$/.test(value))) throw new Error("Batonly installation requires exact user and connection");
+ const descriptor = BUILT_IN_PLUGINS.find(plugin => plugin.id === "batonly")?.mcp?.find(row => row.transport === "https");
+ if (!descriptor || descriptor.transport !== "https") throw new Error("Batonly plugin endpoint is unavailable");
+ const integration = { user: input.user!, connection: input.connection! };
+ const values = await directConnectionValues("mcp", integration);
+ if (!values.endpoint || normalizeMcpEndpoint(values.endpoint) !== normalizeMcpEndpoint(descriptor.endpoint)) throw new Error("Batonly MCP connection must target the reviewed Batonly endpoint");
+ servers[input.server] = { plugin: "batonly", credentialAuthority: "mso", integration };
+ } else throw new Error("unsupported project plugin");
} else {
const url = normalizeMcpEndpoint(input.url ?? "");
let integration: { user: string; connection: string } | undefined;
@@ -55,6 +68,8 @@ export async function manageProjectMcp(projectPath: string, input: { action: "up
const content = JSON.stringify({ ...stored.data, [key]: servers }, null, 2) + "\n";
if (Buffer.byteLength(content) > 64 * 1024) throw new Error("MCP manifest exceeds 64 KiB");
const result = await writeFileGuarded({ path: stored.file, content, ...(stored.revision === "new" ? {} : { expectedSha256: stored.revision }) });
- return { action: input.action, server: input.server, revision: result.sha256, next: "project_mcp_tools discovers the server; credentials use integration_setup_open." };
+ return { action: input.action, server: input.server, revision: result.sha256, next: input.action === "delete"
+ ? "Removed only from the selected project; other projects and Integrations credentials are unchanged."
+ : "Installed only in the selected project; use project_mcp_tools for discovery evidence." };
});
}
diff --git a/lib/host/project-mcp.test.ts b/lib/host/project-mcp.test.ts
index fcf8201f..498988d2 100644
--- a/lib/host/project-mcp.test.ts
+++ b/lib/host/project-mcp.test.ts
@@ -1,5 +1,5 @@
import { afterAll, beforeAll, describe, expect, it } from "vitest";
-import { mkdtemp, rm, writeFile } from "node:fs/promises";
+import { mkdir, mkdtemp, rm, writeFile } from "node:fs/promises";
import os from "node:os";
import path from "node:path";
@@ -41,6 +41,16 @@ describe("dynamic project MCP boundary", () => {
expect(JSON.parse(text)).toEqual({ value: "hello", visible: "ok", secretLeak: false, secretRef: "" });
});
+
+ it("does not inherit parent or sibling MCP bindings into a project with no manifest", async () => {
+ const parent = path.join(root, "isolated-parent"), child = path.join(parent, "child"), sibling = path.join(parent, "sibling");
+ await mkdir(child, { recursive: true }); await mkdir(sibling, { recursive: true });
+ await writeFile(path.join(parent, ".mcp.json"), JSON.stringify({ mcpServers: { "si-coder": { plugin: "si-coder", credentialAuthority: "mso" } } }));
+ await writeFile(path.join(sibling, ".mcp.json"), JSON.stringify({ mcpServers: { batonly: { plugin: "batonly", credentialAuthority: "mso", integration: { user: "owner", connection: "batonly" } } } }));
+ const { readProjectMcpServers } = await import("./project-mcp-config");
+ expect(await readProjectMcpServers(child)).toEqual([]);
+ });
+
it("refuses a stdio cwd that escapes the selected project", async () => {
await writeFile(path.join(project, ".mcp.json"), JSON.stringify({ mcpServers: { bad: { command: process.execPath, args: [fixture], cwd: ".." } } }));
const { readProjectMcpServers } = await import("./project-mcp-config");
diff --git a/lib/mcp/tools-project-mcp-manage.ts b/lib/mcp/tools-project-mcp-manage.ts
index 961a4dbc..768af1ab 100644
--- a/lib/mcp/tools-project-mcp-manage.ts
+++ b/lib/mcp/tools-project-mcp-manage.ts
@@ -2,9 +2,9 @@ import { inspectProjectMcp, manageProjectMcp } from "@/lib/host/project-mcp-mana
import { resolveProjectHint } from "@/lib/host/projects-api";
import { type McpTool, S, str } from "./tool-kit";
export const PROJECT_MCP_MANAGE_TOOLS: McpTool[] = [{
- name: "project_mcp_manage", title: "Add or Manage Project MCP", scope: "write",
- description: "Inspect/add/update/remove one HTTP MCP or reviewed SI-Coder plugin binding in an exact project's .mcp.json. Inspect first for revision; pass it for upsert/delete. Other servers are preserved. Optional exact user/connection references private MCP credentials; never put credentials in url or arguments. Set plugin=si-coder instead of url for MSO-managed SC; native Integrations owns provider actions. Discover with project_mcp_tools after setup.",
- chatgptDescription: "Add or manage a project's HTTP MCP or managed SC plugin. Inspect for revision, then upsert/delete. Credentials stay in a private connection.",
+ name: "project_mcp_manage", title: "Install or Manage Project MCP", scope: "write",
+ description: "Inspect/install/update/uninstall one exact project's MCP binding. Fresh projects have no plugin binding and nothing is inherited from parent projects. For reviewed project plugins set plugin=si-coder or plugin=batonly; Batonly also requires an exact MSO credential user/connection. Arbitrary HTTP MCPs still use url. Inspect first for revision; mutations preserve other servers.",
+ chatgptDescription: "Manage MCP installation for one exact project. Plugins are absent by default and never inherited; inspect before installing or uninstalling.",
meta: { ui: { visibility: ["model", "app"] }, "openai/widgetAccessible": true },
annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
limit: { key: "project.mcp.manage", max: 20, windowMs: 60_000 },
@@ -14,18 +14,18 @@ export const PROJECT_MCP_MANAGE_TOOLS: McpTool[] = [{
action: { type: "string", enum: ["inspect", "upsert", "delete"] },
server: { type: "string", maxLength: 64, description: "Project-local server alias. Required for mutations." },
revision: { type: "string", description: "Revision from inspect. Required for mutations." },
- plugin: { type: "string", enum: ["si-coder"], description: "Reviewed installed SI-Coder in MSO-managed mode. Alternative to url; no copied credentials." },
+ plugin: { type: "string", enum: ["si-coder", "batonly"], description: "Reviewed project plugin identity. Installation is exact-project only; no global/default activation." },
url: { type: "string", maxLength: 4096, description: "HTTPS endpoint without credentials/query/fragment. Required for HTTP upsert; omit with plugin." },
user: { type: "string", description: "Exact credential owner; use together with connection." },
connection: { type: "string", description: "Exact private MCP connection; omit both for public MCP." },
}, ["project", "action"]),
run: async a => {
- if (a.plugin !== undefined && a.plugin !== "si-coder") throw new Error("unsupported managed plugin");
+ if (a.plugin !== undefined && !["si-coder", "batonly"].includes(String(a.plugin))) throw new Error("unsupported project plugin");
const project = await resolveProjectHint(str(a, "project"));
if (!project || project.matchedBy === "fuzzy") throw new Error("exact project required");
if (a.action === "inspect") return { project: project.id, ...await inspectProjectMcp(project.path) };
if (a.action !== "upsert" && a.action !== "delete") throw new Error("invalid MCP action");
return { project: project.id, ...await manageProjectMcp(project.path, { action: a.action, server: str(a, "server"), revision: str(a, "revision"),
- plugin: a.plugin === "si-coder" ? "si-coder" : undefined, url: typeof a.url === "string" ? a.url : undefined, user: typeof a.user === "string" ? a.user : undefined, connection: typeof a.connection === "string" ? a.connection : undefined }) };
+ plugin: a.plugin === "si-coder" || a.plugin === "batonly" ? a.plugin : undefined, url: typeof a.url === "string" ? a.url : undefined, user: typeof a.user === "string" ? a.user : undefined, connection: typeof a.connection === "string" ? a.connection : undefined }) };
},
}];
diff --git a/lib/mcp/toolset.ts b/lib/mcp/toolset.ts
index f7ca957d..cd684d5a 100644
--- a/lib/mcp/toolset.ts
+++ b/lib/mcp/toolset.ts
@@ -3,9 +3,9 @@ import type { Scope } from "./scope";
import type { McpTool } from "./tool-kit";
import { toolDescriptor, type McpToolProfile } from "./tool-contract";
-export const MCP_SERVER_VERSION = "1.14.1";
-export const MCP_TOOLSET_VERSION = "2026.09.14.1";
-export const MCP_TOOLSET_CHANGED_AT = "2026-09-14T15:44:00Z";
+export const MCP_SERVER_VERSION = "1.14.2";
+export const MCP_TOOLSET_VERSION = "2026.09.15.1";
+export const MCP_TOOLSET_CHANGED_AT = "2026-09-15T00:10:00+07:00";
export type McpToolsetInfo = {
serverVersion: string;
diff --git a/lib/plugins/manifest.ts b/lib/plugins/manifest.ts
index a3aafe9b..689f69ea 100644
--- a/lib/plugins/manifest.ts
+++ b/lib/plugins/manifest.ts
@@ -166,6 +166,7 @@ export function validatePluginManifest(value: unknown): ManifestValidation {
return { ok: true, manifest: value as PluginManifest };
}
+/** Catalog declarations bundled with MSO. Presence here never installs a plugin into a project. */
export const BUILT_IN_PLUGINS: readonly PluginManifest[] = Object.freeze([
{
$schema: PLUGIN_MANIFEST_SCHEMA,
diff --git a/package.json b/package.json
index b4b5e5d8..db89bc86 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "mso",
- "version": "0.2.10",
+ "version": "0.2.11",
"private": true,
"engines": {
"node": ">=20.9",
diff --git a/scripts/e2e/mcp-settings.mjs b/scripts/e2e/mcp-settings.mjs
index 0e55241d..84e4c74b 100644
--- a/scripts/e2e/mcp-settings.mjs
+++ b/scripts/e2e/mcp-settings.mjs
@@ -58,6 +58,21 @@ export async function mcpOwnerJourneys(page, fixture) {
await page.getByRole("button", { name: "Show expired & disconnected", exact: true }).click();
await expect(page.getByText("Read data · revoked", { exact: true })).toBeVisible();
await nav.getByRole("button", { name: "MCP overview", exact: true }).click();
+ await page.getByRole("tab", { name: /MSO Access/ }).click();
+ const outbound = page.getByRole("navigation", { name: "MCP navigation" });
+ await expect(outbound.getByRole("button", { name: /^Project plugins/ })).toBeVisible();
+ await expect(page.getByText("Each project starts with no SI-Coder or Batonly binding.", { exact: false })).toBeVisible();
+ await outbound.getByRole("button", { name: /^Project plugins/ }).click();
+ await page.getByLabel("Plugin target project").fill(fixture.dir);
+ const siCoder = page.getByRole("listitem").filter({ hasText: "SI-Coder" });
+ await siCoder.getByRole("button", { name: "Check installation", exact: true }).click();
+ await expect(siCoder.getByText("Not installed in this project.", { exact: true })).toBeVisible();
+ await siCoder.getByRole("button", { name: "Install to project", exact: true }).click();
+ await expect(siCoder.getByText("Installed in this project.", { exact: false })).toBeVisible();
+ page.once("dialog", dialog => dialog.accept());
+ await siCoder.getByRole("button", { name: "Uninstall", exact: true }).click();
+ await expect(siCoder.getByText("Not installed in this project.", { exact: true })).toBeVisible();
+ await page.getByRole("tab", { name: /Access MSO/ }).click();
expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1)).toBe(true);
const result = await new AxeBuilder({ page }).include('[data-slot="mcp-page"]').withTags(["wcag2a", "wcag2aa", "wcag21aa"]).analyze();
expect(result.violations.map(v => ({ id: v.id, targets: v.nodes.map(n => n.target) }))).toEqual([]);