Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions src/apm_cli/deps/plugin_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,14 @@ def _substitute_plugin_root(
servers: Dict[str, Any], abs_root: str, logger: logging.Logger
) -> Dict[str, Any]:
"""Replace ``${CLAUDE_PLUGIN_ROOT}`` in server config string values."""
token = "${CLAUDE_PLUGIN_ROOT}"
placeholder = "${CLAUDE_PLUGIN_ROOT}"
substituted = False

def _walk(obj: Any) -> Any:
nonlocal substituted
if isinstance(obj, str) and token in obj:
if isinstance(obj, str) and placeholder in obj:
substituted = True
return obj.replace(token, abs_root)
return obj.replace(placeholder, abs_root)
if isinstance(obj, dict):
return {k: _walk(v) for k, v in obj.items()}
if isinstance(obj, list):
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading