octocode-mcp 2.3.8 โ 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.
- package/README.md +51 -4
- package/build/index.js +112854 -1534
- package/package.json +11 -7
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
[](./package.json)
|
|
9
9
|
[](./package.json)
|
|
10
10
|
[](https://modelcontextprotocol.io/)
|
|
11
|
+
[](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** โ
|
|
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`, `
|
|
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
|