fosm-rails-coding-agent 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.
- checksums.yaml +4 -4
- data/AGENTS.md +2 -0
- data/README.md +14 -0
- data/lib/fosm-rails-coding-agent.rb +6 -0
- data/lib/fosm_rails_coding_agent/version.rb +1 -1
- data/lib/generators/fosm/mcp_config/mcp_config_generator.rb +32 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8aba38bcc58a867fae2d76824dec90a627c571acbbf0a29c6db2c6aa03b5b1d
|
|
4
|
+
data.tar.gz: bb7e8204e91f4843d85577f2db65ee59a38370e28140a1c2db4eca3a40f99351
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b30439f18922944bf005157e424b76c0449f494e82f638af2ee985b1c205f221953214d7dbc37ef07981515eb0ddeef92641890ea7cb81504c6d3c7196d15822
|
|
7
|
+
data.tar.gz: 051c9159ae15c10e1546f7bb027ad4371a32acaff2d5296b401896bde8fc4dabddbfb4c6bc006873f7bfec0d03a56124775f415a15a38960b89c3659399b82ad
|
data/AGENTS.md
CHANGED
|
@@ -33,6 +33,8 @@ lib/fosm_rails_coding_agent/
|
|
|
33
33
|
why_blocked.rb # Diagnostic: why can't event fire
|
|
34
34
|
bin/
|
|
35
35
|
fosm-coding-agent # ACP agent executable (stdio)
|
|
36
|
+
lib/generators/fosm/mcp_config/
|
|
37
|
+
mcp_config_generator.rb # rails generate fosm:mcp_config
|
|
36
38
|
```
|
|
37
39
|
|
|
38
40
|
## Code Conventions
|
data/README.md
CHANGED
|
@@ -59,6 +59,20 @@ bundle install
|
|
|
59
59
|
|
|
60
60
|
Auto-activates in development via its Railtie. No configuration needed for basic use.
|
|
61
61
|
|
|
62
|
+
Then generate the MCP config for your coding agent:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
rails generate fosm:mcp_config
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
This creates `.mcp.json` in your Rails root. Start Claude Code from the same directory:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
claude
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
For a complete walkthrough with fosm-rails, sample lifecycle, seed data, and test prompts, see the [Testing Guide](docs/testing-guide.md).
|
|
75
|
+
|
|
62
76
|
## Configuration
|
|
63
77
|
|
|
64
78
|
In `config/environments/development.rb`:
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Fosm
|
|
4
|
+
module Generators
|
|
5
|
+
# Generates .mcp.json in the Rails root for Claude Code MCP integration.
|
|
6
|
+
#
|
|
7
|
+
# Usage:
|
|
8
|
+
# rails generate fosm:mcp_config
|
|
9
|
+
# rails generate fosm:mcp_config --port=4000
|
|
10
|
+
class McpConfigGenerator < Rails::Generators::Base
|
|
11
|
+
desc "Creates .mcp.json for Claude Code / Codex / Copilot MCP integration"
|
|
12
|
+
|
|
13
|
+
class_option :port, type: :numeric, default: 3000,
|
|
14
|
+
desc: "Port the Rails server runs on (default: 3000)"
|
|
15
|
+
|
|
16
|
+
def create_mcp_config
|
|
17
|
+
port = options[:port]
|
|
18
|
+
|
|
19
|
+
create_file ".mcp.json", <<~JSON
|
|
20
|
+
{
|
|
21
|
+
"mcpServers": {
|
|
22
|
+
"fosm-rails": {
|
|
23
|
+
"type": "http",
|
|
24
|
+
"url": "http://localhost:#{port}/fosm-agent/mcp"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
JSON
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fosm-rails-coding-agent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Abhishek Parolkar
|
|
@@ -86,6 +86,7 @@ files:
|
|
|
86
86
|
- LICENSE
|
|
87
87
|
- README.md
|
|
88
88
|
- bin/fosm-coding-agent
|
|
89
|
+
- lib/fosm-rails-coding-agent.rb
|
|
89
90
|
- lib/fosm_rails_coding_agent.rb
|
|
90
91
|
- lib/fosm_rails_coding_agent/acp_agent.rb
|
|
91
92
|
- lib/fosm_rails_coding_agent/configuration.rb
|
|
@@ -109,9 +110,10 @@ files:
|
|
|
109
110
|
- lib/fosm_rails_coding_agent/tools/project_eval.rb
|
|
110
111
|
- lib/fosm_rails_coding_agent/transport.rb
|
|
111
112
|
- lib/fosm_rails_coding_agent/version.rb
|
|
113
|
+
- lib/generators/fosm/mcp_config/mcp_config_generator.rb
|
|
112
114
|
homepage: https://github.com/inloopstudio/fosm-rails-coding-agent
|
|
113
115
|
licenses:
|
|
114
|
-
-
|
|
116
|
+
- Nonstandard
|
|
115
117
|
metadata:
|
|
116
118
|
homepage_uri: https://github.com/inloopstudio/fosm-rails-coding-agent
|
|
117
119
|
source_code_uri: https://github.com/inloopstudio/fosm-rails-coding-agent
|