remove some debug logging

This commit is contained in:
David Blass
2025-11-06 21:11:28 -05:00
parent 2d91473f6e
commit 13cc56944f
2 changed files with 2 additions and 41 deletions
-20
View File
@@ -2,11 +2,8 @@
* Simple MCP configuration helper for adding our minimal GitHub comment server
*/
import { existsSync, readdirSync } from "node:fs";
import { dirname } from "node:path";
import type { McpServerConfig } from "@anthropic-ai/claude-agent-sdk";
import { fromHere } from "@ark/fs";
import { log } from "../utils/cli.ts";
import { parseRepoContext } from "../utils/github.ts";
export const ghPullfrogMcpName = "gh-pullfrog";
@@ -23,23 +20,6 @@ export function createMcpConfigs(githubInstallationToken: string): McpConfigs {
// 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");
log.info(`MCP Server Path: ${serverPath}`);
const pathExists = existsSync(serverPath);
log.info(`MCP Server Path exists: ${pathExists}`);
if (!pathExists) {
const dir = dirname(serverPath);
log.info(`Directory: ${dir}`);
try {
const files = readdirSync(dir);
log.info(`Files in directory: ${files.join(", ")}`);
} catch (error) {
log.warning(
`Failed to read directory: ${error instanceof Error ? error.message : String(error)}`
);
}
}
return {
[ghPullfrogMcpName]: {
command: "node",