Skip to main content
Glama
lemenkov
by lemenkov

fork_project

Create a copy of a Pagure project in your namespace for independent development or experimentation.

Instructions

Fork a Pagure project to your namespace.

Args: project: Project name to fork namespace: Project namespace (default: rpms)

Returns: JSON string with fork creation result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYes
namespaceNorpms

Implementation Reference

  • The handler implementation for `fork_project` which calls the Pagure API.
    async def fork_project(
        self,
        project: str,
        namespace: str = "rpms",
    ) -> Dict[str, Any]:
        """Fork a project to your namespace.
    
        Args:
            project: Project name
            namespace: Project namespace
    
        Returns:
            Fork creation result
        """
        response = await self.client.post(
            f"{self.api_base}/fork",
            json={"repo": project, "namespace": namespace},
            headers=self._get_headers(),
        )
        response.raise_for_status()
        return response.json()

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/lemenkov/mcp-pagure'

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