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.

559 B
Raw Blame
import type { McpTool } from "./tool-kit";

const WORKFLOW_CONTEXT_EXEMPT = new Set([
  "skills_search", "workflow_start", "workflow_status", "workflow_cancel", "workflow_finish",
]);

export const withWorkflowContext = (tool: McpTool): McpTool => WORKFLOW_CONTEXT_EXEMPT.has(tool.name) ? tool : ({
  ...tool,
  inputSchema: {
    ...tool.inputSchema,
    properties: {
      ...tool.inputSchema.properties,
      workflow_id: {
        type: "string",
        description: "Exact workflow_start id. Omit only for standalone calls.",
      },
    },
  },
});