mcp-on-rails 0.3.2 โ 0.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.
- checksums.yaml +4 -4
- data/lib/mcp/on/rails/templates/copilot-instructions.md +21 -4
- data/lib/mcp/on/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 508883489aa822494bda5ef430783adf91fe53024ab9d3e3cd2102b4dace3774
|
4
|
+
data.tar.gz: 6e22ee2159efefded627cc598d4ee23790c7d6ad966f4bd1a8666e6c5469ddef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a410decb113fd05348aed651ac3a02e0fedab881ae1331f9877652bb169e8dd48ad114ea224f437b611092c958becb43350554e142dbc1d05b5f086693baf1bf
|
7
|
+
data.tar.gz: 1daa2d26191e8eb94c53c01f81c4f1f08fdbfb501ad3a29d0a7096106d8004bcef42164a51da9e51117c8b44da7396dfc289ab588aec89a52f3965a3e997395f
|
@@ -29,7 +29,7 @@ This Rails project uses **MCP on Rails** configuration located in `.mcp-on-rails
|
|
29
29
|
|
30
30
|
- **`requirement.md`** - Detailed requirements and acceptance criteria
|
31
31
|
- **`design.md`** - Technical design, architecture decisions, and implementation approach
|
32
|
-
- **MANDATORY**: Must query `
|
32
|
+
- **MANDATORY**: Must query `context7` for latest Rails documentation before writing
|
33
33
|
- **MANDATORY**: Include version-specific Rails patterns and best practices
|
34
34
|
- **MANDATORY**: Reference current Rails guides for security, performance, and conventions
|
35
35
|
- **`tasks.md`** - Step-by-step task breakdown with progress tracking
|
@@ -42,7 +42,7 @@ This Rails project uses **MCP on Rails** configuration located in `.mcp-on-rails
|
|
42
42
|
|
43
43
|
### ๐ **Rails Documentation Integration**
|
44
44
|
|
45
|
-
**Always leverage `
|
45
|
+
**Always leverage `context7` for up-to-date Rails guidance**:
|
46
46
|
|
47
47
|
1. **During design.md Creation** (MANDATORY):
|
48
48
|
|
@@ -281,7 +281,7 @@ Always follow:
|
|
281
281
|
When asked to help with Rails development:
|
282
282
|
|
283
283
|
1. **๐ CREATE SPECS FIRST** (MANDATORY): Always start with `.mcp-on-rails/specs/[feature-name]/` directory creation
|
284
|
-
2. **๐ Query Rails MCP**: Use `
|
284
|
+
2. **๐ Query Rails MCP**: Use `context7` to get latest Rails documentation and best practices
|
285
285
|
3. **๐ฏ Identify the area** of work (models, controllers, views, etc.)
|
286
286
|
4. **๐ Reference the appropriate prompt**: "Let me check .mcp-on-rails/prompts/[area].md for best practices"
|
287
287
|
5. **๐ง Apply specialist knowledge** for that area with current Rails version considerations
|
@@ -289,11 +289,28 @@ When asked to help with Rails development:
|
|
289
289
|
7. **๐งช Ensure comprehensive testing** and documentation
|
290
290
|
8. **๐ Update progress**: Mark completed tasks in `tasks.md` throughout development
|
291
291
|
|
292
|
+
### Rails Command Execution Guidelines
|
293
|
+
|
294
|
+
**โ ๏ธ IMPORTANT: Use Rails Runner Instead of Rails Console**
|
295
|
+
|
296
|
+
- **NEVER use `rails console`** - it's interactive and will cause infinite waiting
|
297
|
+
- **ALWAYS use `rails runner`** for executing Rails code in terminal
|
298
|
+
- **Example**: Instead of opening console and typing code, use:
|
299
|
+
```bash
|
300
|
+
rails runner "User.create(name: 'John', email: 'john@example.com')"
|
301
|
+
rails runner "MyModel.find(1).update(status: 'active')"
|
302
|
+
rails runner "puts Rails.env"
|
303
|
+
```
|
304
|
+
- **For complex operations**: Create a temporary script file and run it:
|
305
|
+
```bash
|
306
|
+
rails runner script/temporary_operation.rb
|
307
|
+
```
|
308
|
+
|
292
309
|
### Mandatory Pre-Development Checklist:
|
293
310
|
|
294
311
|
- [ ] Created `.mcp-on-rails/specs/[feature-name]/` directory
|
295
312
|
- [ ] Written comprehensive `requirement.md`
|
296
|
-
- [ ] **MANDATORY**: Queried `
|
313
|
+
- [ ] **MANDATORY**: Queried `context7` for latest Rails documentation and patterns
|
297
314
|
- [ ] **MANDATORY**: Incorporated current Rails version best practices into `design.md`
|
298
315
|
- [ ] Designed technical approach in `design.md` with up-to-date Rails guidance
|
299
316
|
- [ ] Planned step-by-step tasks in `tasks.md`
|
data/lib/mcp/on/rails/version.rb
CHANGED