Skip to content

Commit 95dad5d

Browse files
feat: Enterprise Apps Hub with Playwright Generator v0.0.9
- Added Enterprise Apps Hub with 6 AI-powered apps - Playwright Script Generator: Creates complete test projects from natural language - Multi-language support (TypeScript, JavaScript, Python) - Browser selection (Chrome, Edge) - File attachments (Excel, Word, TXT, MD) - AI model selection from vscode.lm API - Automatic project folder creation with all files - Code Review, Commit Messages, Documentation, Quick Prompt, Code Improver apps - Updated README with new features - Fixed UI handlers for project creation feedback
1 parent 29c0413 commit 95dad5d

19 files changed

Lines changed: 8087 additions & 302 deletions

README.md

Lines changed: 50 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# GitHub Copilot API Gateway for VS Code
22

3-
**Transform your GitHub Copilot subscription into a fully-featured, OpenAI-compatible API server.**
3+
**Transform your GitHub Copilot subscription into a powerful AI development platform.**
44

5-
A production-ready VS Code extension that exposes GitHub Copilot as a local HTTP API server. Compatible with OpenAI, Anthropic Claude, and Google Gemini client libraries—connect any AI-powered application to Copilot without code changes.
5+
A production-ready VS Code extension that exposes GitHub Copilot as a local HTTP API server AND provides enterprise-grade AI apps for developers. Compatible with OpenAI, Anthropic Claude, and Google Gemini client libraries—connect any AI-powered application to Copilot without code changes.
66

