codex-review-mcp 2.3.7 → 2.3.8
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 +4 -3
- package/dist/mcp-server.test.js +4 -3
- package/package.json +1 -1
package/dist/mcp-server.js
CHANGED
@@ -86,10 +86,11 @@ server.registerTool('perform_code_review', {
|
|
86
86
|
maxTokens: input.maxTokens,
|
87
87
|
};
|
88
88
|
const onProgress = async (message, progress, total) => {
|
89
|
-
// Only send progress notifications if we have
|
90
|
-
|
89
|
+
// Only send progress notifications if we have an explicit progress token
|
90
|
+
// Note: Do NOT fall back to requestId - it's a different thing in MCP protocol
|
91
|
+
const progressToken = extra?._meta?.progressToken;
|
91
92
|
if (progressToken === undefined || progressToken === null) {
|
92
|
-
// Skip progress notifications if no token
|
93
|
+
// Skip progress notifications if no explicit token provided
|
93
94
|
return;
|
94
95
|
}
|
95
96
|
await server.server.notification({
|
package/dist/mcp-server.test.js
CHANGED
@@ -50,10 +50,11 @@ describe('MCP Server Integration Tests', () => {
|
|
50
50
|
},
|
51
51
|
}, async (input, extra) => {
|
52
52
|
const onProgress = async (message, progress, total) => {
|
53
|
-
// Only send progress notifications if we have
|
54
|
-
|
53
|
+
// Only send progress notifications if we have an explicit progress token
|
54
|
+
// Note: Do NOT fall back to requestId - it's a different thing in MCP protocol
|
55
|
+
const progressToken = extra?._meta?.progressToken;
|
55
56
|
if (progressToken === undefined || progressToken === null) {
|
56
|
-
// Skip progress notifications if no token
|
57
|
+
// Skip progress notifications if no explicit token provided
|
57
58
|
return;
|
58
59
|
}
|
59
60
|
await server.server.notification({
|