Skip to content

ancplua/qyl

v1.0.0

Investigate traces, logs, metrics and sessions from an authorized qyl collector.

qyl

qyl is observability built for AI agents. This plugin connects Claude, ChatGPT or Codex to the hosted qyl MCP server at https://mcp.qyl.at/mcp, a semantic gateway to the telemetry your services send to a qyl Collector: traces, logs, metrics, sessions and CI runs.

Instead of reading raw log dumps, the model asks compact questions. Which sessions are failing? What happened inside this trace? Which log records belong to it? How did this metric move over the last hour? qyl returns the Collector's actual answers, including empty results and errors from the Collector. qyl measures and correlates; the agent reasons and acts.

It is meant for developers and operators whose services already send OpenTelemetry data to qyl and who want an agent to investigate failures, latency and MCP tool behavior from that recorded data.

What it needs

  • An account that may read a qyl Collector project with recorded telemetry. Sign-in uses OAuth through qyl's Auth0 tenant. The read tools require the qyl:read scope; creating and updating annotations and saved queries and setting failure status also requires qyl:write, and deleting annotations and saved queries qyl:delete. The server decides which Collector project an account can use; tool arguments never select another project.
  • Nothing else: the plugin runs no local code and contains no API keys or other credentials.

What it sends and receives

The plugin declares one remote MCP server. When a tool is used, your client sends an MCP request with the tool name and its arguments (for example a trace ID, service name or time window) and your OAuth access token to https://mcp.qyl.at/mcp. The server reads the matching records from your Collector project and returns them to your client. When you ask for a note or a saved query, the server stores its text, target or filter in your Collector project, where you can change or delete it again. When you record a failure's status or assignee, the server stores it on that failure in your Collector project, where you can change it again. The server's own records of incoming tool calls keep only the tool name, timing, status and error type, not arguments or conversation text.

In clients and deployments that support MCP Events, you can explicitly subscribe to notifications about new trace errors, optionally for one service. Signed notifications go to the callback address your client registers. The subscription record holds your account and client identifiers, the filter, that callback address and signing keys until the subscription expires or is removed. It holds no OAuth tokens and no copied telemetry.

Tools

Most tools only read data and are annotated as read-only. Six tools change something, and only objects you create in qyl: notes, saved queries and the recorded status of a failure. They are annotated as not read-only, and the ones that replace or remove an existing object as destructive. Your client decides when to ask for confirmation.

ToolUse it to
triageStart an open-ended investigation: new or worsening failures, regressions, releases and silent services, ranked.
list_failures, get_failure_context, update_failure_statusGroup recurring errors by fingerprint, read one failure's path with its logs and comparison, and record its status or assignee.
compare_groups, compare_traces, verify_fixCompare two populations or two executions, and measure whether a fix held.
aggregate_telemetry, discover_attributesCount, error rates and duration percentiles by any attribute; the keys and values that are recorded.
list_releases, get_service_map, check_telemetry_health, get_mcp_stats, get_agent_runReleases and their impact, service dependencies, telemetry coverage, MCP tool health, one agent run step by step.
list_sessions, list_tracesFind active, failing or slow work.
get_traceInspect one trace's spans: all of them, the error path, or the critical path, 100 per page.
search_logsFind error logs, including the logs that belong to one trace.
list_metrics, get_metric_series, query_metricDiscover metric instruments and their attribute streams, then compare a metric over time or across groups.
ci_logRead CI runs that follow qyl's CI telemetry convention, failed phases first.
display_traces, display_mcp_dashboardOpen the Trace Explorer or the MCP Dashboard.
fetch_telemetryUsed only by the Trace Explorer to refresh or filter its view; hidden from the model.
create_annotation, update_annotationLeave a note of at most 2000 characters on a trace, span or session, or correct it. get_trace and list_sessions show the notes.
create_saved_query, update_saved_querySave a named filter for traces, logs or metrics, or change it.
list_saved_queries, run_saved_queryFind a saved query and run it against the current telemetry.
deleteDelete one note or saved query. It cannot delete telemetry.

The bundled skill skills/qyl-investigate/SKILL.md describes the investigation workflow these tools are designed for.

Example prompts

  • "Which of my recent traces failed, and what do their error logs say?"
  • "List my five most recent sessions and summarize their status."
  • "Which metric instruments are recorded in my qyl project?"
  • "Open the Trace Explorer for my recent traces."

Limits and troubleshooting

  • qyl cannot delete or change telemetry, deploy or roll back services, or search the public web. Its write tools change only the notes, saved queries and failure status in your project.
  • An empty result means nothing matching was recorded in your project. It does not show that a system is healthy.
  • Most tools take limits and filters; every input description states its default. get_trace returns up to 100 spans per page and continues with next_cursor; display_traces shows a trace as a waterfall, and search_logs narrows logs by trace, service, severity or text.
  • If sign-in fails or requests are rejected, reconnect qyl in your client and sign in with an account that has the qyl:read scope. A write that is refused for a missing qyl:write or qyl:delete scope asks your client to sign in again with that scope.
  • If a tool reports that no Collector project is assigned to your account, ask the qyl operator for project access.
  • The Trace Explorer and MCP Dashboard appear only in clients that display MCP Apps; other clients receive the text summary and structured result.
  • The MCP Dashboard includes only MCP calls whose spans carry mcp.method.name and reached your Collector project.

Documentation and source

Source, server documentation and the tool contract live in the repository at https://github.com/ANcpLua/qyl.mcp. The product site is https://qyl.at/.