enhance_mcp_dataΒΆ

Enhanced MCP Data Collector.

Collects comprehensive information about MCP servers including: - Full README content - Detailed documentation - Installation instructions - Code examples - Dependencies

AttributesΒΆ

ClassesΒΆ

GitHubDataEnhancer

Enhanced data collection from GitHub repositories.

MCPDataEnhancer

Main class for enhancing MCP server data.

FunctionsΒΆ

main()

Main execution function.

Module ContentsΒΆ

class enhance_mcp_data.GitHubDataEnhancer(github_token: str | None = None)ΒΆ

Enhanced data collection from GitHub repositories.

async __aenter__()ΒΆ

Aenter .

async __aexit__(exc_type, exc_val, exc_tb)ΒΆ

Aexit .

Parameters:
  • exc_type – [TODO: Add description]

  • exc_val – [TODO: Add description]

  • exc_tb – [TODO: Add description]

async check_rate_limit()ΒΆ

Check and respect GitHub rate limits.

extract_github_info(url: str) dict[str, str] | NoneΒΆ

Extract owner and repo from GitHub URL.

async fetch_github_api(url: str) dict[str, Any] | NoneΒΆ

Fetch data from GitHub API with rate limiting.

async get_dependencies(owner: str, repo: str) dict[str, Any]ΒΆ

Extract dependencies from package files.

async get_repository_info(repo_url: str) dict[str, Any]ΒΆ

Get comprehensive repository information.

github_token = NoneΒΆ
rate_limit_remaining = 5000ΒΆ
rate_limit_reset = 0ΒΆ
session = NoneΒΆ
class enhance_mcp_data.MCPDataEnhancer(github_token: str | None = None)ΒΆ

Main class for enhancing MCP server data.

async enhance_all_servers(max_servers: int | None = None) NoneΒΆ

Enhance data for all MCP servers.

async enhance_single_server(server: dict[str, Any], enhancer: GitHubDataEnhancer) dict[str, Any]ΒΆ

Enhance data for a single MCP server.

extract_install_instructions(readme_content: str) dict[str, str]ΒΆ

Extract installation instructions from README content.

async load_existing_data() list[dict[str, Any]]ΒΆ

Load existing MCP servers data.

data_pathΒΆ
github_token = NoneΒΆ
async enhance_mcp_data.main()ΒΆ

Main execution function.

enhance_mcp_data.loggerΒΆ