octocode-mcp 2.3.25 β†’ 2.3.27

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.
package/README.md CHANGED
@@ -1,22 +1,22 @@
1
1
  # Octocode MCP
2
2
 
3
- **The Perfect AI Code Assistant - Advanced Search & Discovery Across GitHub & NPM**
3
+ **The Perfect AI Code Assistant - Advanced Search & Discovery Across GitHub**
4
4
 
5
5
  <div>
6
6
  <img src="./assets/logo.png" width="400px">
7
7
 
8
- [![Version](https://img.shields.io/badge/version-2.3.24-blue.svg)](./package.json)
8
+ [![Version](https://img.shields.io/badge/version-2.3.25-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)
12
12
 
13
13
  </div>
14
14
 
15
+ ## 🌐 For More Details - [octocode.ai](https://octocode.ai)
16
+ ## πŸ“š For Technical Details - [Technical Summary](./docs/summary.md)
17
+ ## 🐳 For Docker Setup - [Docker Guide](./docker/README.Docker.md)
15
18
 
16
- ## 🌐 For More Details - [octocode.ai](https://octocode.ai)
17
-
18
-
19
- **The perfect code assistant that can help understand anything.** Octocode provides AI-powered advanced search with heuristic discovery and smart fallbacks to understand connections between repositories and NPM packages across any privilege level you have.
19
+ **The perfect code assistant that can help understand anything.** Transform your AI assistant into an expert code researcher with instant access to millions of repositories and packages across GitHub and npm ecosystems.
20
20
 
21
21
  Instead of manually browsing repositories, ask questions like:
22
22
  - *"How did React implement concurrent rendering?"*
@@ -25,17 +25,45 @@ Instead of manually browsing repositories, ask questions like:
25
25
  - *"What's the architecture of this library?"*
26
26
  - *"How do I use this MCP tool effectively?"*
27
27
 
28
- ## Unique Value Proposition
28
+ ## 🌟 Featured On
29
+
30
+ ### modelcontextprotocol - Official Community MCP Server
31
+ [![MCP Servers](https://img.shields.io/badge/Official-MCP%20Servers-purple.svg?logo=github)](https://github.com/modelcontextprotocol/servers)
32
+
33
+ ### Community Collections
34
+ [![Awesome MCP Servers](https://img.shields.io/badge/Awesome-MCP%20Servers-orange.svg?logo=awesome-lists)](https://github.com/punkpeye/awesome-mcp-servers)
35
+ [![Awesome MCP Servers](https://img.shields.io/badge/Awesome-MCP%20Collection-blue.svg?logo=awesome-lists)](https://github.com/appcypher/awesome-mcp-servers)
36
+
37
+ ### MCP Directories & Tools
38
+ [![MCP.so](https://img.shields.io/badge/MCP.so-Server%20Directory-green.svg?logo=web)](https://mcp.so/server/octocode/bgauryy)
39
+ [![PulseMCP](https://img.shields.io/badge/PulseMCP-Server%20Registry-red.svg?logo=pulse)](https://www.pulsemcp.com/servers/bgauryy-octocode)
40
+ [![DevTool.io](https://img.shields.io/badge/DevTool.io-Development%20Tool-teal.svg?logo=tools)](https://devtool.io/tool/octocode-mcp)
41
+
42
+ ## 🎯 Who Is This For?
43
+
44
+ ### For Developers
45
+ Navigate complex multi-repo architectures, understand organizational issues at scale, and generate custom documentation on-demand from real code examples. Create contextual documentation directly in your IDE, or ask OctoCode to learn from any repository and implement similar patterns in your current project.
46
+
47
+ ### For Product & Engineering Managers
48
+ Gain unprecedented visibility into application behavior through semantic code search, track development progress across teams, and understand the real implementation behind product features.
49
+
50
+ ### For Security Researchers
51
+ Discover security patterns, vulnerabilities, and compliance issues across both public and private repositories with advanced pattern matching and cross-codebase analysis.
52
+
53
+ ### For Large Organizations
54
+ Dramatically increase development velocity by enabling teams to instantly learn from existing codebases, understand cross-team implementations, and replicate proven patternsβ€”transforming institutional knowledge into actionable development acceleration.
55
+
56
+ ## πŸš€ Key Benefits
57
+
58
+ **Zero-Configuration Setup** - Works with existing GitHub CLI authentication, no personal access tokens needed
59
+
60
+ **Enterprise-Ready Security** - Respects organizational permissions with content sanitization
61
+
62
+ **AI Token Optimization** - Reduces AI costs by through intelligent content processing
29
63
 
30
- **The most advanced AI-powered code assistant for understanding connections across the entire GitHub & NPM ecosystem.** While other GitHub MCPs focus on project management or basic operations, Octocode provides unparalleled depth for code discovery and technical research.
64
+ **Cross-Platform Excellence** - Native Windows PowerShell support with automatic path detection
31
65
 
32
- **Key Differentiators:**
33
- - **🧠 AI-Powered Search** - Multi-modal search strategies with progressive complexity reduction and context-aware suggestions
34
- - **πŸ” Zero-Config Security** - Uses GitHub CLI authentication with organization discovery - no personal access tokens needed
35
- - **πŸ”— Connection Intelligence** - Maps NPM packages to repositories with commit SHA integration and cross-tool data sharing
36
- - **🌐 Universal Access** - Works seamlessly with public, private, and organization repositories using GitHub CLI permissions
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
66
+ **Universal Access** - Works seamlessly with public, private, and organization repositories
39
67
 
40
68
  ## Quick Start πŸš€
41
69
 
@@ -64,11 +92,6 @@ choco install powershell-core nodejs github-cli
64
92
  scoop install gh nodejs
65
93
  ```
66
94
 
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
-
72
95
  ### 2. Authenticate
73
96
  ```bash
74
97
  # Login to GitHub (opens browser)
@@ -78,13 +101,13 @@ gh auth login
78
101
  npm login
79
102
  ```
80
103
 
81
- **πŸ” Authentication Benefits:**
82
- - βœ… **No personal access tokens** - Uses GitHub CLI OAuth flow
83
- - βœ… **Enterprise ready** - Works with SSO, 2FA, and organization access
84
- - βœ… **Automatic organization detection** - Instantly accesses your private repositories
85
- - βœ… **Zero configuration** - Uses existing `gh` CLI permissions
104
+ ### 3. Add to Claude Desktop
105
+ ```bash
106
+ # For Claude Desktop users
107
+ claude mcp add octocode npx 'octocode-mcp@latest'
108
+ ```
86
109
 
87
- ### 3. Add to MCP Configuration
110
+ ### Or Add to MCP Configuration Manually
88
111
  ```json
89
112
  {
90
113
  "octocode-mcp": {
@@ -96,36 +119,44 @@ npm login
96
119
 
97
120
  **That's it!** Octocode automatically works with your organization's private repositories.
98
121
 
99
- ### 4. Windows PowerShell Support (v2.3.24+)
122
+ ## 🐳 Docker Support
100
123
 
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
124
+ Run Octocode MCP in a Docker container while maintaining full GitHub CLI authentication. Perfect for consistent environments and deployment.
106
125
 
107
- **Custom Path Configuration:**
108
- ```powershell
109
- # Set custom GitHub CLI path
110
- $env:GH_PATH = "C:\custom\path\gh.exe"
126
+ [**See Docker Setup Guide β†’**](./docker/README.Docker.md)
111
127
 
112
- # Set custom NPM path
113
- $env:NPM_PATH = "C:\custom\path\npm.cmd"
114
- ```
128
+ ## πŸ› οΈ What You Can Do
129
+
130
+ ### Deep Project Research & Analysis
131
+ - **Issue Search & Analysis**: Understand project challenges, feature requests, and bug patterns
132
+ - **Commit History Research**: Trace feature implementations and bug fixes across time
133
+ - **Pull Request & Code Review Analysis**: Access actual code diffs and understand development workflows
134
+ - **Project Progress Tracking**: Monitor development velocity and team collaboration patterns
135
+
136
+ ### Core GitHub Research
137
+ - **Repository Discovery**: Find repositories by topic, language, and activity
138
+ - **Code Search**: Find exact patterns and implementations across millions of repositories
139
+ - **Cross-Repository Flow Understanding**: Connect related changes across multiple repositories
140
+ - **Repository Architecture**: Navigate and understand project structures
115
141
 
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`
142
+ ### Package Ecosystem Tools
143
+ - **NPM Package Discovery**: Analyze Node.js packages with comprehensive metadata
144
+ - **Python Package Integration**: Explore PyPI packages with cross-ecosystem comparison
145
+ - **Package Analysis**: Deep-dive into versions, dependencies, and repository connections
146
+
147
+ ### Advanced Research Capabilities
148
+ - **Code Pattern Discovery**: Identify implementation patterns and best practices
149
+ - **Security & Compliance Research**: Search for security patterns across codebases
150
+ - **Team Collaboration Analysis**: Understand code review processes and team dynamics
151
+ - **Real-time Documentation**: Generate custom docs from live code for any topic
152
+
153
+ > **πŸ“š For detailed technical architecture, tool specifications, and implementation details, see [Technical Summary](./docs/summary.md)**
121
154
 
122
155
  ## DXT Extension πŸ“¦
123
156
 
124
157
  This project is available as a **Desktop Extension (DXT)** for easy installation in AI applications like Claude Desktop.
125
158
 
126
- ### For Developers
127
-
128
- **Building the DXT Package:**
159
+ ### Quick DXT Setup
129
160
 
130
161
  ```bash
131
162
  # Install dependencies
@@ -133,146 +164,26 @@ yarn install
133
164
 
134
165
  # Build the DXT package
135
166
  yarn dxt:pack
136
-
137
- # Validate the manifest
138
- yarn dxt:validate
139
-
140
- # View package information
141
- yarn dxt:info
142
-
143
- # Sign the package (optional)
144
- yarn dxt:sign
145
167
  ```
146
168
 
169
+ The generated `octocode-mcp.dxt` file can be installed in Claude Desktop by simply clicking on it.
170
+
147
171
  **DXT Scripts:**
148
172
  - `yarn dxt:validate` - Validate the manifest.json file
149
- - `yarn dxt:pack` - Build and package the extension as a .dxt file
150
- - `yarn dxt:info` - Show information about the packaged extension
151
- - `yarn dxt:sign` - Sign the package with a self-signed certificate
152
- - `yarn dxt:verify` - Verify the signature of a signed package
153
-
154
- **The DXT package includes:**
155
- - Compiled MCP server (`dist/index.js`)
156
- - Extension manifest (`manifest.json`)
157
- - Package metadata (`package.json`)
158
- - Logo and assets (`assets/logo.png`)
159
- - Documentation (`README.md`)
160
-
161
- **Building DXT from Source:**
162
- To build the DXT package locally from this repository:
163
- ```bash
164
- # Clone the repository
165
- git clone https://github.com/bgauryy/octocode-mcp.git
166
- cd octocode-mcp
167
-
168
- # Install dependencies and build
169
- yarn install
170
- yarn build
171
- yarn dxt:pack
172
- ```
173
-
174
- The generated `octocode-mcp.dxt` file can then be installed in Claude Desktop (just click on it and it will open claude desktop with the extension)
175
-
176
- ## Core Features πŸ› οΈ
177
-
178
- ### 🧠 **AI-Powered Intelligence**
179
- - **Advanced Search Strategies** - Multi-modal search with exact/term modes and progressive complexity reduction
180
- - **Connection Mapping** - Automatically links NPM packages to GitHub repositories with URL extraction
181
- - **Cross-Reference Analysis** - Discovers implementation patterns across projects with commit SHA integration
182
- - **Progressive Refinement** - AI-guided search with contextual suggestions and smart fallback chains
183
- - **Context-Aware Discovery** - Understands relationships between repositories, packages, commits, and issues
184
-
185
- ### πŸ”— **Commit SHA Integration**
186
- - **Time Travel Code Viewing** - View files from specific commits and pull requests using SHA references
187
- - **PR Code Analysis** - Fetch commit data with file changes for precise code comparison
188
- - **Historical Implementation** - Compare code evolution across versions with diff analysis
189
- - **Cross-Tool Integration** - Commit SHAs work seamlessly across search, fetch, and analysis tools
190
-
191
- ### ⚑ **Performance Optimization**
192
- - **Smart Content Selection** - Extracts targeted line ranges with configurable context
193
- - **Advanced Minification** - Language-aware compression preserving structure and meaning
194
- - **Intelligent Caching** - Generated cache keys with automatic invalidation
195
- - **Parallel Processing** - Concurrent API calls for enhanced content fetching
196
- - **Token Efficiency** - 80-90% reduction in LLM token usage through optimization
197
-
198
- ## Available Tools
199
-
200
- **10 specialized tools** working together intelligently:
201
-
202
- ### πŸ” **Discovery & Navigation**
203
- - **Repository Search** - Multi-modal search with quality filters, URL extraction, and private repository support
204
- - **Package Search** - NPM ecosystem discovery with deduplication and framework detection
205
- - **Repository Structure** - Smart branch detection with path validation and enhanced fallbacks
206
-
207
- ### πŸ’» **Code Analysis**
208
- - **Code Search** - Advanced search with exact/term modes, progressive strategies, and text match optimization
209
- - **File Content Fetching** - Intelligent retrieval with partial access, minification, and smart branch fallbacks
210
- - **Package Analysis** - Detailed NPM package inspection with export structure and GitHub integration
211
-
212
- ### πŸ“Š **Development Activity**
213
- - **Commit Search** - Multi-modal search with content fetching and SHA integration for file viewing
214
- - **Pull Request Search** - Dual search modes with commit data and cross-tool SHA integration
215
- - **Issue Search** - Rich filtering with parallel content fetching and advanced metrics
216
-
217
- ### πŸ› οΈ **System Integration**
218
- - **API Status Check** - Central authentication validation with organization discovery and smart error handling
219
-
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
224
- - **Commit SHA Integration** - View files from specific commits and pull requests
225
- - **Progressive Search Strategies** - AI-guided complexity reduction with contextual suggestions
226
- - **Cross-Tool Data Sharing** - Seamless integration with shared data formats and relationship mapping
227
- - **Advanced Error Recovery** - Context-aware suggestions and smart fallback chains
228
- - **Performance Optimization** - Token efficiency, intelligent caching, and parallel processing
229
-
230
- ## Security & Privacy πŸ›‘οΈ
231
-
232
- ### Local-First Architecture
233
- - **🏠 100% Local** - Runs entirely on your machine
234
- - **🚫 Zero Data Collection** - No telemetry or data transmission
235
- - **πŸ”‘ Safe Token Usage** - Uses GitHub CLI authentication, no personal access tokens needed
236
-
237
- ### Multi-Layer Security Protection
238
- - **πŸ›‘οΈ Input Sanitization** - Comprehensive validation of all user inputs with Zod schemas
239
- - **πŸ” Content Sanitization** - Automatic detection and redaction of 1100+ secret patterns
240
- - **⚑ Prompt Injection Defense** - Advanced pattern detection prevents malicious prompt manipulation
241
- - **🚨 Malicious Content Detection** - Real-time scanning for suspicious patterns and code
242
- - **πŸ”’ Output Sanitization** - All responses are filtered and sanitized before delivery
243
-
244
- ### Command Execution Security
245
- - **βšͺ Allowlisted Commands Only** - Pre-approved safe commands (GitHub CLI & NPM only)
246
- - **πŸ›‘οΈ Argument Sanitization** - Prevents shell injection attacks with proper escaping
247
- - **βœ… Pre-execution Validation** - Every command is validated before execution
248
- - **πŸ”§ Controlled Environment** - Cross-platform secure shell execution
249
- - **⏱️ Timeout Protection** - Prevents resource exhaustion with configurable timeouts
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
-
259
- ### Secret & Credential Protection
260
- - **πŸ” Comprehensive Detection** - Detects API keys, tokens, private keys, and credentials
261
- - **🎭 Smart Masking** - Preserves readability while redacting sensitive information
262
- - **🏒 Enterprise Ready** - Handles AWS, Google Cloud, Azure, and 100+ service patterns
263
- - **πŸ”„ Real-time Processing** - Secrets are detected and masked in real-time during content processing
173
+ - `yarn dxt:pack` - Build and package the extension
174
+ - `yarn dxt:release` - Full release pipeline (build β†’ pack β†’ sign β†’ verify)
264
175
 
265
176
  ## Best Practices πŸ’‘
266
177
 
267
- **Effective Questions:**
268
- - Start with natural language - "How does authentication work?"
269
- - Ask for connections - "What libraries use this pattern?"
270
- - Cross-ecosystem queries - "NPM packages that implement X"
271
- - Evolution questions - "How has this approach changed?"
178
+ **Ask Natural Questions:**
179
+ - "How does authentication work in this project?"
180
+ - "What libraries implement this pattern?"
181
+ - "Show me NPM packages that solve X problem"
182
+ - "How has this approach evolved over time?"
272
183
 
273
- **Pro Tips:**
274
- - Let AI guide discovery - vague queries work great
275
- - Trust smart fallbacks - automatic retry with alternatives
184
+ **Let AI Guide Discovery:**
185
+ - Start with broad queries - the system will intelligently narrow down
186
+ - Trust the smart fallbacks - automatic retry with alternatives
276
187
  - Build on previous searches - maintain context for deeper exploration
277
188
  - Works everywhere - public, private, and organization repositories
278
189
 
@@ -290,40 +201,36 @@ gh auth logout && gh auth login
290
201
  npm whoami
291
202
  ```
292
203
 
293
- **Windows-Specific (PowerShell):**
204
+ **Windows-Specific:**
294
205
  ```powershell
295
206
  # Check PowerShell version (7+ recommended)
296
207
  $PSVersionTable.PSVersion
297
208
 
298
- # Verify custom paths
299
- Write-Host "GH_PATH: $env:GH_PATH"
300
- Write-Host "NPM_PATH: $env:NPM_PATH"
301
-
302
209
  # Test executable detection
303
210
  where.exe gh
304
211
  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
313
- rm -rf ~/.npm/_npx
314
-
315
- # Check installation paths
316
- which gh
317
- which npm
318
212
  ```
319
213
 
320
214
  **Common Solutions:**
321
215
  - No results? Try broader search terms
322
216
  - Private repos not found? Check `gh auth status` for organization membership
323
- - Windows PowerShell issues? Install PowerShell 7+ for better security
324
- - Custom paths not working? Ensure absolute paths and file existence
217
+ - Windows issues? Install PowerShell 7+ for better security
325
218
  - Permission errors? Check executable permissions and PATH configuration
326
219
 
220
+ ## Security & Privacy πŸ›‘οΈ
221
+
222
+ ### Local-First Architecture
223
+ - **🏠 100% Local** - Runs entirely on your machine
224
+ - **🚫 Zero Data Collection** - No telemetry or data transmission
225
+ - **πŸ”‘ Safe Authentication** - Uses GitHub CLI OAuth, no personal tokens needed
226
+
227
+ ### Enterprise Security
228
+ - **πŸ›‘οΈ Content Protection** - Input validation and content sanitization
229
+ - **πŸ” Secret Detection** - Automatic detection and redaction of sensitive data patterns
230
+ - **βšͺ Safe Commands Only** - Pre-approved GitHub CLI and NPM commands only
231
+
232
+ > **πŸ“š For comprehensive security architecture details, see [Technical Summary](./docs/summary.md)**
233
+
327
234
  ## Background πŸ’­
328
235
 
329
236
  This project started as a personal tool while working at Wix, born from the challenge of navigating large codebases and keeping up with rapidly evolving technology landscapes. What began as a side project evolved into **the perfect code assistant that can help understand anything**.
@@ -334,4 +241,4 @@ The goal: **make code exploration as intelligent as having a senior developer gu
334
241
 
335
242
  MIT License - See [LICENSE](./LICENSE.md) for details.
336
243
 
337
- ---
244
+ ---