{"id":34690047,"url":"https://github.com/thatgeeman/upgrade-advisor","last_synced_at":"2026-05-27T10:03:26.214Z","repository":{"id":327096187,"uuid":"1096990254","full_name":"thatgeeman/upgrade-advisor","owner":"thatgeeman","description":"FixMyEnv: Package Upgrade Advisor \u0026 MCP: AI-powered assistant helps you identify and resolve outdated or vulnerable packages in your Python projects.","archived":false,"fork":false,"pushed_at":"2026-02-01T21:42:33.000Z","size":1173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-02T06:18:27.217Z","etag":null,"topics":["astral-uv","dependency","dependency-resolution","environment","github-mcp","huggingface-spaces","mcp-server","pypi-index","smolagents","uv"],"latest_commit_sha":null,"homepage":"https://huggingface.co/spaces/MCP-1st-Birthday/FixMyEnv","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thatgeeman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-15T10:26:50.000Z","updated_at":"2026-02-01T21:42:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thatgeeman/upgrade-advisor","commit_stats":null,"previous_names":["thatgeeman/upgrade-advisor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thatgeeman/upgrade-advisor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatgeeman%2Fupgrade-advisor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatgeeman%2Fupgrade-advisor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatgeeman%2Fupgrade-advisor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatgeeman%2Fupgrade-advisor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thatgeeman","download_url":"https://codeload.github.com/thatgeeman/upgrade-advisor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatgeeman%2Fupgrade-advisor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33560727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astral-uv","dependency","dependency-resolution","environment","github-mcp","huggingface-spaces","mcp-server","pypi-index","smolagents","uv"],"created_at":"2025-12-24T21:58:02.526Z","updated_at":"2026-05-27T10:03:26.203Z","avatar_url":"https://github.com/thatgeeman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: FixMyEnv Agent\nemoji: 🐍\ncolorFrom: blue\ncolorTo: green\nsdk: gradio\nsdk_version: 6.0.1\napp_file: app.py\npinned: false\nlicense: mit\nshort_description: MCP for Agents that plan your python package upgrade\nhf_oauth: true\nhf_oauth_scopes:\n  - read-repos\ntags:\n  - building-mcp-track-enterprise\n  - building-mcp-track-customer\n  - mcp-in-action-track-customer\n  - mcp-in-action-track-enterprise\n---\n\n# FixMyEnv: Package Upgrade Advisor\n\nAn AI-powered Gradio app (and MCP server) that analyzes your Python project,\nfinds outdated or vulnerable dependencies, and recommends upgrades. Attach a\n`pyproject.toml` or `requirements.txt`, chat with the agent, and it will pull\npackage data via GitHub MCP and run `uv` resolution to suggest safe versions.\n\n- App: https://huggingface.co/spaces/MCP-1st-Birthday/FixMyEnv \n- Demo Video: https://www.youtube.com/watch?v=u1-gZqPu0R0 \n- Social Post: [LinkedIn](https://www.linkedin.com/posts/thatgeeman_mcp-hackathon-aiagents-activity-7401044891281235968-iSSw)\n\nDemo Video: https://www.youtube.com/watch?v=u1-gZqPu0R0 \nSocial Post: [LinkedIn](https://www.linkedin.com/posts/thatgeeman_mcp-hackathon-aiagents-activity-7401044891281235968-iSSw)\n\n## What you get\n- Gradio chat UI with file uploads for dependency manifests.\n- Smolagents-based reasoning backed by Hugging Face Inference API.\n- GitHub MCP client for package metadata; `uv` for dependency resolution.\n- Runs locally with your own tokens; can also be served from Hugging Face Spaces.\n\n## Prerequisites\n- Python 3.10+\n- `git` and a virtual environment tool (`python -m venv` works fine)\n- Hugging Face access token with Inference API rights (`HF_TOKEN`)\n- GitHub Personal Access Token with public repo read scope (`GITHUB_PAT`)\n- Optional: Podman or Docker if you want to run the GitHub MCP server locally instead of using the hosted Copilot MCP endpoint.\n\n## Setup\n1. Clone and enter the repo:\n   ```bash\n   git clone \u003cyour-fork-url\u003e upgrade-advisor\n   cd upgrade-advisor\n   ```\n2. Create and activate a virtual environment:\n   ```bash\n   python -m venv .venv\n   source .venv/bin/activate\n   ```\n3. Install dependencies (editable mode so local changes are picked up):\n   ```bash\n   pip install -e .\n   ```\n   Alternatively: `pip install -r requirements.txt`.\n4. Create a `.env` in the project root:\n   ```dotenv\n   GITHUB_PAT=ghp_********************************\n   HF_TOKEN=hf_***********************************\n   # Optional tweaks\n   GITHUB_TOOLSETS=\"repos\"      # or \"default,discussions\" \n   GITHUB_READ_ONLY=1\n   AGENT_MODEL=Qwen/Qwen3-Next-80B-A3B-Thinking\n   HF_INFERENCE_PROVIDER=together\n   GRADIO_SERVER_NAME=0.0.0.0\n   GRADIO_SERVER_PORT=7860\n   ```\n   The app will warn on missing tokens but will not function fully without\n   them.\n   As of 2025-12-20 the toolsets from Github MCP are experimental. Please\n   double check for available tools [here](https://github.com/github/github-mcp-server/blob/main/docs/remote-server.md#remote-mcp-toolsets)\n\n## Run the app\n```bash\npython app.py\n```\n- Gradio starts at `http://127.0.0.1:7860` by default.\n- Sign in with your Hugging Face account when prompted (or rely on `HF_TOKEN`).\n- Ask upgrade questions and optionally upload `pyproject.toml` or `requirements.txt`.\n- Uploaded files are placed in `uploads/` for the session and cleaned up on exit.\n\n## Optional: run the GitHub MCP server locally\nThe app defaults to the hosted Copilot MCP endpoint. To use a local MCP server instead:\n```bash\npodman run -i --rm \\\n  -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT \\\n  -e GITHUB_READ_ONLY=1 \\\n  -e GITHUB_TOOLSETS=\"default\" \\\n  ghcr.io/github/github-mcp-server\n```\nUpdate `app.py` to point to your local MCP server URL/transport if you take\nthis route.\nRead more about GitHub MCP server setup [here](https://github.com/github/github-mcp-server).\n\n## Developing and testing\n- Code lives in `src/upgrade_advisor/`; the Gradio entry point is `app.py`.\n- Tooling and prompts for the agent are under `src/upgrade_advisor/agents/`.\n- Basic samples for dependency files are in `tests/`.\n- Run checks (none yet by default): `pytest`.\n\n## Troubleshooting\n- **Missing tokens**: ensure `GITHUB_PAT` and `HF_TOKEN` are in `.env` or your shell.\n- **Model choice**: set `AGENT_MODEL`/`CHAT_MODEL` if you want to swap the default Qwen model.\n- **Port conflicts**: override `GRADIO_SERVER_PORT` in `.env`.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatgeeman%2Fupgrade-advisor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatgeeman%2Fupgrade-advisor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatgeeman%2Fupgrade-advisor/lists"}