diff --git a/mcp/server.ts b/mcp/server.ts index 147442b..847ae8b 100644 --- a/mcp/server.ts +++ b/mcp/server.ts @@ -11,10 +11,7 @@ import { IssueTool } from "./issue.ts"; import { PullRequestTool } from "./pr.ts"; import { PullRequestInfoTool } from "./prInfo.ts"; import { ReviewTool } from "./review.ts"; -import { addTools, initLogFile } from "./shared.ts"; - -// Initialize log file when server starts -initLogFile(); +import { addTools } from "./shared.ts"; const server = new FastMCP({ name: "gh-pullfrog", diff --git a/mcp/shared.ts b/mcp/shared.ts index d433f40..21be66b 100644 --- a/mcp/shared.ts +++ b/mcp/shared.ts @@ -1,6 +1,6 @@ -import { cached } from "@ark/util"; import { appendFileSync } from "node:fs"; import { join } from "node:path"; +import { cached } from "@ark/util"; import { Octokit } from "@octokit/rest"; import type { StandardSchemaV1 } from "@standard-schema/spec"; import type { FastMCP, Tool } from "fastmcp"; @@ -39,20 +39,6 @@ function getLogPath(): string { return join(process.cwd(), "log.txt"); } -/** - * Initialize the log file with server startup information - */ -export function initLogFile(): void { - try { - const logPath = getLogPath(); - const timestamp = new Date().toISOString(); - const logEntry = `[${timestamp}] MCP Server Started: gh-pullfrog\n`; - appendFileSync(logPath, logEntry, "utf-8"); - } catch { - // Silently fail if logging fails to avoid breaking the tool - } -} - /** * Log MCP tool call information to log.txt */ diff --git a/play.ts b/play.ts index b1e803c..67c5230 100644 --- a/play.ts +++ b/play.ts @@ -29,11 +29,6 @@ export async function run( agent.inputKeys.map((inputKey) => [inputKey, process.env[inputKey.toUpperCase()]]) ), }; - // agent: "cursor", - // ...flatMorph(agents, (_, agent) => [ - // agent.inputKey, - // process.env[agent.inputKey.toUpperCase()], - // ]), const result = await main(inputs);