Project Brain
v2.0.3Read-only source search and retrieval across configured GitHub repositories
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
project_code_files
List tracked file paths at the current prepared revision of one or more repositories. Optional pathPrefix narrows to a directory; optional query filters file names. File locations are navigation hints; read relevant lines before citing a claim.
| Parameter | Type | Description |
|---|---|---|
limit | integer | maximum file paths, from 1 to 500 |
pathPrefix | string | optional repository-relative directory prefix |
query | string | optional case-insensitive text contained in the file path |
repos | null | array | optional repository slugs (owner/repo); defaults to all configured repositories |
project_code_read
Read a narrow repository-relative source range from one repository, limited to 300 lines. The repository is cloned or refreshed on demand; the result includes the prepared revision and a citation.
| Parameter | Type | Description |
|---|---|---|
path * | string | repository-relative file path |
repo * | string | repository slug (owner/repo) |
endLine | integer | last line, defaults to 200 and at most 300 lines per call |
startLine | integer | first line, defaults to 1 |
project_code_search
Search exact text (or a regular expression) across one or more configured repositories. Repositories are cloned or refreshed on demand. Results include repository, revision, path, line, snippet, and a [owner/repo@revision:path:line] citation. Per-repository failures are reported as warnings.
| Parameter | Type | Description |
|---|---|---|
query * | string | literal text by default, or a regular expression when regex is true |
limit | integer | maximum matches, from 1 to 100 |
regex | boolean | interpret query as a regular expression; false uses literal search |
repos | null | array | optional repository slugs (owner/repo); defaults to all configured repositories |
project_repo_list
List the configured repository slugs (owner/repo) that this server can search. Call once to see what is available.
project_repo_sync
Force-refresh one repository (or all configured repositories) in the server cache. This only updates the read-only cache; it never modifies the remote repository.
| Parameter | Type | Description |
|---|---|---|
repo | string | optional repository slug to refresh; defaults to all configured repositories |
project_symbol_search
Search symbol definitions (Universal Ctags) by name fragment across one or more repositories. Repositories are cloned or refreshed on demand.
| Parameter | Type | Description |
|---|---|---|
query * | string | symbol name or distinctive symbol fragment |
limit | integer | maximum matches, from 1 to 100 |
repos | null | array | optional repository slugs (owner/repo); defaults to all configured repositories |