octocode-mcp 2.3.16 → 2.3.17

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 +52 -59
  2. package/dist/index.js +487 -547
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -5,16 +5,16 @@
5
5
  <div>
6
6
  <img src="./assets/logo.png" width="400px">
7
7
 
8
- [![Version](https://img.shields.io/badge/version-2.3.2-blue.svg)](./package.json)
8
+ [![Version](https://img.shields.io/badge/version-2.3.17-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
- </div>
11
+ [![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-☕-orange.svg)](https://buymeacoffee.com/bgauryy)
12
12
 
13
+ </div>
13
14
 
14
15
 
15
- ## What is Octocode? 🐙
16
+ ## 🌐 For More Details - [octocode.ai](https://octocode.ai)
16
17
 
17
- **For more details, visit [octocode.ai](https://octocode.ai)**
18
18
 
19
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.
20
20
 
@@ -30,11 +30,11 @@ Instead of manually browsing repositories, ask questions like:
30
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.
31
31
 
32
32
  **Key Differentiators:**
33
- - **🧠 AI-Powered Search** - Heuristic algorithms with smart fallbacks that understand code context and find relevant code even with vague queries
34
- - **🔐 Zero-Config Security** - Uses GitHub CLI authentication - no personal access tokens needed
35
- - **🔗 Connection Intelligence** - Maps NPM packages to repositories, traces dependencies, finds related implementations
36
- - **🌐 Universal Access** - Works seamlessly with public, private, and organization repositories
37
- - **⚡ LLM Optimized** - Advanced content minification and partial fetching reduces token usage by 80-90%
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
38
 
39
39
  ## Quick Start 🚀
40
40
 
@@ -130,63 +130,56 @@ yarn dxt:pack
130
130
 
131
131
  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)
132
132
 
133
-
134
- ## How It Works 🔄
135
-
136
- **Smart Discovery Flow:**
137
- 1. **🔍 Query Analysis** → AI determines the best search strategy
138
- 2. **⚡ Multi-Tool Orchestration** → Intelligently combines 10 specialized tools
139
- 3. **🔄 Smart Fallbacks** → Automatically retries with different approaches
140
- 4. **🔗 Cross-Reference Discovery** → Links packages to repositories with commit SHA integration
141
- 5. **🎯 Context Synthesis** → Provides comprehensive understanding
142
-
143
- ## Example Flows
144
-
145
- ### Example 1: LangGraph Node.js Implementation Tutorial
146
- **Query:** "Show implementations of langgraph in node js. Make a tutorial for how to implement a simple agent using OpenAI API."
147
-
148
- <a href="https://youtu.be/E5HUlRckpvg?si=XXLle59C92esDscS"><img src="assets/langchainTutorial.gif" alt="LangGraph Node.js Tutorial" width="50%"></a>
149
-
150
- ### Example 2: Zustand React State Management
151
- **Query:** "Show me how to add zustand to react application. Show examples and best practices"
152
-
153
- <a href="https://youtu.be/EgYbsuWmqsI?si=CN_KwCPgwprImynU"><img src="assets/reactZustand.gif" alt="Zustand React State Management" width="50%"></a>
154
-
155
- ### Example 3: React vs Vue.js Rendering Comparison
156
- **Query:** "How did React implement their concurrent rendering flows? How is it different from Vue.js rendering mechanism? Which is better?"
157
-
158
- <a href="https://youtu.be/-_pbCbLXKDc?si=KiPeGCzmwWtb6G3r"><img src="assets/reactVSVueJS.gif" alt="React vs Vue.js Rendering Comparison" width="50%"></a>
159
-
160
133
  ## Core Features 🛠️
161
134
 
162
- ### 🧠 AI-Powered Intelligence
163
- - **Advanced Search** - Heuristic pattern recognition with automatic fallback strategies
164
- - **Connection Mapping** - Automatically links NPM packages to GitHub repositories
165
- - **Cross-Reference Analysis** - Discovers how different projects implement similar patterns
166
- - **Progressive Refinement** - AI-guided search that improves with each iteration
167
- - **Context-Aware Discovery** - Understands relationships between code, commits, issues, and discussions
168
-
169
- ### 🔗 Commit SHA Integration
170
- - **Time Travel Code Viewing** - View files from specific commits and pull requests
171
- - **PR Code Analysis** - Automatically fetch commit SHAs for precise code comparison
172
- - **Historical Implementation** - Compare code evolution across versions
173
-
174
- ### ⚡ Performance Optimization
175
- - **Smart Content Selection** - Extracts only relevant code sections
176
- - **Advanced Minification** - Language-aware compression preserving meaning
177
- - **Partial File Access** - Fetches targeted line ranges
178
- - **Token Efficiency** - 80-90% reduction in LLM token usage
135
+ ### 🧠 **AI-Powered Intelligence**
136
+ - **Advanced Search Strategies** - Multi-modal search with exact/term modes and progressive complexity reduction
137
+ - **Connection Mapping** - Automatically links NPM packages to GitHub repositories with URL extraction
138
+ - **Cross-Reference Analysis** - Discovers implementation patterns across projects with commit SHA integration
139
+ - **Progressive Refinement** - AI-guided search with contextual suggestions and smart fallback chains
140
+ - **Context-Aware Discovery** - Understands relationships between repositories, packages, commits, and issues
141
+
142
+ ### 🔗 **Commit SHA Integration**
143
+ - **Time Travel Code Viewing** - View files from specific commits and pull requests using SHA references
144
+ - **PR Code Analysis** - Fetch commit data with file changes for precise code comparison
145
+ - **Historical Implementation** - Compare code evolution across versions with diff analysis
146
+ - **Cross-Tool Integration** - Commit SHAs work seamlessly across search, fetch, and analysis tools
147
+
148
+ ### **Performance Optimization**
149
+ - **Smart Content Selection** - Extracts targeted line ranges with configurable context
150
+ - **Advanced Minification** - Language-aware compression preserving structure and meaning
151
+ - **Intelligent Caching** - Generated cache keys with automatic invalidation
152
+ - **Parallel Processing** - Concurrent API calls for enhanced content fetching
153
+ - **Token Efficiency** - 80-90% reduction in LLM token usage through optimization
179
154
 
180
155
  ## Available Tools
181
156
 
182
157
  **10 specialized tools** working together intelligently:
183
158
 
184
- **Discovery:** Repository Search, Package Search
185
- **Analysis:** Code Search, Package Analysis, Repository Structure
186
- **Activity:** Commit Search, Pull Request Search, Issue Search
187
- **Content:** File Content Fetching, API Status Check
188
-
189
- All tools feature automatic cross-referencing and intelligent fallbacks.
159
+ ### 🔍 **Discovery & Navigation**
160
+ - **Repository Search** - Multi-modal search with quality filters, URL extraction, and private repository support
161
+ - **Package Search** - NPM ecosystem discovery with deduplication and framework detection
162
+ - **Repository Structure** - Smart branch detection with path validation and enhanced fallbacks
163
+
164
+ ### 💻 **Code Analysis**
165
+ - **Code Search** - Advanced search with exact/term modes, progressive strategies, and text match optimization
166
+ - **File Content Fetching** - Intelligent retrieval with partial access, minification, and smart branch fallbacks
167
+ - **Package Analysis** - Detailed NPM package inspection with export structure and GitHub integration
168
+
169
+ ### 📊 **Development Activity**
170
+ - **Commit Search** - Multi-modal search with content fetching and SHA integration for file viewing
171
+ - **Pull Request Search** - Dual search modes with commit data and cross-tool SHA integration
172
+ - **Issue Search** - Rich filtering with parallel content fetching and advanced metrics
173
+
174
+ ### 🛠️ **System Integration**
175
+ - **API Status Check** - Central authentication validation with organization discovery and smart error handling
176
+
177
+ ### 🚀 **Latest Features**
178
+ - **Commit SHA Integration** - View files from specific commits and pull requests
179
+ - **Progressive Search Strategies** - AI-guided complexity reduction with contextual suggestions
180
+ - **Cross-Tool Data Sharing** - Seamless integration with shared data formats and relationship mapping
181
+ - **Advanced Error Recovery** - Context-aware suggestions and smart fallback chains
182
+ - **Performance Optimization** - Token efficiency, intelligent caching, and parallel processing
190
183
 
191
184
  ## Security & Privacy 🛡️
192
185