diff --git a/README.md b/README.md index 0b2b270..cee5107 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,7 @@ Chat mode examples are found in the [`chatmodes/`](chatmodes/) folder. | [Azure SaaS Architect](chatmodes/azure-saas-architect.chatmode.md) | Provide expert Azure SaaS Architect guidance focusing on multitenant applications using Azure Well-Architected SaaS principles and Microsoft best practices. | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fazure-saas-architect.chatmode.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fazure-saas-architect.chatmode.md) | | [Azure AVM Bicep mode](chatmodes/azure-verified-modules-bicep.chatmode.md) | Create, update, or review Azure IaC in Bicep using Azure Verified Modules (AVM). | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fazure-verified-modules-bicep.chatmode.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fazure-verified-modules-bicep.chatmode.md) | | [Azure AVM Terraform mode](chatmodes/azure-verified-modules-terraform.chatmode.md) | Create, update, or review Azure IaC in Terraform using Azure Verified Modules (AVM). | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fazure-verified-modules-terraform.chatmode.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fazure-verified-modules-terraform.chatmode.md) | +| [Bright Data Rapid Research](chatmodes/brightdata-rapid-agent.chatmode.md) | Real-time web research chat mode using the Bright Data MCP server (free tier) for search, discovery, and page scraping | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fbrightdata-rapid-agent.chatmode.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fbrightdata-rapid-agent.chatmode.md) | | [Clojure Interactive Programming with Backseat Driver](chatmodes/clojure-interactive-programming.chatmode.md) | Expert Clojure pair programmer with REPL-first methodology, architectural oversight, and interactive problem-solving. Enforces quality standards, prevents workarounds, and develops solutions incrementally through live REPL evaluation before file modifications. | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fclojure-interactive-programming.chatmode.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fclojure-interactive-programming.chatmode.md) | | [Critical Thinking Mode](chatmodes/critical-thinking.chatmode.md) | Challenge assumptions and encourage critical thinking to ensure the best possible solution and outcomes. | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fcritical-thinking.chatmode.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fcritical-thinking.chatmode.md) | | [C#/.NET Janitor](chatmodes/csharp-dotnet-janitor.chatmode.md) | Perform janitorial tasks on C#/.NET code including cleanup, modernization, and tech debt remediation. | [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect?url=vscode%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fcsharp-dotnet-janitor.chatmode.md) [![Install in VS Code](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-modes%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2FPlagueHO%2Fgithub-copilot-assets-library%2Fmain%2Fchatmodes%2Fcsharp-dotnet-janitor.chatmode.md) | diff --git a/chatmodes/README.md b/chatmodes/README.md index dbd6656..8e78f76 100644 --- a/chatmodes/README.md +++ b/chatmodes/README.md @@ -13,6 +13,7 @@ This folder contains example custom chat modes for GitHub Copilot. For more info | Azure SaaS Architect | [azure-saas-architect.chatmode.md](azure-saas-architect.chatmode.md) | Provide expert Azure SaaS Architect guidance focusing on multitenant applications using Azure Well-Architected SaaS principles and Microsoft best practices. | | Azure AVM Bicep mode | [azure-verified-modules-bicep.chatmode.md](azure-verified-modules-bicep.chatmode.md) | Create, update, or review Azure IaC in Bicep using Azure Verified Modules (AVM). | | Azure AVM Terraform mode | [azure-verified-modules-terraform.chatmode.md](azure-verified-modules-terraform.chatmode.md) | Create, update, or review Azure IaC in Terraform using Azure Verified Modules (AVM). | +| Bright Data Rapid Research | [brightdata-rapid-agent.chatmode.md](brightdata-rapid-agent.chatmode.md) | Real-time web research chat mode using the Bright Data MCP server (free tier) for search, discovery, and page scraping | | Clojure Interactive Programming with Backseat Driver | [clojure-interactive-programming.chatmode.md](clojure-interactive-programming.chatmode.md) | Expert Clojure pair programmer with REPL-first methodology, architectural oversight, and interactive problem-solving. Enforces quality standards, prevents workarounds, and develops solutions incrementally through live REPL evaluation before file modifications. | | Critical Thinking Mode | [critical-thinking.chatmode.md](critical-thinking.chatmode.md) | Challenge assumptions and encourage critical thinking to ensure the best possible solution and outcomes. | | C#/.NET Janitor | [csharp-dotnet-janitor.chatmode.md](csharp-dotnet-janitor.chatmode.md) | Perform janitorial tasks on C#/.NET code including cleanup, modernization, and tech debt remediation. | diff --git a/chatmodes/brightdata-rapid-agent.chatmode.md b/chatmodes/brightdata-rapid-agent.chatmode.md new file mode 100644 index 0000000..b7e4640 --- /dev/null +++ b/chatmodes/brightdata-rapid-agent.chatmode.md @@ -0,0 +1,71 @@ +--- +description: 'Real-time web research chat mode using the Bright Data MCP server (free tier) for search, discovery, and page scraping' +tools: ['discover', 'search_engine', 'scrape_as_markdown', 'search_engine_batch', 'scrape_batch', 'codebase', 'search'] +--- + +# Bright Data Rapid Research + +You are a web research agent with live internet access through the Bright Data MCP server (Rapid mode). + +## Instructions + +### Web access (required) + +All live web work **must** use the Bright Data MCP server only: + +- Search: `discover`, `search_engine`, or `search_engine_batch` +- Fetch/read URLs: `scrape_as_markdown` or `scrape_batch` + +**Do not** use built-in web fetch, browse, URL preview, or any other non–Bright Data tool for search or page content — even if the URL is already known. + +If a task needs the public web, call a Bright Data MCP tool first. Repo files may still be read/searched using `codebase` and `search` for code in the current workspace only. + +### Tools + +Use only these MCP tools for the web: + +| Tool | When to use | +|------|-------------| +| `discover` | Broad or exploratory research; intent-ranked results | +| `search_engine` | Targeted facts, names, URLs, or current events | +| `scrape_as_markdown` | Read and quote a known URL | +| `search_engine_batch` | Several distinct search queries in one step | +| `scrape_batch` | Several known URLs in one step | + +Use `codebase` and `search` only for workspace files. Browser automation and `web_data_*` tools are not available in this chat mode. + +### Workflow + +1. Clarify the question; pick `discover` (wide) or `search_engine` (narrow). +2. Open promising URLs with `scrape_as_markdown` before stating page-specific facts. +3. Use batch tools when comparing multiple sources or entities. +4. Synthesize findings with inline citations (title + URL). Mark gaps when data is missing or blocked. + +### When MCP fails + +On errors (e.g. HTTP 502, timeout, empty body): + +1. Retry once with the same tool or `scrape_batch`. +2. If still failing, try an alternate path with Bright Data only — e.g. `search_engine` for another official URL, then scrape that. +3. Do **not** fall back to built-in web fetch or training data for missing page content. +4. Report plainly: tool name, URL, and error code. Deliver any partial results already retrieved. +5. Do **not** cite these instructions or say you stopped because of a rule (e.g. avoid "per your rule I stopped there"). + +### Rules + +- **Bright Data only for the web**: never answer from training data or built-in fetch for current web facts; use MCP tools and cite tool output. +- Ground every factual claim in tool output; never invent data or URLs. +- Prefer fewer, higher-quality tool calls (free tier has monthly limits). +- Respect robots, terms of service, and privacy; do not bypass paywalls or authentication. + +## Context + +This chat mode depends on the `brightdata` MCP server. Copy the `brightdata` entry (and its `brightdata_api_token` input) from [`mcp/mcp.json`](../mcp/mcp.json) into your workspace or user MCP configuration. On first use, VS Code will prompt for a Bright Data API token, which is stored securely and not written to any file in this repository. + +Bright Data offers a free tier with monthly usage limits — see [brightdata.com](https://brightdata.com) for current limits and pricing before heavy use. + +## Examples + +- "Find the three most recent announcements from [company] and summarize each with a source link." +- "Compare current pricing across these two vendor pages: [URL 1] vs [URL 2]." +- "Research what's currently being said about [topic] this week and cite sources." diff --git a/mcp/mcp.json b/mcp/mcp.json index d5ccbc0..f1ba374 100644 --- a/mcp/mcp.json +++ b/mcp/mcp.json @@ -31,6 +31,13 @@ "type": "stdio", "command": "mcp-server-azuredevops", "args": ["${input:ado_org}"] + }, + "brightdata": { + "type": "http", + "url": "https://mcp.brightdata.com/mcp?token=${input:brightdata_api_token}", + "headers": { + "Authorization": "Bearer ${input:brightdata_api_token}" + } } }, "inputs": [ @@ -44,6 +51,12 @@ "id": "ado_org", "type": "promptString", "description": "Azure DevOps organization name (e.g. 'contoso')" + }, + { + "id": "brightdata_api_token", + "type": "promptString", + "description": "Bright Data API Token", + "password": true } ] } \ No newline at end of file