Skip to content

CLI: mock_network is refused as "category disabled", while docs/cli.md says the CLI supports tools that need a flag #3589

Description

@MdMotahir

Description of the bug

docs/cli.md says: "The CLI supports all tools available in the MCP server even if they require a flag to activate in the MCP server".

With the daemon started by a plain chrome-devtools start, or by the first command, the network mock tools are refused:

$ npx chrome-devtools mock_network 2 --route "http://localhost:8150/api/checkout" --body ok.json
Tool mock_network is in category Network mocks which is currently disabled. Enable it by running chrome-devtools start --categoryNetworkMocks=true. For more information check the README.

remove_network_mock answers the same. After chrome-devtools stop and chrome-devtools start --categoryNetworkMocks=true, both work, and so they do with "categoryNetworkMocks": true in the config file.

Found while testing the CLI by hand for a written guide at HyScaler.

Reproduction

No response

Expectation

Either the two tools work in the CLI without the flag, as the sentence in the CLI guide says, or the guide names the categories that still need a flag at start. The error message is clear and names the fix, so this is mostly about that sentence.

MCP configuration

No response

Chrome DevTools MCP version

1.13.0

Chrome version

158

Coding agent version

No response

Model version

No response

Chat log

No response

Node version

22.23.5

Operating system

Linux

Extra checklist

  • I want to provide a PR to fix this bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions