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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a86e08a22e13276222b43f30f800f409ce3bfe8452c2ef9c51a7d3c1d8379b60
4
- data.tar.gz: 8a0272687e4df3142c3cf229709ee10af544ac7d325822a5d9cc87bad936bc7a
3
+ metadata.gz: d8aba38bcc58a867fae2d76824dec90a627c571acbbf0a29c6db2c6aa03b5b1d
4
+ data.tar.gz: bb7e8204e91f4843d85577f2db65ee59a38370e28140a1c2db4eca3a40f99351
5
5
  SHA512:
6
- metadata.gz: 470c6fdb093d724f40f96aaabdd021842ba448c40b4a2b269544237cdc58fedac0355cedab53199b76b4b1c689bb89c64c308dc6b84903ad1742912c04bfd33b
7
- data.tar.gz: fcd04b3eb16daf0116d5c7ef806daa701d0fd82422ca6fe8014f1ddb091f8cc27e0439f8734cac52fe40264810fa2d191779d42cd166667933689b685ebb7bb0
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,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Shim so Bundler's auto-require works.
4
+ # Bundler calls: require "fosm-rails-coding-agent" (dashes, matching gem name).
5
+ # The real entrypoint is lib/fosm_rails_coding_agent.rb (underscores).
6
+ require "fosm_rails_coding_agent"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FosmRailsCodingAgent
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
@@ -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.1
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
- - FSL-1.1-Apache-2.0
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