octocode-mcp 2.3.23 → 2.3.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +88 -7
  2. package/dist/index.js +18 -18
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  <div>
6
6
  <img src="./assets/logo.png" width="400px">
7
7
 
8
- [![Version](https://img.shields.io/badge/version-2.3.17-blue.svg)](./package.json)
8
+ [![Version](https://img.shields.io/badge/version-2.3.24-blue.svg)](./package.json)
9
9
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](./package.json)
10
10
  [![MCP](https://img.shields.io/badge/MCP-Compatible-purple.svg)](https://modelcontextprotocol.io/)
11
11
  [![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-☕-orange.svg)](https://buymeacoffee.com/bgauryy)
@@ -35,20 +35,40 @@ Instead of manually browsing repositories, ask questions like:
35
35
  - **🔗 Connection Intelligence** - Maps NPM packages to repositories with commit SHA integration and cross-tool data sharing
36
36
  - **🌐 Universal Access** - Works seamlessly with public, private, and organization repositories using GitHub CLI permissions
37
37
  - **⚡ LLM Optimized** - Advanced content minification, intelligent caching, and parallel processing reduces token usage by 80-90%
38
+ - **🖥️ Cross-Platform Excellence** - Native Windows PowerShell support with automatic path detection and custom installation paths
38
39
 
39
40
  ## Quick Start 🚀
40
41
 
41
42
  ### 1. Install Prerequisites
43
+
44
+ **macOS/Linux:**
42
45
  ```bash
43
46
  # Install Node.js 18.12+
44
- brew install node # macOS
45
- # or download from https://nodejs.org/
47
+ brew install node
46
48
 
47
49
  # Install GitHub CLI
48
- brew install gh # macOS
49
- # or see: https://github.com/cli/cli#installation
50
+ brew install gh
51
+ ```
52
+
53
+ **Windows:**
54
+ ```powershell
55
+ # Install using WinGet (recommended)
56
+ winget install Microsoft.PowerShell # PowerShell 7+ for better security
57
+ winget install GitHub.cli
58
+ winget install OpenJS.NodeJS
59
+
60
+ # Or using Chocolatey
61
+ choco install powershell-core nodejs github-cli
62
+
63
+ # Or using Scoop
64
+ scoop install gh nodejs
50
65
  ```
51
66
 
67
+ **Manual Installation:**
68
+ - Node.js: https://nodejs.org/
69
+ - GitHub CLI: https://github.com/cli/cli#installation
70
+ - PowerShell 7+: https://github.com/PowerShell/PowerShell#installation
71
+
52
72
  ### 2. Authenticate
53
73
  ```bash
54
74
  # Login to GitHub (opens browser)
@@ -76,6 +96,29 @@ npm login
76
96
 
77
97
  **That's it!** Octocode automatically works with your organization's private repositories.
78
98
 
99
+ ### 4. Windows PowerShell Support (v2.3.24+)
100
+
101
+ **🚀 Enhanced Windows Support:**
102
+ - **PowerShell Core Priority**: Automatically uses PowerShell 7+ for better security
103
+ - **Automatic Path Detection**: Detects installations from WinGet, Scoop, Chocolatey, MSI
104
+ - **Custom Path Support**: Use environment variables for custom installations
105
+ - **Cross-Platform Security**: Implements GitHub CLI's security best practices
106
+
107
+ **Custom Path Configuration:**
108
+ ```powershell
109
+ # Set custom GitHub CLI path
110
+ $env:GH_PATH = "C:\custom\path\gh.exe"
111
+
112
+ # Set custom NPM path
113
+ $env:NPM_PATH = "C:\custom\path\npm.cmd"
114
+ ```
115
+
116
+ **Supported Installation Methods:**
117
+ - **WinGet**: `%LOCALAPPDATA%\Microsoft\WindowsApps\gh.exe`
118
+ - **Scoop**: `%USERPROFILE%\scoop\apps\gh\current\bin\gh.exe`
119
+ - **Chocolatey**: `%PROGRAMDATA%\chocolatey\bin\gh.exe`
120
+ - **MSI**: `%PROGRAMFILES%\GitHub CLI\gh.exe`
121
+
79
122
  ## DXT Extension 📦
80
123
 
81
124
  This project is available as a **Desktop Extension (DXT)** for easy installation in AI applications like Claude Desktop.
@@ -175,6 +218,9 @@ The generated `octocode-mcp.dxt` file can then be installed in Claude Desktop (j
175
218
  - **API Status Check** - Central authentication validation with organization discovery and smart error handling
176
219
 
177
220
  ### 🚀 **Latest Features**
221
+ - **Windows PowerShell Support (v2.3.24)** - Native PowerShell Core integration with automatic path detection
222
+ - **Custom Path Support (v2.3.24)** - Environment variables for custom GitHub CLI and NPM installations
223
+ - **Enhanced Security Architecture (v2.3.24)** - Implements GitHub CLI's security best practices with safe path resolution
178
224
  - **Commit SHA Integration** - View files from specific commits and pull requests
179
225
  - **Progressive Search Strategies** - AI-guided complexity reduction with contextual suggestions
180
226
  - **Cross-Tool Data Sharing** - Seamless integration with shared data formats and relationship mapping
@@ -202,6 +248,14 @@ The generated `octocode-mcp.dxt` file can then be installed in Claude Desktop (j
202
248
  - **🔧 Controlled Environment** - Cross-platform secure shell execution
203
249
  - **⏱️ Timeout Protection** - Prevents resource exhaustion with configurable timeouts
204
250
 
251
+ ### Windows Security Enhancements (v2.3.24+)
252
+ - **🔒 PowerShell Core Priority** - Uses PowerShell 7+ for enhanced security over Windows PowerShell
253
+ - **🛡️ Safe Path Resolution** - Prevents Windows security vulnerability where current directory is searched
254
+ - **🔐 Custom Path Validation** - Validates custom executable paths to prevent injection attacks
255
+ - **✅ Absolute Path Requirements** - Custom paths must be absolute for security compliance
256
+ - **🚨 Executable Validation** - Verifies file existence and accessibility before execution
257
+ - **🔧 Platform-Specific Escaping** - Dedicated argument escaping for PowerShell, CMD, and Unix shells
258
+
205
259
  ### Secret & Credential Protection
206
260
  - **🔍 Comprehensive Detection** - Detects API keys, tokens, private keys, and credentials
207
261
  - **🎭 Smart Masking** - Preserves readability while redacting sensitive information
@@ -224,6 +278,7 @@ The generated `octocode-mcp.dxt` file can then be installed in Claude Desktop (j
224
278
 
225
279
  ## Troubleshooting 🔧
226
280
 
281
+ **Cross-Platform Commands:**
227
282
  ```bash
228
283
  # Check GitHub CLI status
229
284
  gh auth status
@@ -233,15 +288,41 @@ gh auth logout && gh auth login
233
288
 
234
289
  # Check NPM access
235
290
  npm whoami
291
+ ```
292
+
293
+ **Windows-Specific (PowerShell):**
294
+ ```powershell
295
+ # Check PowerShell version (7+ recommended)
296
+ $PSVersionTable.PSVersion
297
+
298
+ # Verify custom paths
299
+ Write-Host "GH_PATH: $env:GH_PATH"
300
+ Write-Host "NPM_PATH: $env:NPM_PATH"
236
301
 
237
- # Clear NPX cache if needed
302
+ # Test executable detection
303
+ where.exe gh
304
+ where.exe npm
305
+
306
+ # Clear NPX cache
307
+ Remove-Item -Recurse -Force "$env:APPDATA\npm\_npx" -ErrorAction SilentlyContinue
308
+ ```
309
+
310
+ **macOS/Linux:**
311
+ ```bash
312
+ # Clear NPX cache
238
313
  rm -rf ~/.npm/_npx
314
+
315
+ # Check installation paths
316
+ which gh
317
+ which npm
239
318
  ```
240
319
 
241
320
  **Common Solutions:**
242
321
  - No results? Try broader search terms
243
322
  - Private repos not found? Check `gh auth status` for organization membership
244
- - Windows users? PowerShell is automatically supported
323
+ - Windows PowerShell issues? Install PowerShell 7+ for better security
324
+ - Custom paths not working? Ensure absolute paths and file existence
325
+ - Permission errors? Check executable permissions and PATH configuration
245
326
 
246
327
  ## Background 💭
247
328