Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d91473f6e |
@@ -40481,7 +40481,7 @@ function query({
|
|||||||
// package.json
|
// package.json
|
||||||
var package_default = {
|
var package_default = {
|
||||||
name: "@pullfrog/action",
|
name: "@pullfrog/action",
|
||||||
version: "0.0.86",
|
version: "0.0.87",
|
||||||
type: "module",
|
type: "module",
|
||||||
files: [
|
files: [
|
||||||
"index.js",
|
"index.js",
|
||||||
@@ -41072,7 +41072,7 @@ var ghPullfrogMcpName = "gh-pullfrog";
|
|||||||
function createMcpConfigs(githubInstallationToken) {
|
function createMcpConfigs(githubInstallationToken) {
|
||||||
const repoContext = parseRepoContext();
|
const repoContext = parseRepoContext();
|
||||||
const githubRepository = `${repoContext.owner}/${repoContext.name}`;
|
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}`);
|
log.info(`MCP Server Path: ${serverPath}`);
|
||||||
const pathExists = existsSync2(serverPath);
|
const pathExists = existsSync2(serverPath);
|
||||||
log.info(`MCP Server Path exists: ${pathExists}`);
|
log.info(`MCP Server Path exists: ${pathExists}`);
|
||||||
|
|||||||
+3
-4
@@ -19,11 +19,10 @@ export function createMcpConfigs(githubInstallationToken: string): McpConfigs {
|
|||||||
const repoContext = parseRepoContext();
|
const repoContext = parseRepoContext();
|
||||||
const githubRepository = `${repoContext.owner}/${repoContext.name}`;
|
const githubRepository = `${repoContext.owner}/${repoContext.name}`;
|
||||||
|
|
||||||
const serverPath = process.env.GITHUB_ACTION_PATH
|
// In production (GitHub Actions), mcp-server.js is in same directory as entry.js (where this is bundled)
|
||||||
? `${process.env.GITHUB_ACTION_PATH}/mcp-server.js`
|
// In development, server.ts is in the same directory as this file (config.ts)
|
||||||
: fromHere("server.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}`);
|
log.info(`MCP Server Path: ${serverPath}`);
|
||||||
const pathExists = existsSync(serverPath);
|
const pathExists = existsSync(serverPath);
|
||||||
log.info(`MCP Server Path exists: ${pathExists}`);
|
log.info(`MCP Server Path exists: ${pathExists}`);
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pullfrog/action",
|
"name": "@pullfrog/action",
|
||||||
"version": "0.0.86",
|
"version": "0.0.87",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js",
|
"index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user