# dev.phpray/phpray

> Ask an agent why a PHP site is slow: every request with its SQL, HTTP calls, errors and N+1.

- name: dev.phpray/phpray
- version: 0.15.6
- connection class: R0 (autonomous)
- trust: 94/100
- quality: 79/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/dev.phpray%2Fphpray
- tools: https://api.protogrid.dev/v1/servers/dev.phpray%2Fphpray/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "phpray": {
      "type": "http",
      "url": "https://phpray.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${PHPRAY_TOKEN}"
      }
    }
  }
}
```

Placeholders to fill: `${PHPRAY_TOKEN}`.

## Trust

- hygiene: 100
- liveness: 94
- freshness: 100
- provenance: 85
- drivers: +repository +dns-namespace +website +reachable +uptime-85% +updated-28d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 79/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-06-18; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 71 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: phpray_sites (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); phpray_trace (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); phpray_slow_queries (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 1,046 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump

### stability: 100 (weight 15)

- pass `stability.changes`: no tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 10, about 1,046 tokens to load them all
- tool set hash: aea25832110ea31d3d55a12b54465c72
- badge: [![protogrid quality](https://protogrid.dev/badge/dev.phpray/phpray.svg)](https://protogrid.dev/servers/dev.phpray/phpray)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Tool changes

_No tool definition changes recorded._

## Remotes

- https://phpray.dev/mcp (streamable-http, auth none, reachable true, uptime30d 0.8452381)

## Packages

_none_

## Tools (10)

- `phpray_alerts`: Alerts currently firing across every site this token can see, worst overrun first.
- `phpray_compare`: Two time ranges for one site side by side. Use it to check whether a deployment, a plugin update or a configuration change made things better or worse.
- `phpray_components`: Time attributed to each plugin, theme or vendor package on profiled requests. Answers "which plugin is slowing the site down". Empty when function profiling is off.
- `phpray_errors`: Requests that failed on a site: PHP errors and warnings with file and line where PHP raised one, plus 5xx responses that carry no PHP error. Pass an id to phpray_trace to see what one of them did.
- `phpray_overview`: Headline numbers for one site over a time window: requests, errors, p50/p95/p99 latency, database share and N+1 count. Use this before digging into anything else.
- `phpray_sites`: List the PHP sites this token can see, with requests, p95 latency and error rate. Start here: every other tool needs a site_id from this list.
- `phpray_slow_pages`: The slowest URLs on a site, with request counts and p95, from the request timeseries. Answers "which page is slow".
- `phpray_slow_queries`: SQL fingerprints ordered by time spent, with call counts and the caller when known. Literals are already masked. Answers "which query is slow".
- `phpray_trace`: One request in full: wall time split into PHP, database and outbound HTTP, every query, every external call, errors, and the component breakdown when the request was profiled.
- `phpray_traces`: Recent requests for a site. Filter with min_ms and status to find the bad ones, then pass an id to phpray_trace.
