From a29981fe38fa9597e4d1d48bb59ed916cfddc51f Mon Sep 17 00:00:00 2001 From: Lina Tawfik Date: Fri, 23 May 2025 11:22:47 -0700 Subject: [PATCH] Remove inline comments from code --- src/mcp/github-file-ops-server.ts | 3 --- src/mcp/install-mcp-server.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mcp/github-file-ops-server.ts b/src/mcp/github-file-ops-server.ts index 80f579b..07526a6 100644 --- a/src/mcp/github-file-ops-server.ts +++ b/src/mcp/github-file-ops-server.ts @@ -73,9 +73,7 @@ server.tool( throw new Error("GITHUB_TOKEN environment variable is required"); } - // Process file paths - keep them as-is for now const processedFiles = files.map((filePath) => { - // Remove leading slash if present to ensure relative paths if (filePath.startsWith("/")) { return filePath.slice(1); } @@ -121,7 +119,6 @@ server.tool( // 3. Create tree entries for all files const treeEntries = await Promise.all( processedFiles.map(async (filePath) => { - // Construct the full path using REPO_DIR const fullPath = filePath.startsWith('/') ? filePath : join(REPO_DIR, filePath); diff --git a/src/mcp/install-mcp-server.ts b/src/mcp/install-mcp-server.ts index dacae25..462967d 100644 --- a/src/mcp/install-mcp-server.ts +++ b/src/mcp/install-mcp-server.ts @@ -34,7 +34,7 @@ export async function prepareMcpConfig( REPO_OWNER: owner, REPO_NAME: repo, BRANCH_NAME: branch, - REPO_DIR: process.env.GITHUB_WORKSPACE || process.cwd(), // Use GitHub workspace directory + REPO_DIR: process.env.GITHUB_WORKSPACE || process.cwd(), }, }, },