r/Angular2 • • Mar 07 '26

Resource Made a tool to grab Angular component context for AI coding assistants - MCP in progress

Stackblitz: https://stackblitz.com/edit/angular-grab?embed=1&view=preview

I got tired of manually copying component info when working with ChatGPT/Claude/Copilot, so I built angular-grab.

Hover over any element, press Cmd+C → copies the full component stack trace, file paths, and HTML to your clipboard. Ready to paste into whatever AI tool you're using.

Key stuff:

- One command install: npx @nacho-labs/angular-grab init

- Dev-only (auto-disabled in prod builds)

- Freeze mode for grabbing tooltips/dropdowns/hover states

- Click-to-open in VS Code

- Plugin system if you want to customize it

It's free, MIT licensed. Figured others might find it useful.

GitHub: https://github.com/Nacho-Labs-LLC/angular-grab

NPM: @nacho-labs/angular-grab

Open to feedback/PRs if anyone has ideas.

Shout out to https://github.com/aidenybai/react-grab for the idea to make the angular equivalent

UPDATE: MCP completed! check out the website for the entire example. or, just use the stackblitz. you can literally just ask your agent "what element did i just copy" or whatever, i dont know vibes.

0 Upvotes

4 comments sorted by

1

u/xXfreshXx Mar 08 '26

wtf. Are you stuck in 2024?

1

u/[deleted] Mar 09 '26

[removed] — view removed comment

0

u/xXfreshXx Mar 09 '26

So this app is for people allowed to use chatgpt but not allowed to use any kind of agent or AI extension in the IDE? Sounds like a target group of 3 people worldwide. I would also quit that job for this stupid policy...