77
[![Visual Studio Code](https://img.shields.io/badge/VS%20Code-1.99.0+-007ACC?logo=visual-studio-code)](https://code.visualstudio.com/)
88
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -12,6 +12,32 @@ A production-ready VS Code extension that exposes GitHub Copilot as a local HTTP
1212

1313
---
1414

15+
## 🚀 What's New in v0.0.9
16+
17+
### Enterprise Apps Hub
18+
19+
A powerful suite of AI-powered apps built directly into VS Code:
20+
21+
| App | Description |
22+
|-----|-------------|
23+
| 🎭 **Playwright Script Generator** | Generate production-ready Playwright tests from natural language. Creates complete projects with package.json, config, and test files. |
24+
| 🔍 **Code Review Assistant** | AI-powered code reviews with actionable feedback for your Git diffs |
25+
| 📝 **Commit Message Generator** | Generate semantic commit messages from staged changes |
26+
| 📖 **Documentation Generator** | Auto-generate docs for your codebase |
27+
|**Quick Prompt** | Fast AI responses for any question |
28+
|**Code Improver** | Refactor and optimize your code |
29+
30+
### Playwright Generator Features
31+
32+
- **Multi-language support**: TypeScript, JavaScript, Python
33+
- **Browser selection**: Google Chrome, Microsoft Edge
34+
- **File attachments**: Upload Excel, Word, TXT, MD files with test steps
35+
- **AI Model selection**: Choose from available VS Code language models
36+
- **Automatic project creation**: Creates complete project folder with all files
37+
- **One-click setup**: Commands for npm install and running tests
38+
39+
---
40+
1541
## Overview
1642

1743
GitHub Copilot API Gateway creates a local HTTP server that bridges your existing Copilot subscription to any OpenAI-compatible client. This enables developers to:
@@ -20,13 +46,23 @@ GitHub Copilot API Gateway creates a local HTTP server that bridges your existin
2046
- Integrate Copilot into custom workflows without additional API costs
2147
- Share Copilot access across your local network securely
2248
- Extend Copilot with Model Context Protocol (MCP) tools
49+
- **NEW**: Use AI-powered apps directly in VS Code
2350

2451
**No additional API keys required.** Your existing GitHub Copilot subscription handles all requests.
2552

2653
---
2754

2855
## Key Features
2956

57+
### 🎭 Enterprise Apps Hub
58+
59+
Access powerful AI apps without leaving VS Code:
60+
61+
1. Click **📦 Open Apps Hub** in the sidebar
62+
2. Choose an app (Playwright Generator, Code Review, etc.)
63+
3. Fill in the inputs and click generate
64+
4. Get production-ready output with one click
65+
3066
### Multi-Provider API Compatibility
3167

3268
| Provider | Endpoint | SDK Support |
@@ -64,7 +100,6 @@ Extend Copilot's capabilities with external tools:
64100
### Interactive Dashboard
65101

66102
- **Real-time Statistics**: Requests, tokens, latency, and error monitoring
67-
- **Prompt Generator**: AI-powered tool to create detailed, actionable prompts
68103
- **API Reference**: Code examples for Python, JavaScript, cURL, and MCP integration
69104
- **Visual Analytics**: Charts for daily usage patterns and token consumption
70105

@@ -85,6 +120,13 @@ Extend Copilot's capabilities with external tools:
85120
3. Run **"Copilot API: Controls"** and select **"Start Server"**
86121
4. The API server starts at `http://127.0.0.1:3030`
87122

123+
### Using Apps Hub
124+
125+
1. Open the **Copilot API** sidebar
126+
2. Click **📦 Open Apps Hub**
127+
3. Select an app to launch it in a new tab
128+
4. Fill in the form and generate!
129+
88130
---
89131

90132
## Quick Start
@@ -156,115 +198,15 @@ GitHub Copilot API Gateway is compatible with the entire OpenAI ecosystem. Any l
156198
| [AutoGPT](https://github.com/Significant-Gravitas/AutoGPT) | Autonomous AI agent | Set `OPENAI_API_BASE` environment variable |
157199
| [CrewAI](https://crewai.com) | Multi-agent orchestration | Configure OpenAI base URL in agent settings |
158200
| [MetaGPT](https://github.com/geekan/MetaGPT) | Multi-agent meta programming | Use custom OpenAI endpoint |
159-
| [BabyAGI](https://github.com/yoheinakajima/babyagi) | Task-driven autonomous agent | Set OpenAI base URL |
160-
| [SuperAGI](https://superagi.com) | Open-source AGI framework | Configure API endpoint |
161201

162202
### Development Tools
163203

164204
| Tool | Purpose | Integration Method |
165205
|------|---------|-------------------|
166-
| [Ollama](https://ollama.ai) | Local LLM hosting | Compatible interface; use as alternative backend |
167-
| [LM Studio](https://lmstudio.ai) | Local model management | Same OpenAI-compatible protocol |
168206
| [Continue](https://continue.dev) | VS Code AI coding assistant | Configure OpenAI provider URL |
169207
| [Aider](https://aider.chat) | AI pair programming in terminal | Set `--openai-api-base` flag |
170208
| [Open Interpreter](https://openinterpreter.com) | Natural language computer control | Configure API base URL |
171209

172-
### LangChain Integration Example
173-
174-
```python
175-
from langchain_openai import ChatOpenAI
176-
177-
llm = ChatOpenAI(
178-
base_url="http://127.0.0.1:3030/v1",
179-
api_key="not-needed",
180-
model="gpt-4o"
181-
)
182-
183-
response = llm.invoke("Explain quantum computing")
184-
print(response.content)
185-
```
186-
187-
### LangChain with Agents and Tools
188-
189-
```python
190-
from langchain_openai import ChatOpenAI
191-
from langchain.agents import create_react_agent, Tool
192-
from langchain import hub
193-
194-
llm = ChatOpenAI(
195-
base_url="http://127.0.0.1:3030/v1",
196-
api_key="not-needed"
197-
)
198-
199-
tools = [
200-
Tool(name="Search", func=search_function, description="Search the web"),
201-
Tool(name="Calculate", func=calculate, description="Perform math")
202-
]
203-
204-
prompt = hub.pull("hwchase17/react")
205-
agent = create_react_agent(llm, tools, prompt)
206-
```
207-
208-
### LlamaIndex Integration
209-
210-
```python
211-
from llama_index.llms.openai import OpenAI
212-
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
213-
214-
llm = OpenAI(
215-
api_base="http://127.0.0.1:3030/v1",
216-
api_key="not-needed",
217-
model="gpt-4o"
218-
)
219-
220-
documents = SimpleDirectoryReader("data").load_data()
221-
index = VectorStoreIndex.from_documents(documents, llm=llm)
222-
query_engine = index.as_query_engine()
223-
response = query_engine.query("Summarize the documents")
224-
```
225-
226-
### AutoGPT / Agent Frameworks
227-
228-
Set environment variables before running:
229-
230-
```bash
231-
export OPENAI_API_BASE=http://127.0.0.1:3030/v1
232-
export OPENAI_API_KEY=not-needed
233-
```
234-
235-
### CrewAI Example
236-
237-
```python
238-
from crewai import Agent, Task, Crew
239-
from langchain_openai import ChatOpenAI
240-
241-
llm = ChatOpenAI(
242-
base_url="http://127.0.0.1:3030/v1",
243-
api_key="not-needed"
244-
)
245-
246-
researcher = Agent(
247-
role="Researcher",
248-
goal="Research and analyze topics",
249-
llm=llm
250-
)
251-
252-
task = Task(description="Research AI trends", agent=researcher)
253-
crew = Crew(agents=[researcher], tasks=[task])
254-
result = crew.kickoff()
255-
```
256-
257-
### Building Custom Tools and Services
258-
259-
With the gateway running, you can build:
260-
261-
- **RAG Applications**: Combine with vector databases (Pinecone, Weaviate, Chroma) for retrieval-augmented generation
262-
- **Chatbots**: Power conversational interfaces with frameworks like Rasa or Botpress
263-
- **Code Assistants**: Build custom IDE integrations or CLI tools
264-
- **Document Processing**: Automate analysis, summarization, and extraction
265-
- **API Services**: Create microservices that leverage Copilot for AI capabilities
266-
- **Automation Pipelines**: Integrate with n8n, Zapier, or custom workflows
267-
268210
---
269211

270212
## Model Context Protocol (MCP)
@@ -284,17 +226,12 @@ Add MCP servers to your VS Code `settings.json`:
284226
"git": {
285227
"command": "npx",
286228
"args": ["-y", "@modelcontextprotocol/server-git"]
287-
},
288-
"remote": {
289-
"url": "http://localhost:8000/sse"
290229
}
291230
}
292231
```
293232

294233
### Built-in VS Code Tools
295234

296-
The following tools are available automatically:
297-
298235
| Tool | Description | Parameters |
299236
|------|-------------|------------|
300237
| `vscode_read_file` | Read file contents from workspace | `uri` |
@@ -313,19 +250,13 @@ All settings are prefixed with `githubCopilotApi.`:
313250
|---------|------|---------|-------------|
314251
| `server.enabled` | boolean | `false` | Enable or disable the API server |
315252
| `server.autoStart` | boolean | `false` | Start server automatically when VS Code launches |
316-
| `server.showNotifications` | boolean | `true` | Display notifications on server start |
317253
| `server.host` | string | `127.0.0.1` | Bind address (`0.0.0.0` for LAN access) |
318254
| `server.port` | number | `3030` | HTTP server port |
319255
| `server.apiKey` | string || Optional Bearer token for authentication |
320256
| `server.ipAllowlist` | array | `[]` | Allowed IP addresses or CIDR ranges |
321-
| `server.redactionPatterns` | array | `[]` | Regex patterns for data masking |
322257
| `server.rateLimitPerMinute` | number | `60` | Maximum requests per minute |
323258
| `server.maxConcurrentRequests` | number | `4` | Maximum parallel request processing |
324-
| `server.maxConnectionsPerIp` | number | `10` | Connection limit per client IP |
325-
| `server.requestTimeout` | number | `120000` | Request timeout in milliseconds |
326-
| `server.maxPayload` | number | `10485760` | Maximum request body size (bytes) |
327259
| `mcp.enabled` | boolean | `true` | Enable Model Context Protocol |
328-
| `audit.logRequestBodies` | boolean | `false` | Log request payloads (security consideration) |
329260

330261
---
331262

@@ -339,33 +270,22 @@ All settings are prefixed with `githubCopilotApi.`:
339270
| `GET` | `/v1/models` | List available models |
340271
| `GET` | `/docs` | Interactive Swagger UI documentation |
341272
| `GET` | `/v1/usage` | Usage statistics |
342-
| `WS` | `/v1/realtime` | WebSocket real-time communication |
343273

344274
---
345275

346276
## Troubleshooting
347277

348278
### Server Fails to Start
349279

350-
1. **Port conflict**: Check if port 3030 is in use with `lsof -i :3030` and change the port in settings if necessary
280+
1. **Port conflict**: Check if port 3030 is in use with `lsof -i :3030`
351281
2. **Authentication**: Verify GitHub Copilot is signed in via the VS Code status bar
352282
3. **Extensions**: Ensure both GitHub Copilot and GitHub Copilot Chat extensions are installed
353283

354-
### "Copilot Chat extension not found"
355-
356-
Install the GitHub Copilot Chat extension (ID: `GitHub.copilot-chat`) and restart VS Code.
357-
358-
### LAN Access Issues
359-
360-
1. Set `server.host` to `0.0.0.0` in settings
361-
2. Verify firewall allows connections on port 3030
362-
3. Use the IP address from the dashboard, not `localhost`
363-
364-
### Slow Response Times
284+
### Apps Hub Issues
365285

366-
1. First request after startup is slower (cold start)
367-
2. Reduce `maxConcurrentRequests` if making parallel requests
368-
3. Check network connectivity
286+
1. **No response**: Check that GitHub Copilot Chat extension is installed
287+
2. **Slow generation**: Large prompts may take longer; check your network connection
288+
3. **File creation fails**: Ensure you have write permissions to the target folder
369289

370290
---
371291

@@ -409,7 +329,6 @@ This extension is an independent project and is not affiliated with, endorsed by
409329
**Suhaib Bin Younis**
410330

411331
- Website: [suhaibbinyounis.com](https://suhaibbinyounis.com) | [suhaib.in](https://suhaib.in)
412-
- Email: [vscode@suhaib.in](mailto:vscode@suhaib.in)
413332
- GitHub: [@suhaibbinyounis](https://github.com/suhaibbinyounis)
414333

415334
---

0 commit comments

Comments
 (0)