From 2d91473f6e9d186326cd1de9aeb70fa76a76c4fd Mon Sep 17 00:00:00 2001 From: David Blass Date: Thu, 6 Nov 2025 21:03:13 -0500 Subject: [PATCH] debug mcp --- entry.js | 4 ++-- mcp/config.ts | 7 +++---- package.json | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/entry.js b/entry.js index c65fe2c..3e16a4d 100755 --- a/entry.js +++ b/entry.js @@ -40481,7 +40481,7 @@ function query({ // package.json var package_default = { name: "@pullfrog/action", - version: "0.0.86", + version: "0.0.87", type: "module", files: [ "index.js", @@ -41072,7 +41072,7 @@ var ghPullfrogMcpName = "gh-pullfrog"; function createMcpConfigs(githubInstallationToken) { const repoContext = parseRepoContext(); const githubRepository = `${repoContext.owner}/${repoContext.name}`; - const serverPath = process.env.GITHUB_ACTION_PATH ? `${process.env.GITHUB_ACTION_PATH}/mcp-server.js` : fromHere("server.ts"); + const serverPath = process.env.GITHUB_ACTIONS ? fromHere("mcp-server.js") : fromHere("server.ts"); log.info(`MCP Server Path: ${serverPath}`); const pathExists = existsSync2(serverPath); log.info(`MCP Server Path exists: ${pathExists}`); diff --git a/mcp/config.ts b/mcp/config.ts index d363962..d682ed4 100644 --- a/mcp/config.ts +++ b/mcp/config.ts @@ -19,11 +19,10 @@ export function createMcpConfigs(githubInstallationToken: string): McpConfigs { const repoContext = parseRepoContext(); const githubRepository = `${repoContext.owner}/${repoContext.name}`; - const serverPath = process.env.GITHUB_ACTION_PATH - ? `${process.env.GITHUB_ACTION_PATH}/mcp-server.js` - : fromHere("server.ts"); + // In production (GitHub Actions), mcp-server.js is in same directory as entry.js (where this is bundled) + // In development, server.ts is in the same directory as this file (config.ts) + const serverPath = process.env.GITHUB_ACTIONS ? fromHere("mcp-server.js") : fromHere("server.ts"); - // Debug: Log server path and check if it exists log.info(`MCP Server Path: ${serverPath}`); const pathExists = existsSync(serverPath); log.info(`MCP Server Path exists: ${pathExists}`); diff --git a/package.json b/package.json index caf42b2..dac575f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pullfrog/action", - "version": "0.0.86", + "version": "0.0.87", "type": "module", "files": [ "index.js",