ranetrace/ranetrace-laravel
Ranetrace for Laravel adds lightweight request tracing and performance monitoring to your application, so you can catch slow queries, bottlenecks, and errors before users do—with minimal setup and negligible overhead.
Architecture fit. The package remains a Laravel-side telemetry integration: it instruments the application, ships ingest batches through a queue worker, and exposes telemetry to MCP clients. v1.1.1 improves separation of concerns by removing the embedded local MCP server. The application no longer runs an MCP process, and the package no longer depends on laravel/mcp. The MCP query surface moves to a hosted Streamable HTTP endpoint at https://api.ranetrace.com/mcp, with the same 31 tools and unchanged tool names, parameters, and output. For a TPM, this is a cleaner production architecture: the app does ingest only; agent access is a client-side integration against a vendor endpoint.
Integration feasibility. The application-side change is small: remove the ranetrace.mcp config block, drop RANETRACE_MCP_ENABLED and RANETRACE_MCP_TOKEN from .env, remove laravel/mcp if nothing else needs it, and update MCP client configuration. The MCP client change is also small: create a token on the Ranetrace /mcp page, then add an HTTP MCP server entry with a bearer header. Claude Code, Cursor, and VS Code are explicitly supported. Existing agent prompts and workflows should continue to work because the tool contract is unchanged.
Technical risk. The primary risk is release governance, not code complexity. This is a breaking change shipped in a patch release, after a deprecation note promised removal in the next major. The maintainer states this was deliberate because the package has a single consumer. That rationale reduces risk if we are not yet a consumer, but it is a red flag for semver discipline and future upgrade predictability. Secondary risks: silent no-op env vars after upgrade, removal of MCP rows from diagnostics/ranetrace:status/ranetrace:test breaking runbooks or scripts, transitive dependency breakage if another package relies on laravel/mcp, and new dependence on a hosted endpoint for agent workflows. The hosted MCP also shifts token custody from the application environment to developer/client environments, which changes the secret-management model.
Key questions.
api.ranetrace.com/mcp?laravel/mcp affect any transitive dependency in our applications?ranetrace:status, and ranetrace:test, and do we need new health checks?Stack fit. The package targets Laravel/PHP applications using Composer and a queue worker for ingest batches. The MCP client layer is independent of the Laravel runtime and fits standard MCP client configuration. The hosted HTTP transport is simpler than a local stdio/server process for production use and removes a runtime component from the application host.
Migration path.
RANETRACE_MCP_ENABLED, RANETRACE_MCP_TOKEN, ranetrace.mcp, MCP client configs, diagnostics dashboard references, scripts parsing ranetrace:status or ranetrace:test, and Composer lock entries for laravel/mcp./mcp page and store it in the approved secret manager.laravel/mcp only after confirming no other application code or package depends on it.Compatibility. Agent compatibility is strong because the tool contract is unchanged. Application compatibility is scoped to the MCP configuration and diagnostics surfaces; the five ingest batch methods and batch worker behavior are unchanged. The package’s PHP/Laravel support matrix is not stated in the release notes and should be confirmed before upgrade.
Sequencing. Migrate MCP clients to the hosted endpoint before upgrading the package. The hosted endpoint is available independently, so this avoids a window where the local server is gone and clients are not yet reconfigured. Then upgrade the package, remove config/env, and finally remove laravel/mcp. Pin the package version during rollout rather than relying on a broad caret constraint, given the patch-level breaking change.
Maintenance. Runtime maintenance decreases: no local MCP server, no laravel/mcp version churn, and fewer application config knobs. Maintenance increases on the client side: token lifecycle, per-developer MCP client configuration, and vendor endpoint monitoring. The package’s release history now requires changelog review even for patch upgrades.
Support. Support and platform teams need updated documentation explaining that RANETRACE_MCP_* variables are no longer read and that MCP diagnostics rows are intentionally absent. Without this, developers will report “missing” diagnostics or waste time debugging inert env vars. The semver exception should be documented internally so support knows to treat patch releases as potentially breaking.
Scaling. Ingest scaling is unchanged because the batch methods and worker are unchanged. Hosted MCP scaling becomes the vendor’s responsibility, which is generally positive, but rate limits and quotas are unknown and could constrain heavy agent usage. Application hosts no longer carry MCP process overhead, which slightly reduces resource use and attack surface.
Failure modes.
RANETRACE_MCP_* in .env: silent no-op, causing configuration drift and confusion.laravel/mcp while another dependency needs it: Composer conflict or runtime class-not-found.Ramp-up. Developer ramp-up is low: one CLI command or one mcpServers file entry, plus a token. TPM/ops ramp-up is moderate: security review of the hosted endpoint, token custody model, client configuration standards, and runbook updates. A reasonable rollout estimate is half a day to one day per application for inventory, upgrade, and validation, plus additional time for security and compliance review in regulated environments.
How can I help you explore Laravel packages today?