Skip to main content
Glama
ffpy

GitLab MCP Code Review

by ffpy

search_projects

Find GitLab projects by name to locate repositories for code review and analysis through the GitLab MCP Code Review server.

Instructions

Search for GitLab projects by name. Args: project_name: The name of the project to search for. If None, returns all projects. Returns: A list of projects matching the search criteria.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_nameNo

Implementation Reference

  • The handler function for the 'search_projects' tool, decorated with @mcp.tool() which registers it in the MCP server. It retrieves GitLab projects matching the given project_name (or all if None) using the GitLab client and returns them as a list of dictionaries.
    @mcp.tool() def search_projects(ctx: Context, project_name: str = None) -> List[Dict[str, Any]]: """ Search for GitLab projects by name. Args: project_name: The name of the project to search for. If None, returns all projects. Returns: A list of projects matching the search criteria. """ gl = ctx.request_context.lifespan_context projects = gl.projects.list(search=project_name) return [p.asdict() for p in projects]

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/ffpy/gitlab-mcp-code-review'

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