@reinteractive/rails-insight 1.0.9 → 1.0.10

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 (2) hide show
  1. package/README.md +14 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -50,14 +50,14 @@ npx @reinteractive/rails-insight --project-root /path/to/your/rails/app
50
50
 
51
51
  ## Claude Code Integration
52
52
 
53
- Add to your Claude Code MCP configuration:
53
+ Add to your Claude Code MCP configuration (`~/.claude/claude_desktop_config.json` or via `claude mcp add`):
54
54
 
55
55
  ```json
56
56
  {
57
57
  "mcpServers": {
58
58
  "railsinsight": {
59
- "command": "npx",
60
- "args": ["-y", "@reinteractive/rails-insight"]
59
+ "command": "node",
60
+ "args": ["/opt/homebrew/lib/node_modules/@reinteractive/rails-insight/bin/railsinsight.js", "-p", "."]
61
61
  }
62
62
  }
63
63
  }
@@ -71,14 +71,22 @@ In your `.cursor/mcp.json`:
71
71
  {
72
72
  "mcpServers": {
73
73
  "railsinsight": {
74
- "command": "npx",
75
- "args": ["-y", "@reinteractive/rails-insight"]
74
+ "command": "node",
75
+ "args": ["/opt/homebrew/lib/node_modules/@reinteractive/rails-insight/bin/railsinsight.js", "-p", "."]
76
76
  }
77
77
  }
78
78
  }
79
79
  ```
80
80
 
81
- The server uses the workspace directory as the project root automatically, so no path argument is needed for normal project-local use.
81
+ First install globally, then confirm the path:
82
+
83
+ ```bash
84
+ npm install -g @reinteractive/rails-insight
85
+ npm root -g
86
+ # e.g. /opt/homebrew/lib/node_modules — update args above to match
87
+ ```
88
+
89
+ The `-p .` flag sets the project root to your current workspace directory.
82
90
 
83
91
  ## VS Code Integration
84
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reinteractive/rails-insight",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Rails-aware codebase indexer — MCP server for AI agents",
5
5
  "type": "module",
6
6
  "bin": {