Compare commits

...

1 Commits

Author SHA1 Message Date
David Blass 2296060d04 await top-level runServer 2025-10-13 13:44:29 -04:00
3 changed files with 9 additions and 10 deletions
+7
View File
@@ -3,6 +3,13 @@
*/
const actionPath = process.env.GITHUB_ACTION_PATH || process.cwd();
// import { dirname } from "node:path";
// import { fileURLToPath } from "node:url";
// const __filename = fileURLToPath(import.meta.url);
// const __dirname = dirname(__filename);
// const actionPath = dirname(__dirname);
export function createMcpConfig(githubInstallationToken: string) {
const githubRepository = process.env.GITHUB_REPOSITORY;
if (!githubRepository) {
+1 -9
View File
@@ -6,7 +6,6 @@ import { Octokit } from "@octokit/rest";
import { type } from "arktype";
import { z } from "zod";
import { resolveRepoContext } from "../utils/repo-context.ts";
import { writeFileSync } from "fs";
const server = new McpServer({
name: "Minimal GitHub Issue Comment Server",
@@ -93,11 +92,4 @@ async function runServer() {
});
}
runServer().catch((error) => {
// Write error to file for GitHub Actions visibility
try {
writeFileSync('/tmp/mcp-error.log', `${new Date().toISOString()} MCP Server Error: ${error.message}\nStack: ${error.stack}\n`, { flag: 'a' });
} catch {}
console.error('MCP Server Error:', error);
process.exit(1);
});
await runServer();
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@pullfrog/action",
"version": "0.0.24",
"version": "0.0.25",
"type": "module",
"files": [
"index.js",