Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 2 additions & 1 deletion src/mcp/github-file-ops-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { z } from "zod";
import { readFile } from "fs/promises";
import { join } from "path";
import fetch from "node-fetch";
import { GITHUB_API_URL } from "../github/api/config";
import { Octokit } from "@octokit/rest";
import { updateClaudeComment } from "../github/operations/comments/update-claude-comment";

Expand Down Expand Up @@ -40,6 +39,7 @@ const REPO_OWNER = process.env.REPO_OWNER;
const REPO_NAME = process.env.REPO_NAME;
const BRANCH_NAME = process.env.BRANCH_NAME;
const REPO_DIR = process.env.REPO_DIR || process.cwd();
const GITHUB_API_URL = process.env.GITHUB_API_URL || "https://api.github.com";

if (!REPO_OWNER || !REPO_NAME || !BRANCH_NAME) {
console.error(
Expand Down Expand Up @@ -466,6 +466,7 @@ server.tool(

const octokit = new Octokit({
auth: githubToken,
baseUrl: GITHUB_API_URL,
});

const isPullRequestReviewComment =
Expand Down
1 change: 1 addition & 0 deletions src/mcp/install-mcp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export async function prepareMcpConfig(
...(claudeCommentId && { CLAUDE_COMMENT_ID: claudeCommentId }),
GITHUB_EVENT_NAME: process.env.GITHUB_EVENT_NAME || "",
IS_PR: process.env.IS_PR || "false",
GITHUB_API_URL: process.env.GITHUB_API_URL || "https://api.github.com",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claude let's get the api url from src/github/api/config.ts when passing it here

@claude claude Bot Jun 11, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude finished @ashwin-ant's task in 2m 28s —— View job


Todo List:

  • Read src/mcp/install-mcp-server.ts to understand current implementation
  • Read src/github/api/config.ts to see how GITHUB_API_URL is exported
  • Import GITHUB_API_URL from config and use it when passing to MCP server
  • Run tests to ensure the change doesn't break anything
  • Commit and push the change

Summary

Updated src/mcp/install-mcp-server.ts to import and use GITHUB_API_URL from src/github/api/config.ts instead of reading process.env.GITHUB_API_URL directly. This ensures consistency with how the API URL is handled throughout the codebase.

All tests are passing (201 tests, 0 failures).

},
},
},
Expand Down