Project Brain

v2.0.3
io.github.Gentleelephant/project-brain Checked 2 days ago Published 3 months ago

Read-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.

ParameterTypeDescription
limitintegermaximum file paths, from 1 to 500
pathPrefixstringoptional repository-relative directory prefix
querystringoptional case-insensitive text contained in the file path
reposnull | arrayoptional 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.

ParameterTypeDescription
path *stringrepository-relative file path
repo *stringrepository slug (owner/repo)
endLineintegerlast line, defaults to 200 and at most 300 lines per call
startLineintegerfirst line, defaults to 1

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.

ParameterTypeDescription
repostringoptional repository slug to refresh; defaults to all configured repositories