Skip to content

[Bug]: Executing "cli-anything-browser --json fs ls" yields no return results #217

@qingminglong

Description

@qingminglong

Affected Software/Harness

Harness

Version / Commit

main

Operating System

Linux

Python Version

3.11.13

Steps to Reproduce

  1. Install DomShell
    npm install -g @apireno/domshell
  2. Config environment variables
    export DOMSHELL_TOKEN='322c0ae46e81fe47711e5730bef9f536b97ab262beaca924'
  3. Start Mcp
    npx @apireno/domshell --allow-write --token 322c0ae46e81fe47711e5730bef9f536b97ab262beaca924

Expected Behavior

(base) ➜ Desktop cli-anything-browser --json fs ls

{
"path": "/",
"entries": [
{
"name": "link_link",
"role": "container",
"path": "/link_link"
},
{
"name": "banner_116",
"role": "container",
"path": "/banner_116"
},
{
"name": "complementary_173",
"role": "container",
"path": "/complementary_173"
},
{
"name": "main_390",
"role": "container",
"path": "/main_390"
},
{
"name": "image_img",
"role": "container",
"path": "/image_img"
},
{
"name": "image_img_2",
"role": "container",
"path": "/image_img_2"
},
{
"name": "image_img_3",
"role": "container",
"path": "/image_img_3"
},
{
"name": "image_img_4",
"role": "container",
"path": "/image_img_4"
},
{
"name": "image_img_5",
"role": "container",
"path": "/image_img_5"
},
{
"name": "image_img_6",
"role": "container",
"path": "/image_img_6"
},
{
"name": "image_img_7",
"role": "container",
"path": "/image_img_7"
}
],
"raw_text": "link_link\r\nbanner_116/\r\ncomplementary_173/\r\nmain_390/\r\nimage_img\r\nimage_img_2\r\nimage_img_3\r\nimage_img_4\r\nimage_img_5\r\nimage_img_6\r\nimage_img_7"
}

Actual Behavior

(base) ➜ Desktop cli-anything-browser --json fs ls

After executing the above instruction, it has been stuck without any output
上面指令执行后,一直卡住没任何输出

Relevant Logs / Tracebacks

Additional Context

1、View environment variables(查看环境变量)

(base) ➜ Desktop env | grep DOM
DOMSHELL_TOKEN=322c0ae46e81fe47711e5730bef9f536b97ab262beaca924

(base) ➜ Desktop npx @apireno/domshell --allow-write --token 322c0ae46e81fe47711e5730bef9f536b97ab262beaca924

2、Start MCP(启动MCP)
[DOMShell MCP] Starting DOMShell MCP server...
[DOMShell MCP] WebSocket bridge listening on ws://127.0.0.1:9876
[DOMShell MCP]
[DOMShell MCP] MCP HTTP endpoint: http://127.0.0.1:3001/mcp
[DOMShell MCP] WebSocket bridge: ws://127.0.0.1:9876
[DOMShell MCP] Auth token: 322c0ae46e81fe47711e5730bef9f536b97ab262beaca924
[DOMShell MCP]
[DOMShell MCP] In the DOMShell terminal, run:
[DOMShell MCP] connect 322c0ae46e81fe47711e5730bef9f536b97ab262beaca924
[DOMShell MCP]
[DOMShell MCP] Security: write=ON, sensitive=OFF, confirm=ON
[DOMShell MCP] Domains: all (no restriction)
[DOMShell MCP] Audit log: audit.log
[DOMShell MCP]
[DOMShell MCP] Configure MCP clients with:
[DOMShell MCP] { "url": "http://localhost:3001/mcp?token=322c0ae46e81fe47711e5730bef9f536b97ab262beaca924" }
[DOMShell MCP] Connection rejected: invalid auth token
[DOMShell MCP] Connection rejected: invalid auth token
[DOMShell MCP] Extension connected (authenticated)

3、Chrome plugin link MCP successful(chrome插件链接MCP成功)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions