@@ -15,7 +15,7 @@ _ark_gen_opts_arg="--output-filename -o --scan-buffer -b --output-format -f --ma
1515 --pattern-regex -x --include-ext -i --exclude-dir-regex -g --exclude-file-regex -G \
1616 --exclude-ext -e --exclude-dir -E"
1717_ark_mcp_flags=" --skip-non-utf8 -s --delete-comments -D"
18- _ark_mcp_opts_arg=" --root -r --port -p --scan-buffer -b --mask-secrets -m --allow-gitignore -a \
18+ _ark_mcp_opts_arg=" --root -r --type -t --http- port -p --scan-buffer -b --mask-secrets -m --allow-gitignore -a \
1919 --additionally-ignorerule -A --ignore-dotfile -d --pattern-regex -x --include-ext -i \
2020 --exclude-dir-regex -g --exclude-file-regex -G --exclude-ext -e --exclude-dir -E"
2121_ark_subcommands=" mcp-server"
@@ -78,7 +78,9 @@ _ark_bash() {
7878 COMPREPLY=( $( compgen -W " go js ts py java c cpp h txt md html css xml yml yaml json" -- " $cur " ) ); return 0 ;;
7979 --output-filename|-o|--additionally-ignorerule|-A|--root|-r)
8080 _filedir; return 0 ;;
81- --port|-p)
81+ --type|-t)
82+ COMPREPLY=( $( compgen -W " stdio http" -- " $cur " ) ); return 0 ;;
83+ --http-port|-p)
8284 COMPREPLY=( $( compgen -W " 8008 8522 8080 9000" -- " $cur " ) ); return 0 ;;
8385 --scan-buffer|-b)
8486 COMPREPLY=( $( compgen -W " 1M 5M 10M 100K" -- " $cur " ) ); return 0 ;;
@@ -123,7 +125,8 @@ _ark_zsh() {
123125
124126 local -a mcp_opts=(
125127 ' --root[-r]:root directory:_files -/'
126- ' --port[-p]:port number:(8008 8522 8080 9000)'
128+ ' --type[-t]:mcp type:(stdio http)'
129+ ' --http-port[-p]:port number:(8008 8522 8080 9000)'
127130 ' --scan-buffer[-b]:buffer size:(1M 5M 10M 100K)'
128131 ' --mask-secrets[-m]:on/off:(on off)'
129132 ' --allow-gitignore[-a]:on/off:(on off)'
0 commit comments