Back to .md Directory

GitHub Tools Reference

Quick reference for the GitHub MCP tools for searching Algorand code examples.

May 2, 2026
0 downloads
0 views
ai mcp
View source

GitHub Tools Reference

Quick reference for the GitHub MCP tools for searching Algorand code examples.

Tools

ToolPurpose
github_get_file_contentsRead files or list directories
github_search_codeSearch for code patterns
github_search_repositoriesFind repositories

github_get_file_contents

Retrieve file contents or list directory entries from a GitHub repository.

Parameters:

ParameterRequiredDescription
ownerYesRepository owner (e.g., algorandfoundation)
repoYesRepository name (e.g., puya-ts)
pathNoPath to file or directory (default: root)
refNoGit ref (branch, tag, or commit SHA)

Examples:

# Get a specific file
github_get_file_contents owner:algorandfoundation repo:puya-ts path:examples/voting/contract.algo.ts

# List directory contents
github_get_file_contents owner:algorandfoundation repo:puya-ts path:examples

# List repo root
github_get_file_contents owner:algorandfoundation repo:devportal-code-examples

# Get file from specific branch
github_get_file_contents owner:algorandfoundation repo:puya-ts path:README.md ref:main

github_search_code

Search for code patterns across GitHub repositories.

Parameters:

ParameterRequiredDescription
queryYesSearch query (GitHub code search syntax)
sortNoSort field (indexed only)
orderNoSort order (asc or desc)
pageNoPage number (default: 1)
perPageNoResults per page (max 100, default: 30)

Query Syntax:

QualifierExampleDescription
org:org:algorandfoundationSearch within organization
repo:repo:algorandfoundation/puya-tsSearch specific repo
language:language:typescriptFilter by language
path:path:examples/Filter by file path
extension:extension:tsFilter by file extension

Examples:

# Search for BoxMap usage in TypeScript
github_search_code query:"BoxMap org:algorandfoundation language:typescript"

# Search for inner transactions
github_search_code query:"itxn org:algorandfoundation language:typescript"

# Search in specific repo
github_search_code query:"GlobalState repo:algorandfoundation/puya-ts"

# Search for ARC-4 implementations
github_search_code query:"arc4 abimethod org:algorandfoundation"

github_search_repositories

Find repositories by name, description, topics, or other criteria.

Parameters:

ParameterRequiredDescription
queryYesSearch query (GitHub repo search syntax)
sortNoSort by: stars, forks, help-wanted-issues, updated
orderNoSort order (asc or desc)
pageNoPage number (default: 1)
perPageNoResults per page (max 100, default: 30)

Query Syntax:

QualifierExampleDescription
topic:topic:algorandFilter by topic
language:language:typescriptFilter by primary language
org:org:algorandfoundationFilter by organization
stars:stars:>100Filter by star count

Examples:

# Find Algorand repos by topic
github_search_repositories query:"topic:algorand language:typescript"

# Find NFT-related Algorand projects
github_search_repositories query:"algorand nft" sort:stars order:desc

# Find repos in algorandfoundation
github_search_repositories query:"org:algorandfoundation smart-contract"

# Find popular Algorand repos
github_search_repositories query:"topic:algorand stars:>50" sort:stars

Priority Repositories

RepositoryPathContent
devportal-code-examplesprojects/typescript-examples/contracts/Beginner TypeScript
devportal-code-examplesprojects/python-examples/smart_contracts/Beginner Python
puya-tsexamples/Advanced TypeScript (voting, amm, auction)
puyaexamples/Advanced Python
algokit-typescript-template/Project template
algokit-utils-tssrc/Utility library

Common Patterns Location

PatternRepositoryPath
Box storagedevportal-code-examplescontracts/BoxStorage/
BoxMappuya-tsexamples/voting/, examples/amm/
Inner transactionsdevportal-code-examplescontracts/
ARC-4 methodspuya-tsexamples/hello_world_arc4/
State managementdevportal-code-examplescontracts/

Related Documents