# McpController#handle

- **Period:** 27 Jun 17:26 UTC – 27 Jun 23:25 UTC
- **Throughput**: 0.11 / min
- **Average:** 47.6 ms

## Most Impactful Sections
| Kind | Location | Avg ms | Avg calls | Impact | Command |
| ---- | -------- | -----: | --------: | -----: | ------- |
| code | app/controllers/mcp_controller.rb:15 | 21.42 | 1.0 | 45.01% | `McpController#handle` |
| http | app/lib/sensor/query/helpers/influx/base.rb:95 | 21.88 | 0.21 | 9.68% | `POST influxdb` |
| rack | /usr/local/bundle/gems/http_accept_language-2.1.1/lib/http_accept_language/middleware.rb:7 | 4.58 | 1.0 | 9.62% | `HttpAcceptLanguage::Middleware` |
| redis | /usr/local/bundle/gems/activesupport-8.1.3/lib/active_support/cache/redis_cache_store.rb:464 | 1.5 | 2.0 | 6.30% | `pipeline` |
| gc | ruby/gc.c | 3.5 | 0.68 | 5.03% | `GC.start` |
| cache | app/lib/sensor/query/helpers/influx/base.rb:79 | 3.73 | 0.39 | 3.10% | `read write` |
| redis | app/lib/mcp_oauth.rb:49 | 0.97 | 1.0 | 2.05% | `get` |
| rack | /usr/local/bundle/gems/actionpack-8.1.3/lib/action_dispatch/http/content_security_policy.rb:37 | 0.92 | 1.0 | 1.94% | `ActionDispatch::ContentSecurityPolicy::Middleware` |
| rack | /usr/local/bundle/gems/railties-8.1.3/lib/rails/rack/logger.rb:20 | 0.82 | 1.0 | 1.71% | `Rails::Rack::Logger` |
| rack | /usr/local/bundle/gems/rack-attack-6.8.0/lib/rack/attack.rb:104 | 0.79 | 1.0 | 1.66% | `Rack::Attack` |
| sql | app/lib/sensor/query/ranking.rb:91 | 2.17 | 0.32 | 1.44% | `SELECT "summary_values"."date", "summary_values"."value" FROM "summary_values" …` |
| cache | app/lib/mcp_oauth.rb:49 | 0.53 | 1.0 | 1.11% | `read` |
| redis | app/lib/sensor/query/helpers/influx/base.rb:79 | 1.33 | 0.39 | 1.11% | `get` |
| rack | /usr/local/bundle/gems/actionpack-8.1.3/lib/action_dispatch/middleware/executor.rb:13 | 0.5 | 1.0 | 1.05% | `ActionDispatch::Executor` |

[View on RoRvsWild ↗](https://www.rorvswild.com/applications/136101/requests/McpController%23handle?range=6h)