Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions code_review_graph/skills.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import json
import logging
import platform
import shutil
from pathlib import Path
from typing import Any

Expand Down Expand Up @@ -87,10 +88,16 @@ def _zed_settings_path() -> Path:

def _build_server_entry(plat: dict[str, Any], key: str = "") -> dict[str, Any]:
"""Build the MCP server entry for a platform."""
entry: dict[str, Any] = {
"command": "uvx",
"args": ["code-review-graph", "serve"],
}
if shutil.which("uvx"):
entry: dict[str, Any] = {
"command": "uvx",
"args": ["code-review-graph", "serve"],
}
else:
entry: dict[str, Any] = {
"command": "code-review-graph",
"args": ["serve"],
}
if plat["needs_type"]:
entry["type"] = "stdio"
if key == "opencode":
Expand Down