Class: RailsMarkup::Server
- Inherits:
-
Object
- Object
- RailsMarkup::Server
- Defined in:
- lib/rails_markup/server.rb
Overview
Main entry point — starts HTTP server and optionally MCP server. HTTP and MCP share the same Store instance so annotations flow both ways. If the HTTP port is already taken, MCP proxies to the existing server.
Instance Attribute Summary collapse
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Instance Method Summary collapse
-
#initialize(port: 4747, mcp_only: false) ⇒ Server
constructor
A new instance of Server.
- #start ⇒ Object
Constructor Details
Instance Attribute Details
#store ⇒ Object (readonly)
Returns the value of attribute store.
10 11 12 |
# File 'lib/rails_markup/server.rb', line 10 def store @store end |
Instance Method Details
#start ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/rails_markup/server.rb', line 18 def start if @mcp_only start_mcp_only else start_http_and_mcp end end |