import { startServer } from "../../server.js"; import { printJson } from "../printer.js"; import type { ParsedArgs } from "../types.js"; export async function handleMcpCommand(action: string | undefined, args: ParsedArgs) { if (action === "config" || action === "json") { printMcpConfig(); return; } await startServer(); } export function printMcpConfig() { printJson({ mcpServers: { "seal-use": { type: "stdio", command: "seal-use", args: ["mcp"], env: { SEAL_USE_MCP_ENABLED: "true" } } } }); }