Class: McpAuthorization::McpController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- McpAuthorization::McpController
- Defined in:
- app/controllers/mcp_authorization/mcp_controller.rb
Instance Method Summary collapse
-
#handle ⇒ Object
POST/GET/DELETE /mcp/:domain : () -> void.
Instance Method Details
#handle ⇒ Object
POST/GET/DELETE /mcp/:domain : () -> void
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/mcp_authorization/mcp_controller.rb', line 7 def handle server_context = build_server_context if mcp_method == "tools/list" && McpAuthorization::Cache.enabled? return render_cached_tools_list(server_context) end status, headers, body = run_transport(server_context, tools_for_request(server_context)) apply_headers(headers) render json: body.first, status: status end |