@klitchevo/code-council 0.0.1 → 0.0.2

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.
Files changed (56) hide show
  1. package/README.md +48 -16
  2. package/dist/index.d.ts +0 -6
  3. package/dist/index.js +627 -57
  4. package/package.json +4 -3
  5. package/dist/config.d.ts +0 -48
  6. package/dist/config.d.ts.map +0 -1
  7. package/dist/config.js +0 -61
  8. package/dist/constants.d.ts +0 -33
  9. package/dist/constants.d.ts.map +0 -1
  10. package/dist/constants.js +0 -36
  11. package/dist/errors.d.ts +0 -53
  12. package/dist/errors.d.ts.map +0 -1
  13. package/dist/errors.js +0 -92
  14. package/dist/index.d.ts.map +0 -1
  15. package/dist/logger.d.ts +0 -22
  16. package/dist/logger.d.ts.map +0 -1
  17. package/dist/logger.js +0 -62
  18. package/dist/prompts/backend-review.d.ts +0 -6
  19. package/dist/prompts/backend-review.d.ts.map +0 -1
  20. package/dist/prompts/backend-review.js +0 -28
  21. package/dist/prompts/code-review.d.ts +0 -6
  22. package/dist/prompts/code-review.d.ts.map +0 -1
  23. package/dist/prompts/code-review.js +0 -18
  24. package/dist/prompts/frontend-review.d.ts +0 -6
  25. package/dist/prompts/frontend-review.d.ts.map +0 -1
  26. package/dist/prompts/frontend-review.js +0 -28
  27. package/dist/prompts/plan-review.d.ts +0 -6
  28. package/dist/prompts/plan-review.d.ts.map +0 -1
  29. package/dist/prompts/plan-review.js +0 -29
  30. package/dist/review-client.d.ts +0 -75
  31. package/dist/review-client.d.ts.map +0 -1
  32. package/dist/review-client.js +0 -116
  33. package/dist/schemas.d.ts +0 -60
  34. package/dist/schemas.d.ts.map +0 -1
  35. package/dist/schemas.js +0 -46
  36. package/dist/tools/factory.d.ts +0 -20
  37. package/dist/tools/factory.d.ts.map +0 -1
  38. package/dist/tools/factory.js +0 -55
  39. package/dist/tools/list-config.d.ts +0 -9
  40. package/dist/tools/list-config.d.ts.map +0 -1
  41. package/dist/tools/list-config.js +0 -31
  42. package/dist/tools/review-backend.d.ts +0 -22
  43. package/dist/tools/review-backend.d.ts.map +0 -1
  44. package/dist/tools/review-backend.js +0 -38
  45. package/dist/tools/review-code.d.ts +0 -15
  46. package/dist/tools/review-code.d.ts.map +0 -1
  47. package/dist/tools/review-code.js +0 -29
  48. package/dist/tools/review-frontend.d.ts +0 -22
  49. package/dist/tools/review-frontend.d.ts.map +0 -1
  50. package/dist/tools/review-frontend.js +0 -38
  51. package/dist/tools/review-plan.d.ts +0 -22
  52. package/dist/tools/review-plan.d.ts.map +0 -1
  53. package/dist/tools/review-plan.js +0 -35
  54. package/dist/utils/parallel-executor.d.ts +0 -10
  55. package/dist/utils/parallel-executor.d.ts.map +0 -1
  56. package/dist/utils/parallel-executor.js +0 -21
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Code Council
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/code-council.svg)](https://www.npmjs.com/package/code-council)
3
+ [![npm version](https://img.shields.io/npm/v/@klitchevo/code-council.svg)](https://www.npmjs.com/package/@klitchevo/code-council)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
  [![CI](https://github.com/klitchevo/code-council/workflows/CI/badge.svg)](https://github.com/klitchevo/code-council/actions)
6
6
  [![codecov](https://codecov.io/gh/klitchevo/code-council/branch/main/graph/badge.svg)](https://codecov.io/gh/klitchevo/code-council)
@@ -32,7 +32,7 @@ Add to your `claude_desktop_config.json`:
32
32
  "mcpServers": {
33
33
  "code-council": {
34
34
  "command": "npx",
35
- "args": ["-y", "code-council"],
35
+ "args": ["-y", "@klitchevo/code-council"],
36
36
  "env": {
37
37
  "OPENROUTER_API_KEY": "your-api-key-here"
38
38
  }
@@ -48,7 +48,7 @@ Add to your `claude_desktop_config.json`:
48
48
  "mcpServers": {
49
49
  "code-council": {
50
50
  "command": "npx",
51
- "args": ["-y", "code-council"],
51
+ "args": ["-y", "@klitchevo/code-council"],
52
52
  "env": {
53
53
  "OPENROUTER_API_KEY": "your-api-key-here",
54
54
  "CODE_REVIEW_MODELS": ["anthropic/claude-3.5-sonnet", "openai/gpt-4-turbo"],
@@ -69,7 +69,7 @@ Add to your Cursor MCP settings (`.cursor/mcp.json` or similar):
69
69
  "mcpServers": {
70
70
  "code-council": {
71
71
  "command": "npx",
72
- "args": ["-y", "code-council"],
72
+ "args": ["-y", "@klitchevo/code-council"],
73
73
  "env": {
74
74
  "OPENROUTER_API_KEY": "your-api-key-here"
75
75
  }
@@ -85,7 +85,7 @@ For any MCP client that supports environment variables:
85
85
  ```json
86
86
  {
87
87
  "command": "npx",
88
- "args": ["-y", "code-council"],
88
+ "args": ["-y", "@klitchevo/code-council"],
89
89
  "env": {
90
90
  "OPENROUTER_API_KEY": "your-openrouter-api-key"
91
91
  }
@@ -97,7 +97,7 @@ For any MCP client that supports environment variables:
97
97
  If you prefer to install globally:
98
98
 
99
99
  ```bash
100
- npm install -g code-council
100
+ npm install -g @klitchevo/code-council
101
101
  ```
102
102
 
103
103
  Then configure without npx:
@@ -106,7 +106,7 @@ Then configure without npx:
106
106
  {
107
107
  "mcpServers": {
108
108
  "code-council": {
109
- "command": "code-council",
109
+ "command": "@klitchevo/code-council",
110
110
  "env": {
111
111
  "OPENROUTER_API_KEY": "your-api-key-here"
112
112
  }
@@ -124,17 +124,49 @@ Then configure without npx:
124
124
 
125
125
  ## Security Best Practices
126
126
 
127
- ⚠️ **IMPORTANT**: Always provide your API key via environment variables in the MCP configuration, NOT in a `.env` file or hardcoded in config files.
127
+ ⚠️ **CRITICAL SECURITY WARNING**: Never commit your OpenRouter API key to git!
128
128
 
129
- ### DO:
130
- - Store the API key in the `env` section of your MCP client configuration
131
- - The key stays in your local config file and is never committed to version control
132
- - Each MCP client isolates environment variables per server
129
+ ### MCP Config File Locations (Safe - Not in Git)
133
130
 
134
- ### DON'T:
135
- - Don't put the API key directly in `.mcp.json` or similar config files
136
- - Don't commit API keys to git repositories
131
+ MCP client configurations are stored **outside your project directory** and won't be committed:
132
+
133
+ - **Claude Desktop**:
134
+ - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
135
+ - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
136
+ - Linux: `~/.config/Claude/claude_desktop_config.json`
137
+ - **Cursor**: Global settings (not in project)
138
+ - **Other MCP Clients**: Typically in user config directories
139
+
140
+ These files are **safe to put your API key in** because they're not in your git repository.
141
+
142
+ ### ✅ SAFE:
143
+ - Putting the API key in MCP client config files (they're outside git)
144
+ - Using system environment variables and referencing them
145
+ - Keeping configs in user directories (`~/.config/`, `~/Library/`, etc.)
146
+
147
+ ### ❌ NEVER DO:
148
+ - Don't create `.mcp.json` or config files **inside your project directory**
149
+ - Don't commit any file containing your API key to git
137
150
  - Don't share config files containing API keys
151
+ - Don't hardcode API keys in code
152
+
153
+ ### Using Environment Variables (Extra Security)
154
+
155
+ For added security, store the key in your shell environment:
156
+
157
+ ```bash
158
+ # Add to ~/.zshrc or ~/.bashrc
159
+ export OPENROUTER_API_KEY="sk-or-v1-..."
160
+ ```
161
+
162
+ Then reference it in your MCP config:
163
+ ```json
164
+ {
165
+ "env": {
166
+ "OPENROUTER_API_KEY": "${OPENROUTER_API_KEY}"
167
+ }
168
+ }
169
+ ```
138
170
 
139
171
  ## Available Tools
140
172
 
@@ -224,7 +256,7 @@ You can customize which AI models are used for reviews by setting environment va
224
256
  "mcpServers": {
225
257
  "code-council": {
226
258
  "command": "npx",
227
- "args": ["-y", "code-council"],
259
+ "args": ["-y", "@klitchevo/code-council"],
228
260
  "env": {
229
261
  "OPENROUTER_API_KEY": "your-api-key",
230
262
  "CODE_REVIEW_MODELS": ["anthropic/claude-3.5-sonnet", "openai/gpt-4-turbo", "google/gemini-pro"],
package/dist/index.d.ts CHANGED
@@ -1,7 +1 @@
1
1
  #!/usr/bin/env node
2
- /**
3
- * Code Council MCP Server
4
- * Multi-model AI code review server using OpenRouter API
5
- */
6
- import "dotenv/config";
7
- //# sourceMappingURL=index.d.ts.map