Octocode MCP - AI Context Platform

v7.0.9
io.github.bgauryy/octocode-mcp Checked 2 hours ago Published 1 year ago

AI code research platform.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

githubSearchCode

CODE SEARCH - Search file content or filenames/paths PARAMS: See schema for parameter details PURPOSE: Search file contents for code patterns or search file/directory names USE_WHEN: Know patterns | Need discovery AVOID: Broad terms | No owner/repo (rate limits) WORKFLOW: Step 1: Discovery (match="path") - Find files [fastest, most token efficient] Step 2: (Optional) Use githubViewRepoStructure to understand structure when exploring unfamiliar repos Step 3: Detailed (match="file", limit=5) - Get matches with context Step 4: Read (githubGetFileContent matchString) - Full content ST…

ParameterTypeDescription
queries *arrayResearch queries for githubSearchCode (1-3 queries per call for optimal resource management). Review schema before use for optimal results

githubGetFileContent

FILE READER - Read file contents with smart extraction PARAMS: See schema for parameter details PURPOSE: Read file contents using patterns, line ranges, or full file mode USE_WHEN: Have file path | After githubSearchCode/githubViewRepoStructure discovery AVOID: Unknown location - search first WORKFLOW: Step 1: Discovery (githubSearchCode/githubViewRepoStructure) Step 2: Read (matchString or line range) Step 3: Explore related patterns STRATEGY (choose based on what you know): - matchString: Know function/class/pattern name → start here [most efficient] - startLine + endLine: K…

ParameterTypeDescription
queries *arrayResearch queries for githubGetFileContent (1-3 queries per call for optimal resource management). Review schema before use for optimal results

githubViewRepoStructure

DIRECTORY EXPLORER - Understand codebase organization PARAMS: See schema for parameter details PURPOSE: Display directory structure with file sizes USE_WHEN: New codebase | Need structure overview AVOID: Know filename - use githubSearchCode | Need content - use githubGetFileContent WORKFLOW: Step 1: Overview (depth=1, path="") Step 2: Drill down (depth=2, path="src") Step 3: Search (githubSearchCode) Step 4: Read (githubGetFileContent) STRATEGY: - depth=1: Fast overview, see immediate files/folders - depth=2: Deeper view, includes subdirectories (slower) - path="": Start at…

ParameterTypeDescription
queries *arrayResearch queries for githubViewRepoStructure (1-3 queries per call for optimal resource management). Review schema before use for optimal results

githubSearchRepositories

REPOSITORY SEARCH - Search repos by keywords/topics PARAMS: See schema for parameter details PURPOSE: Discover GitHub repositories. Gateway for codebase exploration. USE_WHEN: Starting research | Finding projects/libraries AVOID: Know repo name - go to githubViewRepoStructure | Need code patterns - use githubSearchCode WORKFLOW: Step 1: Discover (topicsToSearch or keywordsToSearch) Step 2: Explore (githubViewRepoStructure) Step 3: Search (githubSearchCode) Step 4: Read (githubGetFileContent) STRATEGY: - topicsToSearch: Most precise for curated topic tags - keywordsToSearch: Fl…

ParameterTypeDescription
queries *arrayResearch queries for githubSearchRepositories (1-3 queries per call for optimal resource management). Review schema before use for optimal results

githubSearchPullRequests

PR SEARCH - Search or fetch PRs PARAMS: See schema for parameter details PURPOSE: Get PRs with metadata, discussions, and diffs USE_WHEN: PR context | Implementation research | Review merged changes AVOID: Current code → githubGetFileContent | Code patterns → githubSearchCode WORKFLOW: Step 1: Discover (prNumber or filters) Step 2: Analyze (withComments/withContent) Step 3: Compare (githubGetFileContent for current) STRATEGY: - prNumber: Direct fetch [fastest] when you know PR number - Search: Filter by state/author/labels/dates for discovery - withContent/withComments: St…

ParameterTypeDescription
queries *arrayResearch queries for githubSearchPullRequests (1-3 queries per call for optimal resource management). Review schema before use for optimal results