|
1 | 1 | # Google Workspace Developer Tools |
2 | 2 |
|
3 | | -This VS Code extension provides a set of tools to help Google Workspace developers. |
| 3 | +[](https://marketplace.visualstudio.com/items?itemName=google-workspace.google-workspace-developer-tools) |
| 4 | +[](https://open-vsx.org/extension/google-workspace/google-workspace-developer-tools) |
| 5 | +[](https://opensource.org/licenses/Apache-2.0) |
4 | 6 |
|
5 | | -## Features |
| 7 | +Enhance your Google Workspace development experience with intelligent OAuth2 scope linting, hover documentation, and AI-powered development tools directly in Visual Studio Code. |
6 | 8 |
|
7 | | -- **OAuth2 Scope Linting**: Get warnings and additional information for Google Workspace [OAuth2 scopes](https://developers.google.com/identity/protocols/oauth2/scopes) in your code. |
| 9 | +## ✨ Features |
8 | 10 |
|
9 | | -  |
| 11 | +### 🔐 OAuth2 Scope Intelligence |
10 | 12 |
|
11 | | -- **MCP (Model Context Protocol) Server**: Registers the Google Workspace Developer Tools MCP server, enabling enhanced development tools. |
| 13 | +Automatically validate and document Google Workspace OAuth2 scopes in your code: |
12 | 14 |
|
13 | | -## Usage |
| 15 | +- **Real-time Validation**: Instantly identify invalid or unknown OAuth2 scope URLs |
| 16 | +- **Security Classification**: Visual warnings for restricted and sensitive scopes |
| 17 | +- **Hover Documentation**: See scope descriptions, associated APIs, and documentation links on hover |
| 18 | +- **Multi-API Support**: Coverage for all Google Workspace APIs (Gmail, Drive, Calendar, Chat, Admin, and more) |
14 | 19 |
|
15 | | -### OAuth2 Scope Linting |
| 20 | + |
16 | 21 |
|
17 | | -Warnings and suggestions will automatically appear for OAuth2 scopes in your code. |
| 22 | +**Scope Classifications:** |
18 | 23 |
|
19 | | -## Installation |
| 24 | +- 🔴 **Restricted**: Scopes requiring additional verification (e.g., `drive`, `gmail.modify`) |
| 25 | +- 🟡 **Sensitive**: Scopes accessing sensitive user data (e.g., `gmail.readonly`, `calendar`) |
| 26 | +- 🟢 **Non-Sensitive**: Basic access scopes (e.g., `userinfo.email`, `userinfo.profile`) |
20 | 27 |
|
21 | | -You can install the Google Workspace Developer Tools extension in a few ways. |
| 28 | +### 🤖 MCP (Model Context Protocol) Server |
22 | 29 |
|
23 | | -### From within VS Code (Recommended) |
| 30 | +Integrated support for AI-powered development through the Google Workspace Developer Tools MCP server: |
24 | 31 |
|
25 | | -1. Launch Visual Studio Code. |
26 | | -2. Go to the **Extensions** view (`Ctrl+Shift+X` or `Cmd+Shift+X`). |
27 | | -3. Search for `Google Workspace Developer Tools`. |
28 | | -4. Click **Install**. |
| 32 | +- Access Google Workspace API documentation directly in your AI coding assistant |
| 33 | +- Get context-aware suggestions for Google Workspace development |
| 34 | +- Enhanced Copilot and other AI tool capabilities for Google Workspace projects |
29 | 35 |
|
30 | | -### From a Marketplace |
| 36 | +## 🚀 Quick Start |
31 | 37 |
|
32 | | -Install the extension from your preferred marketplace: |
| 38 | +### Installation |
33 | 39 |
|
34 | | -- [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=google-workspace.google-workspace-developer-tools) |
35 | | -- [Open VSX Registry](https://open-vsx.org/extension/google-workspace/google-workspace-developer-tools) |
| 40 | +#### From VS Code (Recommended) |
36 | 41 |
|
37 | | -### Using the Command Line |
| 42 | +1. Open Visual Studio Code |
| 43 | +2. Press `Ctrl+Shift+X` (Windows/Linux) or `Cmd+Shift+X` (macOS) |
| 44 | +3. Search for **"Google Workspace Developer Tools"** |
| 45 | +4. Click **Install** |
38 | 46 |
|
39 | | -If you have the `code` command-line tool installed, you can install the extension with this command: |
| 47 | +#### From Marketplace |
40 | 48 |
|
41 | | -```sh |
| 49 | +- **[Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=google-workspace.google-workspace-developer-tools)** |
| 50 | +- **[Open VSX Registry](https://open-vsx.org/extension/google-workspace/google-workspace-developer-tools)** |
| 51 | + |
| 52 | +#### Command Line |
| 53 | + |
| 54 | +```bash |
42 | 55 | code --install-extension google-workspace.google-workspace-developer-tools |
43 | 56 | ``` |
| 57 | + |
| 58 | +### Usage |
| 59 | + |
| 60 | +#### OAuth2 Scope Linting |
| 61 | + |
| 62 | +The extension works automatically once installed: |
| 63 | + |
| 64 | +1. **Write Code**: Include Google OAuth2 scope URLs in your code: |
| 65 | + |
| 66 | + ```javascript |
| 67 | + const SCOPES = [ |
| 68 | + "https://www.googleapis.com/auth/gmail.readonly", |
| 69 | + "https://www.googleapis.com/auth/drive.file", |
| 70 | + ]; |
| 71 | + ``` |
| 72 | + |
| 73 | +2. **Get Instant Feedback**: |
| 74 | + - Warnings appear for restricted/sensitive scopes |
| 75 | + - Invalid scopes are highlighted with error diagnostics |
| 76 | + - Hover over any scope for detailed information |
| 77 | + |
| 78 | +3. **Learn More**: Click on scope URLs in hover tooltips to access official documentation |
| 79 | + |
| 80 | +**Supported File Types**: Works in all text files including JavaScript, TypeScript, Python, JSON, YAML, and more. |
| 81 | + |
| 82 | +## 🔍 How It Works |
| 83 | + |
| 84 | +The extension: |
| 85 | + |
| 86 | +1. Scans your code for Google OAuth2 scope URLs (`https://www.googleapis.com/auth/*`) |
| 87 | +2. Validates them against the official Google API registry |
| 88 | +3. Provides real-time diagnostics based on scope classification |
| 89 | +4. Offers rich hover information with: |
| 90 | + - Scope description |
| 91 | + - Security classification |
| 92 | + - Associated Google Workspace APIs |
| 93 | + - Links to API documentation |
| 94 | + |
| 95 | +## 📋 Requirements |
| 96 | + |
| 97 | +- Visual Studio Code version 1.50.0 or higher |
| 98 | +- No additional dependencies required |
| 99 | + |
| 100 | +## ⚙️ Extension Settings |
| 101 | + |
| 102 | +This extension works out of the box with no configuration required. Future versions may include customizable settings. |
| 103 | + |
| 104 | +## 🐛 Known Issues |
| 105 | + |
| 106 | +Please report issues on our [GitHub Issues page](https://github.com/googleworkspace/developer-tools/issues). |
| 107 | + |
| 108 | +## 📝 Release Notes |
| 109 | + |
| 110 | +See [CHANGELOG.md](./CHANGELOG.md) for detailed release notes and version history. |
| 111 | + |
| 112 | +### Recent Updates |
| 113 | + |
| 114 | +- **0.5.x**: Enhanced scope validation and MCP server integration |
| 115 | +- **0.4.x**: Added support for additional Google Workspace APIs |
| 116 | +- **0.3.x**: Initial public release with OAuth2 scope linting |
| 117 | + |
| 118 | +## 🤝 Contributing |
| 119 | + |
| 120 | +We welcome contributions! This extension is part of the [Google Workspace Developer Tools](https://github.com/googleworkspace/developer-tools) monorepo. |
| 121 | + |
| 122 | +## 📚 Resources |
| 123 | + |
| 124 | +- [Google Workspace APIs Documentation](https://developers.google.com/workspace) |
| 125 | +- [OAuth 2.0 Scopes Reference](https://developers.google.com/identity/protocols/oauth2/scopes) |
| 126 | +- [GitHub Repository](https://github.com/googleworkspace/developer-tools) |
| 127 | + |
| 128 | +## 📄 License |
| 129 | + |
| 130 | +Apache 2.0 License - see [LICENSE](./LICENSE) for details. |
| 131 | + |
| 132 | +## 💬 Support |
| 133 | + |
| 134 | +- 🐛 [Report a Bug](https://github.com/googleworkspace/developer-tools/issues) |
| 135 | +- 💡 [Request a Feature](https://github.com/googleworkspace/developer-tools/issues) |
| 136 | +- 📖 [View Documentation](https://github.com/googleworkspace/developer-tools) |
0 commit comments