octocode-mcp 2.3.9 โ†’ 2.3.10

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 +51 -4
  2. package/build/index.js +112145 -1615
  3. package/package.json +11 -7
package/README.md CHANGED
@@ -8,6 +8,7 @@
8
8
  [![Version](https://img.shields.io/badge/version-2.3.2-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
+ [![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-โ˜•-orange.svg)](https://buymeacoffee.com/bgauryy)
11
12
  </div>
12
13
 
13
14
  ## What is Octocode? ๐Ÿ™
@@ -97,9 +98,9 @@ npm login
97
98
 
98
99
  **Smart Discovery Flow:**
99
100
  1. **๐Ÿ” Query Analysis** โ†’ AI determines the best search strategy based on your question
100
- 2. **โšก Multi-Tool Orchestration** โ†’ Combines GitHub + NPM searches intelligently
101
+ 2. **โšก Multi-Tool Orchestration** โ†’ Intelligently combines 10 specialized tools across GitHub + NPM
101
102
  3. **๐Ÿ”„ Smart Fallbacks** โ†’ Automatically retries with different approaches if initial search fails
102
- 4. **๐Ÿ”— Cross-Reference Discovery** โ†’ Links packages to repositories, finds related implementations
103
+ 4. **๐Ÿ”— Cross-Reference Discovery** โ†’ Links packages to repositories, finds related implementations with commit SHA integration
103
104
  5. **๐ŸŽฏ Context Synthesis** โ†’ Provides comprehensive understanding across multiple sources
104
105
 
105
106
  ## Example Flows
@@ -147,6 +148,52 @@ npm login
147
148
  - **Community Insights** - Discovers patterns from real-world usage and discussions
148
149
  - **Quality Signals** - Uses NPM publication and GitHub activity as quality indicators
149
150
 
151
+ ### ๐Ÿ”— Commit SHA Integration
152
+ - **Time Travel Code Viewing** - View files from specific commits and pull requests using commit SHAs
153
+ - **PR Code Analysis** - Automatically fetch commit SHAs from pull requests for precise code comparison
154
+ - **Historical Implementation** - Compare how code evolved across different commits and versions
155
+ - **Cross-Reference Discovery** - Link commits, pull requests, and current implementations seamlessly
156
+
157
+ ### โšก LLM Content Optimization
158
+ - **Intelligent Content Selection** - Automatically identifies and extracts only relevant code sections for research
159
+ - **Smart Minification** - Advanced content compression that preserves meaning while reducing tokens by 80-90%
160
+ - **Partial File Access** - Fetches targeted line ranges from search results, avoiding full file downloads
161
+ - **Context-Aware Processing** - Indentation-aware minification for 15+ programming languages
162
+ - **Binary Detection & Filtering** - Automatically skips non-text files and suggests alternatives
163
+ - **Token Efficiency** - Optimizes content for maximum LLM comprehension with minimal token usage
164
+ - **Line Number Preservation** - Maintains precise line references for code navigation and debugging
165
+
166
+ **Optimization Workflow:**
167
+ 1. **๐ŸŽฏ Smart Targeting** โ†’ Extract specific line ranges from search results
168
+ 2. **๐Ÿงน Content Filtering** โ†’ Remove comments, whitespace, and non-essential elements
169
+ 3. **๐Ÿ—œ๏ธ Intelligent Compression** โ†’ Language-aware minification preserving code structure
170
+ 4. **๐Ÿ“ Context Preservation** โ†’ Keep essential context and line number references
171
+ 5. **โšก Token Optimization** โ†’ Deliver maximum code insight with minimal LLM token consumption
172
+
173
+ ## Available Tools ๐Ÿ› ๏ธ
174
+
175
+ Octocode provides **10 specialized tools** that work together intelligently:
176
+
177
+ **๐Ÿ” Discovery Tools:**
178
+ - **Repository Search** - Find repositories by topic, language, stars, and organization
179
+ - **Package Search** - Discover NPM packages by functionality and keywords
180
+
181
+ **๐Ÿ“Š Analysis Tools:**
182
+ - **Code Search** - Smart search across GitHub repositories with heuristic pattern recognition
183
+ - **Package Analysis** - Detailed NPM package analysis with repository linking
184
+ - **Repository Structure** - Explore directory structures and file organization
185
+
186
+ **๐Ÿ“ˆ Activity Tools:**
187
+ - **Commit Search** - Find commits by message, author, and date with SHA integration
188
+ - **Pull Request Search** - Discover PRs with automatic commit SHA extraction
189
+ - **Issue Search** - Find bug reports, feature requests, and discussions
190
+
191
+ **๐Ÿ“ Content Tools:**
192
+ - **File Content Fetching** - Read files from any commit, branch, or PR using commit SHAs
193
+ - **API Status Check** - Verify authentication and discover organization access
194
+
195
+ **Smart Integration:** All tools work together through intelligent workflows - from package discovery โ†’ repository analysis โ†’ commit history โ†’ file content, with automatic fallbacks and cross-referencing.
196
+
150
197
  ## Privacy & Security ๐Ÿ›ก๏ธ
151
198
 
152
199
  - **๐Ÿ  100% Local** - Runs entirely on your machine
@@ -159,8 +206,8 @@ npm login
159
206
  **Robust protection against prompt injections and malicious command execution:**
160
207
 
161
208
  - **โšช Allowlisted Commands Only** - Only pre-approved, safe NPM and GitHub CLI commands are executable
162
- - NPM: `view`, `search`, `ping`, `config`, `whoami`
163
- - GitHub CLI: `search`, `api`, `auth`, `org`
209
+ - NPM: `view`, `search`, `config`, `whoami`
210
+ - GitHub CLI: `search`, `api`, `auth`, `org`, `pr`
164
211
  - **๐Ÿ›ก๏ธ Argument Sanitization** - All command arguments are properly escaped to prevent shell injection attacks
165
212
  - **โœ… Pre-execution Validation** - Every command is validated against allowed lists before execution
166
213
  - **๐Ÿ”ง Controlled Environment** - Commands run in a secure, cross-platform shell environment with controlled variables