codex-review-mcp 2.3.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mcp-server.js +10 -2
- package/package.json +1 -1
package/dist/mcp-server.js
CHANGED
@@ -83,10 +83,16 @@ server.registerTool('perform_code_review', {
|
|
83
83
|
maxTokens: input.maxTokens,
|
84
84
|
};
|
85
85
|
const onProgress = async (message, progress, total) => {
|
86
|
+
// Only send progress notifications if we have a valid progress token
|
87
|
+
const progressToken = extra?._meta?.progressToken ?? extra?.requestId;
|
88
|
+
if (!progressToken) {
|
89
|
+
// Skip progress notifications if no token available
|
90
|
+
return;
|
91
|
+
}
|
86
92
|
await server.server.notification({
|
87
93
|
method: 'notifications/progress',
|
88
94
|
params: {
|
89
|
-
progressToken
|
95
|
+
progressToken,
|
90
96
|
progress,
|
91
97
|
total,
|
92
98
|
message,
|
@@ -138,10 +144,12 @@ process.on('uncaughtException', (error) => {
|
|
138
144
|
console.error(`[codex-review-mcp] Server will continue running, but this indicates a serious bug.`);
|
139
145
|
// Don't exit - let the server continue running
|
140
146
|
});
|
141
|
-
// Log startup information
|
147
|
+
// Log startup information with environment diagnostics
|
142
148
|
console.error(`[codex-review-mcp v${VERSION}] Starting server...`);
|
143
149
|
console.error(`[codex-review-mcp] Node version: ${process.version}`);
|
144
150
|
console.error(`[codex-review-mcp] Platform: ${process.platform}`);
|
151
|
+
console.error(`[codex-review-mcp] CWD: ${process.cwd()}`);
|
152
|
+
console.error(`[codex-review-mcp] OPENAI_API_KEY: ${process.env.OPENAI_API_KEY ? '✓ Set' : '✗ MISSING'}`);
|
145
153
|
const transport = new StdioServerTransport();
|
146
154
|
await server.connect(transport);
|
147
155
|
console.error(`[codex-review-mcp v${VERSION}] ✅ Server started successfully`);
|