Revert "try to add debugging to mcp server"

This reverts commit 6d9c6fd2b1.
This commit is contained in:
ssalbdivad
2025-10-09 18:07:28 -04:00
parent 6d9c6fd2b1
commit 872e620342
5 changed files with 3 additions and 62 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export function createMcpConfig(githubInstallationToken: string) {
{
mcpServers: {
minimal_github_comment: {
command: `${actionPath}/mcp/debug-server.sh`,
command: "node",
args: [`${actionPath}/mcp/server.ts`],
env: {
GITHUB_INSTALLATION_TOKEN: githubInstallationToken,
-16
View File
@@ -1,16 +0,0 @@
#!/bin/bash
# Wrapper script to capture MCP server logs for debugging
LOG_FILE="/tmp/mcp-server.log"
echo "=== MCP Server Debug Wrapper Starting ===" >> "$LOG_FILE"
echo "Timestamp: $(date)" >> "$LOG_FILE"
echo "Working directory: $(pwd)" >> "$LOG_FILE"
echo "Environment variables:" >> "$LOG_FILE"
env | grep -E "(GITHUB_|MCP_|NODE_)" >> "$LOG_FILE"
echo "Node.js version: $(node --version)" >> "$LOG_FILE"
echo "Arguments: $@" >> "$LOG_FILE"
echo "=== Starting MCP Server ===" >> "$LOG_FILE"
# Execute the actual MCP server, capturing both stdout and stderr
exec node "$@" 2>&1 | tee -a "$LOG_FILE"