feat: add support for MCP service and CLI subcommands

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
luckfox-eng29
2026-05-08 11:26:52 +08:00
parent bf84660c8b
commit d47bca1940
9 changed files with 1344 additions and 102 deletions

View File

@@ -1,9 +1,15 @@
package main
import (
"os"
"kvm"
)
func main() {
if len(os.Args) > 1 && os.Args[1] == "cli" {
kvm.RunCLI(os.Args[2:])
return
}
kvm.Main()
}