This commit is contained in:
David Blass
2025-10-13 14:04:46 -04:00
parent 2296060d04
commit 9444a0e208
4 changed files with 975 additions and 748 deletions
+3 -7
View File
@@ -1,14 +1,11 @@
/**
* Simple MCP configuration helper for adding our minimal GitHub comment server
*/
const actionPath = process.env.GITHUB_ACTION_PATH || process.cwd();
// const actionPath = process.env.GITHUB_ACTION_PATH || process.cwd();
// import { dirname } from "node:path";
// import { fileURLToPath } from "node:url";
import { fromHere } from "@ark/fs";
// const __filename = fileURLToPath(import.meta.url);
// const __dirname = dirname(__filename);
// const actionPath = dirname(__dirname);
const actionPath = fromHere("..");
export function createMcpConfig(githubInstallationToken: string) {
const githubRepository = process.env.GITHUB_REPOSITORY;
@@ -27,7 +24,6 @@ export function createMcpConfig(githubInstallationToken: string) {
env: {
GITHUB_INSTALLATION_TOKEN: githubInstallationToken,
GITHUB_REPOSITORY: githubRepository,
LOG_LEVEL: "debug",
},
},
},