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.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
import { inspectProjectMcp, manageProjectMcp } from "@/lib/host/project-mcp-manage";
import { resolveMcpInstallTarget } from "@/lib/host/mcp-install-target";
import { type McpTool, S, str } from "./tool-kit";
import { requireWorkflowProjectTarget } from "./workflow-workspace-guard";
export const PROJECT_MCP_MANAGE_TOOLS: McpTool[] = [{
name: "project_mcp_manage", title: "Install or Manage MCP", scope: "write",
description: "Inspect/install/update/uninstall an MCP binding on one exact project, or project=@host for this MSO host. Host installations never propagate to projects. 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 installed MCPs: project=@host selects this VPS, otherwise choose one exact project. Inspect first; then discover via project_mcp_tools and call via project_mcp_call. No inherited bindings.",
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, actionLimits: { inspect: { max: 120, windowMs: 60_000 } } },
audit: { action: "fs.write", targetArg: "project" },
inputSchema: S({
project: { type: "string", description: "Exact project id/path/name, or @host for the MSO host installation scope." },
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", "batonly"], description: "Reviewed project plugin identity. Installation is explicit-target only; no default activation or project inheritance." },
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, context) => {
if (a.plugin !== undefined && !["si-coder", "batonly"].includes(String(a.plugin))) throw new Error("unsupported project plugin");
const project = await resolveMcpInstallTarget(str(a, "project"), a.action === "upsert");
if (a.action === "inspect") return { project: project.id, installationScope: project.installationScope, ...await inspectProjectMcp(project.path) };
if (a.action !== "upsert" && a.action !== "delete") throw new Error("invalid MCP action");
if (project.installationScope === "project") await requireWorkflowProjectTarget(context, project.path);
return { project: project.id, installationScope: project.installationScope, ...await manageProjectMcp(project.path, { action: a.action, server: str(a, "server"), revision: str(a, "revision"),
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 }) };
},
}];