diff --git a/src/mcp/github-file-ops-server.ts b/src/mcp/github-file-ops-server.ts index f557e39..94db3c9 100644 --- a/src/mcp/github-file-ops-server.ts +++ b/src/mcp/github-file-ops-server.ts @@ -86,14 +86,6 @@ server.tool( if (!githubToken) { throw new Error("GITHUB_TOKEN environment variable is required"); } - - // Log token info for debugging - console.error(`[commit_files] Token type: ${githubToken.startsWith('ghs_') ? 'GitHub App' : githubToken.startsWith('ghp_') ? 'PAT' : 'Unknown'}`); - console.error(`[commit_files] Token created at: ${process.env.TOKEN_CREATED_AT || 'unknown'}`); - if (process.env.TOKEN_CREATED_AT) { - const tokenAge = Date.now() - new Date(process.env.TOKEN_CREATED_AT).getTime(); - console.error(`[commit_files] Token age: ${(tokenAge/60000).toFixed(1)} minutes`); - } const processedFiles = files.map((filePath) => { if (filePath.startsWith("/")) { diff --git a/src/mcp/install-mcp-server.ts b/src/mcp/install-mcp-server.ts index fb89ea3..6cb3394 100644 --- a/src/mcp/install-mcp-server.ts +++ b/src/mcp/install-mcp-server.ts @@ -35,7 +35,6 @@ export async function prepareMcpConfig( REPO_NAME: repo, BRANCH_NAME: branch, REPO_DIR: process.env.GITHUB_WORKSPACE || process.cwd(), - TOKEN_CREATED_AT: new Date().toISOString(), GITHUB_API_URL: process.env.GITHUB_API_URL || "https://api.github.com", }, },