Skip to content

Standalone CLI and stdio MCP server can't take any devtools config #93

Closed

Description

@erkamyaman

Problem

The config from #56 (inspectors, agent.readOnly, agent.tools, actions, redaction, limits) only reaches the hub, the Vite plugin and createNgDevtools(). The binary passes the default export to createCac (packages/ng-devtools/bin.mjs:5). That export always uses the defaults (packages/ng-devtools/src/devframe.ts:150). mcp --help lists only --help, and dev --help has no config or read-only option.

So ng-devtools mcp, the command agent clients run, registers every tool. Run from an empty folder, tools/list returns 44 tools. They include page-only and write tools (highlight, navigate, form-action, fill-form) that can't work because no page connects over stdio. They also include 10 analog-* tools, whatever the project is. The docs say stdio exposes source scan tools only (apps/docs/src/content/agents/mcp-server.md:29), which doesn't match.

Some clients cap tool counts (Cursor at 40: https://forum.cursor.com/t/tools-limited-to-40-total/67976). dev --host 0.0.0.0 can't turn write actions off, and build always includes every inspector. The Angular CLI MCP server offers a --read-only flag (https://angular.dev/ai/mcp).

Proposed scope

  • Add a --config <file> flag, plus a default file (for example ng-devtools.config.json) or an env var, so the stdio path can read config. Maybe add a --read-only shortcut.
  • Pass the config through createNgDevtools() for dev, build and mcp.
  • Drop page-only tools from mcp by default.
  • Update the docs and add an MCP tool-list test that uses a config.

Activity

  1. added
    feature
    P2
    needs triage
    area: agents
    on Sep 30, 2026
  2. self-assigned this
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2area: agentsfeatureneeds triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions