Class: ActionMCP::Server::JsonRpcHandler
- Inherits:
-
JsonRpcHandlerBase
- Object
- JsonRpcHandlerBase
- ActionMCP::Server::JsonRpcHandler
- Includes:
- ErrorAware, ErrorHandling, Handlers::LoggingHandler, Handlers::PromptHandler, Handlers::ResourceHandler, Handlers::TaskHandler, Handlers::ToolHandler
- Defined in:
- lib/action_mcp/server/json_rpc_handler.rb
Instance Attribute Summary
Attributes inherited from JsonRpcHandlerBase
Instance Method Summary collapse
-
#call(request) ⇒ Object
Handle server-specific methods.
Methods included from Handlers::TaskHandler
Methods included from Handlers::LoggingHandler
Methods included from Handlers::PromptHandler
Methods included from Handlers::ToolHandler
Methods included from Handlers::ResourceHandler
Methods inherited from JsonRpcHandlerBase
Constructor Details
This class inherits a constructor from ActionMCP::JsonRpcHandlerBase
Instance Method Details
#call(request) ⇒ Object
Handle server-specific methods
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/action_mcp/server/json_rpc_handler.rb', line 16 def call(request) read(request.to_h) case request when JSON_RPC::Request handle_request(request) when JSON_RPC::Notification handle_notification(request) when JSON_RPC::Response handle_response(request) end end |