Skip to main content
Glama

code-index-mcp

find_files

Locate files in code repositories by matching glob patterns (e.g., '.py', 'test_.js') using an in-memory file index. Quickly retrieve file paths for analysis or verification without manual search.

Instructions

Find files matching a glob pattern using pre-built file index.

Use when:
- Looking for files by pattern (e.g., "*.py", "test_*.js")
- Searching by filename only (e.g., "README.md" finds all README files)
- Checking if specific files exist in the project
- Getting file lists for further analysis

Pattern matching:
- Supports both full path and filename-only matching
- Uses standard glob patterns (*, ?, [])
- Fast lookup using in-memory file index
- Uses forward slashes consistently across all platforms

Args:
    pattern: Glob pattern to match files (e.g., "*.py", "test_*.js", "README.md")

Returns:
    List of file paths matching the pattern

Input Schema

NameRequiredDescriptionDefault
patternYes

Input Schema (JSON Schema)

{ "properties": { "pattern": { "title": "Pattern", "type": "string" } }, "required": [ "pattern" ], "title": "find_filesArguments", "type": "object" }

Other Tools from code-index-mcp

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/johnhuang316/code-index-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server