You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Standalone CLI and stdio MCP server can't take any devtools config #93
P2Important to many users, with a workaroundarea: agentsMCP server, agent tools and resourcesfeatureA feature request or a pull request that adds oneneeds triageNot looked at by a maintainer yet
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.
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.
P2Important to many users, with a workaroundarea: agentsMCP server, agent tools and resourcesfeatureA feature request or a pull request that adds oneneeds triageNot looked at by a maintainer yet
Activity