embarrassing

This commit is contained in:
ssalbdivad
2025-10-08 14:07:28 -04:00
parent 267ed3686f
commit 671334f37d
6 changed files with 206 additions and 5 deletions
+24
View File
@@ -0,0 +1,24 @@
/**
* Simple MCP configuration helper for adding our minimal GitHub comment server
*/
const actionPath = process.env.GITHUB_ACTION_PATH || process.cwd();
export function createMcpConfig(githubToken: string, repoOwner: string, repoName: string) {
return JSON.stringify(
{
mcpServers: {
minimal_github_comment: {
command: "node",
args: [`${actionPath}/mcp/server.ts`],
env: {
GITHUB_TOKEN: githubToken,
REPO_OWNER: repoOwner,
REPO_NAME: repoName,
},
},
},
},
null,
2
);
}