|
@@ -2,7 +2,6 @@ import logging
|
|
from pathlib import Path
|
|
from pathlib import Path
|
|
from typing import Optional
|
|
from typing import Optional
|
|
from enum import Enum
|
|
from enum import Enum
|
|
-from base_config import path as REPO_BASE_PATH
|
|
|
|
|
|
|
|
import git
|
|
import git
|
|
from mcp.types import TextContent
|
|
from mcp.types import TextContent
|
|
@@ -219,7 +218,7 @@ async def list_repos_tool(uuid: str) -> list[TextContent]:
|
|
Args:
|
|
Args:
|
|
uuid: 用户的唯一标识,用于定位其仓库根路径。
|
|
uuid: 用户的唯一标识,用于定位其仓库根路径。
|
|
"""
|
|
"""
|
|
- user_path = Path(REPO_BASE_PATH) / uuid
|
|
|
|
|
|
+ user_path = Path('/www/gitnexus_repos') / uuid
|
|
logger.info(f"Executing tool: list_repos_tool for user {uuid}")
|
|
logger.info(f"Executing tool: list_repos_tool for user {uuid}")
|
|
|
|
|
|
if not user_path.exists() or not user_path.is_dir():
|
|
if not user_path.exists() or not user_path.is_dir():
|