cc-reviewer 1.3.1 → 1.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/README.md CHANGED
@@ -9,14 +9,14 @@ Get second-opinion feedback from OpenAI Codex and Google Gemini CLIs on Claude C
9
9
  claude mcp add -s user cc-reviewer -- npx -y cc-reviewer
10
10
  ```
11
11
 
12
- **Step 2: Install slash commands**
13
- ```bash
14
- npx cc-reviewer-setup
15
- ```
12
+ **Step 2: Restart Claude Code**
16
13
 
17
- **Step 3: Restart Claude Code**
14
+ The MCP tools and slash commands (`/codex`, `/gemini`, `/multi`) are automatically installed.
18
15
 
19
- The MCP tools and slash commands (`/codex`, `/gemini`, `/multi`) are now available.
16
+ **Manual command install** (if needed):
17
+ ```bash
18
+ npx cc-reviewer --setup
19
+ ```
20
20
 
21
21
  Verify with:
22
22
  ```bash
@@ -60,7 +60,7 @@ These tools provide **external second-opinion reviews** from Codex and Gemini CL
60
60
 
61
61
  ## Slash Commands
62
62
 
63
- After running `npx cc-reviewer-setup`, these commands are available:
63
+ These commands are available after restart:
64
64
 
65
65
  ```bash
66
66
  /codex # Review with Codex
package/dist/index.d.ts CHANGED
@@ -10,5 +10,9 @@
10
10
  * - Multi-model parallel review (multi_review)
11
11
  * - Structured JSON output with confidence scores
12
12
  * - Expert role specialization per focus area
13
+ *
14
+ * Usage:
15
+ * - npx cc-reviewer # Run MCP server (normal usage)
16
+ * - npx cc-reviewer --setup # Install slash commands only
13
17
  */
14
18
  import './adapters/index.js';
package/dist/index.js CHANGED
@@ -10,6 +10,10 @@
10
10
  * - Multi-model parallel review (multi_review)
11
11
  * - Structured JSON output with confidence scores
12
12
  * - Expert role specialization per focus area
13
+ *
14
+ * Usage:
15
+ * - npx cc-reviewer # Run MCP server (normal usage)
16
+ * - npx cc-reviewer --setup # Install slash commands only
13
17
  */
14
18
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
15
19
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
@@ -17,6 +21,18 @@ import { CallToolRequestSchema, ListToolsRequestSchema, } from '@modelcontextpro
17
21
  import { handleCodexReview, handleGeminiReview, handleMultiReview, ReviewInputSchema, TOOL_DEFINITIONS } from './tools/feedback.js';
18
22
  import { logCliStatus } from './cli/check.js';
19
23
  import { installCommands } from './commands.js';
24
+ // Handle --setup flag: install commands and exit
25
+ if (process.argv.includes('--setup') || process.argv.includes('--commands')) {
26
+ const result = installCommands();
27
+ if (result.success) {
28
+ console.log(`✓ Installed ${result.installed.length} slash commands: ${result.installed.join(', ')}`);
29
+ process.exit(0);
30
+ }
31
+ else {
32
+ console.error(`✗ Failed to install commands: ${result.error}`);
33
+ process.exit(1);
34
+ }
35
+ }
20
36
  // Import adapters to register them
21
37
  import './adapters/index.js';
22
38
  // Create the MCP server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-reviewer",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "MCP server for Claude Code - Get second-opinion feedback from Codex/Gemini CLIs",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",