Skip to content

Commit 397b6f6

Browse files
committed
fix(cli): fix mcp arg parsing.
1 parent e76caee commit 397b6f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vectorcode/mcp_main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ async def mcp_server():
196196

197197
def parse_cli_args(args: Optional[list[str]] = None) -> MCPConfig:
198198
parser = get_arg_parser()
199-
parsed_args = parser.parse_args(args or sys.argv)
199+
parsed_args = parser.parse_args(args or sys.argv[1:])
200200
return MCPConfig(n_results=parsed_args.number, ls_on_start=parsed_args.ls_on_start)
201201

202202

0 commit comments

Comments
 (0)