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.

refactor(mcp): preserve architecture line ratchet

Rahmancfa9d296bb6d
diff --git a/lib/mcp/tools-mutate.ts b/lib/mcp/tools-mutate.ts
index fdd7b926..3b3a8a44 100644
--- a/lib/mcp/tools-mutate.ts
+++ b/lib/mcp/tools-mutate.ts
@@ -5,10 +5,7 @@ import { resolveProjectHint, runProjectFunction } from "@/lib/host/projects-api"
import { importOpenAiProvidedFile } from "./openai-file-upload";
import { type McpTool, opt, PATH_P, S, str } from "./tool-kit";
import { requireWorkflowExecCwd, requireWorkflowMutationPath, requireWorkflowProjectTarget } from "./workflow-workspace-guard";
-
-// The write and exec tiers. Each carries an `audit` descriptor — the dispatcher,
-// not the tool, writes the trail, because these call lib/host directly and so
-// never pass the route-layer audit that covers /api/v1.
+// Write/exec tools carry audit descriptors; the dispatcher records the route-independent trail.
export const MUTATE_TOOLS: McpTool[] = [
{
name: "fs_write",
diff --git a/lib/mcp/tools-workflow-start.ts b/lib/mcp/tools-workflow-start.ts
index a080bb6b..e6db4be1 100644
--- a/lib/mcp/tools-workflow-start.ts
+++ b/lib/mcp/tools-workflow-start.ts
@@ -15,8 +15,7 @@ import { WORKFLOW_START_OUTPUT, workflowStartProjection } from "./tools-workflow
import { workflowStartAgentMemory } from "./workflow-start-memory";
import { AGENT_BOOTSTRAP_SKILL, workflowOrientation, workflowStartPolicy } from "./instructions";
import { workflowStartCandidateContext } from "./workflow-start-candidates";
-import { prepareWorkflowStartWorkspace, startWorkflowWithWorkspace, workflowWorkspaceResources } from "./workflow-start-workspace";
-import { updateAgentSessionLocation } from "@/lib/agent/session-store";
+import { prepareWorkflowStartWorkspace, startWorkflowWithWorkspace, workflowWorkspaceResources } from "./workflow-start-workspace"; import { updateAgentSessionLocation } from "@/lib/agent/session-store";
export const WORKFLOW_START_TOOL: McpTool = {
name: "workflow_start",
description: "First call for multi-step work: resolve project context, search trusted skills/recipes/graphs, and return workflow_id. Carry that exact id on later steps. Read official skill mso-agent-bootstrap when learning the MSO map.",