{"id":29734111,"url":"https://github.com/iamcharankumar/copilot-intellij-agent-hack","last_synced_at":"2026-02-08T16:02:10.579Z","repository":{"id":305458068,"uuid":"1022935378","full_name":"iamcharankumar/copilot-intellij-agent-hack","owner":"iamcharankumar","description":"Turn IntelliJ Into a Context-Aware AI Powerhouse with Claude and MCP","archived":false,"fork":false,"pushed_at":"2025-07-20T08:50:26.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-20T09:21:34.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamcharankumar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-20T06:59:43.000Z","updated_at":"2025-07-20T08:50:27.000Z","dependencies_parsed_at":"2025-07-20T09:21:36.284Z","dependency_job_id":"a9ae9cd9-3bff-43e1-b167-59e2f9ab3995","html_url":"https://github.com/iamcharankumar/copilot-intellij-agent-hack","commit_stats":null,"previous_names":["iamcharankumar/copilot-intellij-agent-hack"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/iamcharankumar/copilot-intellij-agent-hack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcharankumar%2Fcopilot-intellij-agent-hack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcharankumar%2Fcopilot-intellij-agent-hack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcharankumar%2Fcopilot-intellij-agent-hack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcharankumar%2Fcopilot-intellij-agent-hack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamcharankumar","download_url":"https://codeload.github.com/iamcharankumar/copilot-intellij-agent-hack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamcharankumar%2Fcopilot-intellij-agent-hack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29236125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-25T10:39:17.361Z","updated_at":"2026-02-08T16:02:10.545Z","avatar_url":"https://github.com/iamcharankumar.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Author\n\n- **Name:** Charankumar H\n- **LinkedIn:** [Charankumar H](https://www.linkedin.com/in/charankumar-h/)\n- **GitHub:** [@iamcharankumar](https://github.com/iamcharankumar)\n  \n# Turn IntelliJ Into a Context-Aware AI Powerhouse with Claude and MCP\n\nThis repo shows how to integrate GitHub Copilot's IntelliJ plugin with Claude AI Agents using Playwright/Selenium MCP servers. It enables context-driven automation directly inside IntelliJ — where your AI agent understands state (like login), generates real test flows (Java 8/17 + TestNG), and executes actions in a fully wired environment. Perfect for devs and QAs who want to go beyond code suggestions and build smart, interactive workflows. No, you won't require Claude desktop this time. 😉\n\n## Simple Idea\n\n\u003e The LLMs [Large Language Models] has no decision-making capability.\n\u003e So think MCP as your middleware, which use an LLM and talk to you application.\n\u003e In this case our application is [Swag Labs](https://www.saucedemo.com/).\n\u003e When An LLM is integrated with MCP, we get an AI\n\u003e Agent that will help you in decision-making process.\n\n## Prerequisites\n\nEnsure you have the following installed:\n\n1. IntelliJ IDEA (latest)\n2. Node.js + npm (LTS)\n3. GitHub Copilot IntelliJ Plugin\n\n## Install GitHub Copilot IntelliJ Plugin\n\n\u003cimg width=\"992\" height=\"716\" alt=\"Github_Copilot_Plugin\" src=\"https://github.com/user-attachments/assets/899aef89-c388-426a-97d4-11a39cd8b8f5\" /\u003e\n\n1. Open IntelliJ\n2. Navigate to Settings → Plugins\n3. Search for GitHub Copilot\n4. Click Install\n5. Restart IntelliJ\n\n## Authenticate GitHub Copilot\n\n1. After restart, go to File → Settings → Copilot\n2. Click **Sign in to GitHub**\n3. Follow the OAuth flow in the browser and authorize IntelliJ with your GitHub account.\n4. Once authenticated, Copilot will be active in your IntelliJ editor, suggesting code completions and snippets as you\n   type.\n\n\u003cimg width=\"1918\" height=\"1080\" alt=\"AI_Agent_Preview\" src=\"https://github.com/user-attachments/assets/60a8be2e-5e3a-4289-a604-9690bae65e66\" /\u003e\n\n## AI Agent Preview: MCP Server Setup\n\nUse the provided config file to run MCP Servers for Playwright and Selenium.\n\nThe below json is configured with the\nofficial [Playwright MCP](https://github.com/microsoft/playwright-mcp?tab=readme-ov-file#getting-started) server\nand [Angie Jones' Selenium MCP for Claude Desktop](https://github.com/angiejones/mcp-selenium?tab=readme-ov-file#use-with-other-mcp-clients-eg-claude-desktop-etc).\n\n```json\n{\n  \"servers\": {\n    \"playwright\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"@playwright/mcp@latest\"\n      ]\n    },\n    \"selenium\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"@angiejones/mcp-selenium\"\n      ]\n    }\n  }\n}\n```\n\n1. Make sure the above json file is named as `mcp.json` and save in the location\n   `~/.config/github-copilot/intellij/mcp.json.` The config folder is a hidden folder. So make sure that it is unhidden\n   while placing it. Once you completed this step, execute the below command from your terminal.\n2. Execute `cat ~/.config/github-copilot/intellij/mcp.json` to see the content of the `mcp.json` file.\n3. You should be able to see the mcp.json file content like shown in the below image.\n\n\u003cimg width=\"424\" height=\"391\" alt=\"MCP_Json_Content\" src=\"https://github.com/user-attachments/assets/75be072e-1080-4614-9acb-dd9652485f09\" /\u003e\n\n4. Now open your IntelliJ and enter the example prompt to see the MCP + LLM integration.\n\n\u003cimg width=\"1920\" height=\"1080\" alt=\"MCP_Server_Setup\" src=\"https://github.com/user-attachments/assets/150e4dbc-42ea-410a-af16-6ee9a0d3196b\" /\u003e\n\n## What will blow your mind?\n\n1. The agent understands login state — without you telling it.\n   That’s real contextual awareness. No more explaining whether you're logged in or not — it just knows, and adapts.\n2. You can ask for Playwright + TestNG (Java 8, 17, etc.) It generates production-ready automation scripts, not just toy\n   examples. You’ll be committing those outputs straight to your feature branch — seriously, check the demo video.\n3. Here’s the exact natural language prompt used in the demo with Claude Agent + Playwright MCP:\n\n```Plain Text\nUse playwright MCP and Execute the below steps\n\nStep 1: Open chrome browser and launch https://www.saucedemo.com\nStep 2: login with standard_user and secret_sauce\nStep 3: Quit the browser\n```\n\nhttps://github.com/user-attachments/assets/75a1eb5d-8dbe-4d20-a7f7-2705f6631086\n\n## EXTRAS\n\n- Make sure you keep track of your Usage Quota of the GitHub Copilot.\n- Click the GitHub Copilot icon in the bottom right corner of IntelliJ to see your usage stats.\n\n\u003cimg width=\"1920\" height=\"1080\" alt=\"Quota_Usage_1\" src=\"https://github.com/user-attachments/assets/6e8c6cd3-8d37-48e8-bc83-6f3cd74604a7\" /\u003e\n\n- Click on the \"View Quota Usage\" menu to view your current usage and limits.\n- For free version, it is limited. See the image below.\n\n\u003cimg width=\"1920\" height=\"1080\" alt=\"Quota_Usage_2\" src=\"https://github.com/user-attachments/assets/1cd7b79a-16fc-4949-a4a2-c24ac96c2fed\" /\u003e\n\n## Important Note on MCP Tool Prompts\n\n\u003e When using Playwright MCP, Selenium MCP, or any MCP integration with the GitHub Copilot IntelliJ Plugin, you will\n\u003e still encounter the “Do you want to allow...” security prompts during Agent Preview. These prompts are a core security\n\u003e feature of the Copilot plugin and cannot be disabled via configuration — including autoApprove or toolPermissions in\n\u003e your mcp.json. For Playwright MCP tools specifically, these confirmation dialogs are intentional and enforced by design,\n\u003e to ensure secure handling of external tool access (e.g., browser control).\n\u003e ⚠️ Yes — it's not ideal for smooth workflows.\n\u003e ✅ But it's functional, and serves as a backup plan for Claude Desktop agent executions — not a replacement.\n \n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=iamcharankumar/copilot-intellij-agent-hack\u0026type=Date)](https://www.star-history.com/#iamcharankumar/copilot-intellij-agent-hack\u0026Date)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamcharankumar%2Fcopilot-intellij-agent-hack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamcharankumar%2Fcopilot-intellij-agent-hack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamcharankumar%2Fcopilot-intellij-agent-hack/lists"}