Files
seal-use/src/cli/commands/mcp.ts
T

28 lines
591 B
TypeScript

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-home": {
type: "stdio",
command: "seal-home",
args: ["mcp"],
env: {
SEAL_HOME_MCP_ENABLED: "true"
}
}
}
});
}