Skip to main content
Glama

PyGithub MCP Server

by AstroMined
contents.py987 B
"""Repository content converters. This module provides functions for converting PyGithub repository content objects to our schema representations. """ from typing import Any, Dict, Optional from github.ContentFile import ContentFile # Placeholder for future implementation def convert_file_content(content: ContentFile) -> Dict[str, Any]: """Convert a PyGithub ContentFile to our schema. Args: content: PyGithub ContentFile object Returns: File content data in our schema format """ # This is a placeholder implementation # Will be expanded as needed return { "name": content.name, "path": content.path, "sha": content.sha, "size": content.size, "type": content.type, "encoding": getattr(content, "encoding", None), "content": getattr(content, "content", None), "url": content.url, "html_url": content.html_url, "download_url": content.download_url, }

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/AstroMined/pygithub-mcp-server'

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