get_project_info
Retrieve detailed project information from Pagure git forges to access repository data, manage files, and handle pull request workflows.
Instructions
Get detailed information about a Pagure project.
Args: project: Project name (e.g., 'python3', 'kernel') namespace: Project namespace (default: rpms)
Returns: JSON string with project details
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | ||
| namespace | No | rpms |
Implementation Reference
- src/pagure/server.py:51-67 (handler)The handler for the 'get_project_info' MCP tool, defined as an async function and decorated with @mcp.tool(). It retrieves project details using the Pagure client.
async def get_project_info( project: str, namespace: str = "rpms", ) -> str: """Get detailed information about a Pagure project. Args: project: Project name (e.g., 'python3', 'kernel') namespace: Project namespace (default: rpms) Returns: JSON string with project details """ client = get_client() result = await client.get_project(project, namespace) return result.model_dump_json(indent=2)