add debug flag for mcp server

This commit is contained in:
David Blass
2025-10-13 13:02:04 -04:00
parent 314f669f10
commit bcdf6ab5fb
4 changed files with 54 additions and 16 deletions
+5 -2
View File
@@ -31,7 +31,9 @@ server.tool(
const githubInstallationToken = process.env.GITHUB_INSTALLATION_TOKEN;
if (!githubInstallationToken) {
throw new Error("GITHUB_INSTALLATION_TOKEN environment variable is required");
throw new Error(
"GITHUB_INSTALLATION_TOKEN environment variable is required"
);
}
// Resolve repository context from environment
@@ -66,7 +68,8 @@ server.tool(
],
};
} catch (error) {
const errorMessage = error instanceof Error ? error.message : String(error);
const errorMessage =
error instanceof Error ? error.message : String(error);
return {
content: [
{