{"id":26766,"library":"awslabs-git-repo-research-mcp-server","title":"AWS Labs Git Repo Research MCP Server","description":"An AWS Labs Model Context Protocol (MCP) server for researching git repositories. Version 1.0.15, requires Python >=3.10. Released under Apache 2.0, maintained by AWS Labs.","status":"active","version":"1.0.15","language":"python","source_language":"en","source_url":"https://github.com/awslabs/mcp.git","tags":["mcp","aws","git","research","model-context-protocol"],"install":[{"cmd":"pip install awslabs-git-repo-research-mcp-server","lang":"bash","label":"default"}],"dependencies":[],"imports":[{"note":"The package itself is installed as a CLI tool; main import is from the 'mcp' package.","wrong":"","symbol":"server","correct":"from mcp.server import Server"},{"note":"FastMCP is the recommended way to create an MCP server in later versions.","wrong":"","symbol":"FastMCP","correct":"from mcp.server.fastmcp import FastMCP"}],"quickstart":{"code":"from mcp.server.fastmcp import FastMCP\n\n# Create an MCP server\nmcp = FastMCP(\"GitRepoResearch\")\n\n@mcp.tool()\ndef research_repo(url: str) -> str:\n    \"\"\"Research a git repository and return structured information.\"\"\"\n    return f\"Researched {url}\"\n\nif __name__ == \"__main__\":\n    mcp.run()","lang":"python","description":"Minimal MCP server using FastMCP. Requires the mcp package (>=1.0.0)."},"warnings":[{"fix":"Import from mcp.server.fastmcp or mcp.server as documented.","message":"The package name on PyPI (awslabs-git-repo-research-mcp-server) differs from the import path: you import from 'mcp', not the package name.","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate to FastMCP: from mcp.server.fastmcp import FastMCP; replace Server(...) with FastMCP(...).","message":"FastMCP replaced the lower-level 'Server' class as the recommended entry point in version 1.0.0. Code using 'Server' directly may need updates.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Update to latest version and follow the new CLI patterns (e.g., 'mcp run server.py').","message":"Older MCP versions used 'mcp' as a CLI. The library now ships a separate CLI entry point; check documentation for exact usage.","severity":"deprecated","affected_versions":"<1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure you have installed 'awslabs-git-repo-research-mcp-server' and its dependencies: pip install awslabs-git-repo-research-mcp-server","cause":"Installed the wrong package or the package did not install dependencies.","error":"ModuleNotFoundError: No module named 'mcp'"},{"fix":"Upgrade the mcp package: pip install --upgrade mcp (or the umbrella package).","cause":"Have an older version of the 'mcp' package that predates FastMCP.","error":"ImportError: cannot import name 'FastMCP' from 'mcp.server'"},{"fix":"Ensure tool functions return strings, dicts, or other JSON-serializable types. Use json.dumps() for complex data.","cause":"Returning non-serializable objects from a tool function.","error":"TypeError: Object of type Response is not JSON serializable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}