codex-review-mcp 1.1.0 → 1.1.1

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.
@@ -6,7 +6,7 @@ import { performCodeReview } from './tools/performCodeReview.js';
6
6
  const server = new McpServer({ name: 'codex-review-mcp', version: '0.1.0' });
7
7
  server.registerTool('perform_code_review', {
8
8
  title: 'Perform Code Review',
9
- description: 'Review git diffs in the current repo and return actionable Markdown feedback.',
9
+ description: 'Review git diffs in the current repo and return actionable Markdown feedback. In auto mode (default), reviews uncommitted changes if present, otherwise reviews current branch vs default branch. No need to commit changes first - the tool reviews your working tree.',
10
10
  inputSchema: {
11
11
  target: z.enum(['auto', 'staged', 'head', 'range']).default('auto'),
12
12
  baseRef: z.string().optional(),
@@ -8,7 +8,7 @@ export async function performCodeReview(input, onProgress) {
8
8
  await onProgress?.('Collecting diff…', 10, 100);
9
9
  const diffText = await collectDiff(input, input.workspaceDir);
10
10
  if (!diffText.trim()) {
11
- throw new Error('No diff found. Ensure you have changes or a valid git range.');
11
+ throw new Error('No changes to review. You are on the default branch with a clean working tree.');
12
12
  }
13
13
  await onProgress?.('Gathering context…', 30, 100);
14
14
  const context = await gatherContext();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-review-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",