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.

741 B
Raw Blame
import { readProjectMcpServers } from "@/lib/host/project-mcp-config";
import { managedScCall } from "@/lib/host/sc-consumer";
import { executeIntegrationAction, queryIntegrationAction } from "@/lib/infra/connection-dispatch";

/** Orchestrate two domains above the transport; neither domain imports the other. */
export async function callManagedScProvider(projectPath: string, serverName: string, name: string, args: unknown) {
  const server = (await readProjectMcpServers(projectPath)).find(row => row.name === serverName);
  if (server?.transport !== "plugin") return { handled: false as const };
  return managedScCall(name, args, (mode, input) => mode === "query" ? queryIntegrationAction(input) : executeIntegrationAction(input));
}