← Back to list

uv-mcp
by jr2804
This project converts MCP server configurations from any format into the one for your coding agent of choice - just by using any available LLM!
⭐ 2🍴 0📅 Jan 21, 2026
SKILL.md
name: uv-mcp description: UV command automation and project lifecycle management patterns powered by the uv-mcp server license: MIT compatibility: opencode metadata: related_python_guidelines: For general Python development standards related_python_cli: For CLI scaffolding patterns related_mcp_servers: For MCP integration best practices
UV MCP
What I Do
Describe how to steer the uv-mcp server so natural language requests become precise uv workflows. This skill focuses on diagnosing environments, managing dependencies, controlling Python runtimes, and building artifacts with uv while keeping the workspace healthy.
Core Workflows
Environment Health & Setup
| Intent | Tool | What Happens |
|---|---|---|
| Diagnose failures or missing environments | diagnose_environment | Confirms pyproject.toml, virtualenv presence, lock sync status, and reports remediation steps. |
| Repair broken setups | repair_environment | Creates .venv, installs Python, and syncs dependencies automatically. |
| Verify/install uv itself | check_uv_installation, install_uv | Checks uv availability and returns platform-specific install steps when missing. |
> "Diagnose the environment"
# Use output to confirm pyproject + venv state
> "Repair the environment"
# Follow-up diagnostics ensure issues are resolved
Dependency Management
| Scenario | Tool | Notes |
|---|---|---|
| Add/remove libraries | add_dependency, remove_dependency | Supports --dev, optional dependency groups, and updates both config + env. |
Keep env aligned with uv.lock | sync_environment | Syncs or upgrades locked versions; run after lockfile updates. |
| Inspect or refresh packages | check_outdated_packages, show_package_info | Surfaces available upgrades and in-depth metadata for any package. |
Project Inspection
list_dependencies: Lists installed packages; requesttreemode for transitive view.analyze_dependency_tree: Visualizes dependency graph depth to spot heavy branches before refactors.
Runtime Management
| Action | Tool | Guidance |
|---|---|---|
| List installed interpreters | list_python_versions | Shows versions uv already manages. |
| Install new interpreter | install_python_version | Downloads and activates the requested Python release. |
| Pin project runtime | pin_python_version | Updates .python-version to keep CI/CD aligned. |
Project Lifecycle
init_project: Scaffold a fresh uv-enabled project, ideal for greenfield work.export_requirements: Emitrequirements.txtfor platforms that expect pip-compatible manifests.
Build & Distribution (uv ≥ 0.6.4)
| Need | Tool | Tips |
|---|---|---|
| Create wheels/sdists | build_project | Choose wheel-only or sdist-only, customize output dir, capture artifact paths. |
| Refresh lockfile without installing | lock_project | Useful after manual pyproject.toml edits or before committing dependency changes. |
| Clear uv cache | clear_cache | Fixes checksum mismatches or frees disk space; target entire cache or a single package. |
Diagnostic Workflow Template
diagnose_environment- Review reported issues.
repair_environmentdiagnose_environmentagain.- If still broken:
clear_cache→lock_project→sync_environment.
Error Handling & Troubleshooting
- uv-mcp returns structured errors (
error,error_code,suggestion). Echo them in summaries so humans know the auto-remediation path. - Common scenarios:
- UV not installed → run
install_uv. - Missing packages →
sync_environment. - Version conflicts →
clear_cachethenlock_projectandsync_environment. - Corrupted artifacts →
clear_cachefor that package and re-sync.
- UV not installed → run
When to Use Me
- Onboarding or repairing uv-based projects without manual shell work.
- Automating dependency chores (install, remove, upgrade) through MCP.
- Managing Python runtimes inside CI/CD or multi-OS fleets.
- Preparing releases: lockfiles, builds,
requirements.txtexports.
Best Practices
- Diagnose before repair: Always capture the initial state so changes are auditable.
- Sync after mutations: Any
add_dependency/lock_projectcall should be followed bysync_environmentto keep.venvaligned. - Pin intentionally: Use
pin_python_versiononce a runtime is validated by CI. - Cache hygiene: Run
clear_cachewhen checksum or corruption errors show up, then re-sync immediately. - Capture artifacts: After
build_project, record the returned artifact list (wheel + sdist paths) in release notes.
Integration Patterns
- With
python-guidelines: Apply linting/testing standards after uv-mcp modifies dependencies. - With
python-cli: Useinit_project+ dependency adds to scaffold CLIs rapidly. - With
mcp-servers: Document uv-mcp availability in.vscode/mcp.jsonand keep tool lists lean.
Use this skill whenever the uv-mcp server is the fastest path to maintaining healthy uv environments without leaving the IDE context.
Score
Total Score
75/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon

