Files
herolib/libarchive/mcp_rhai/mcp/command.v
2025-10-13 05:36:06 +04:00

23 lines
370 B
V

module mcp
import cli
pub const command = cli.Command{
sort_flags: true
name: 'rhai'
// execute: cmd_mcpgen
description: 'rhai command'
commands: [
cli.Command{
name: 'start'
execute: cmd_start
description: 'start the Rhai server'
},
]
}
fn cmd_start(cmd cli.Command) ! {
mut server := new_mcp_server()!
server.start()!
}