Skip to main content
Glama

search_code

Search for code within Git repositories to locate specific files and lines matching your query across branches and commits.

Instructions

Search for code in a repository. Returns matching files and lines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesRepository identifier (GitLab: "group/project" or ID, GitHub: "owner/repo")
queryYesSearch query to find in code
refNoBranch or commit to search in
pageNoPage number (default: 1)
per_pageNoItems per page (default: 20, max: 100)

Latest Blog Posts

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/Ray0907/git-mcp-server'

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