UNPKG

octocode-mcp

Version:

Model Context Protocol (MCP) server for advanced GitHub repository analysis and code discovery. Provides AI assistants with powerful tools to search, analyze, and understand codebases across GitHub.

23 lines (22 loc) 973 B
/** * GitHub Search Code - match='file' vs match='path' Modes * * This test file verifies that both search modes work correctly and return * the proper structure based on the search type. * * IMPORTANT: text_matches behavior has been FIXED (as of this commit): * * For match='file' (content search): * - Searches IN file content for your keywords * - Returns: files array with path + text_matches (code snippets where keyword appears) * - Example: Searching "useState" returns files with text_matches showing actual code with useState * * For match='path' (filename/directory search): * - Searches in file/directory NAMES for your keywords * - Returns: files array with path ONLY (NO text_matches) * - Example: Searching "test" returns paths like "scripts/jest/TestFlags.js" (no content snippets) * - This makes sense: you're finding files by name, not searching their content! * * Test Results from Actual Octocode MCP Server (Verified): */ export {};