feat: model-accessible diagnostics search for skill and MCP loading issues

Aperta
#310 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start by reading the diagnostics in agentkit_plugins, the plugin loading and hot-reload paths, and MCP connection and initialization handling. Then trace how built-in tools are registered and how telemetry::init and exported_targets() handle events. Done means targeted searches return bounded, secret-free diagnostics that let the agent explain skipped components and duplicate MCP server ownership.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Goal

When a user asks "why aren't you activating skill X?" or "why aren't you using MCP server Y?", the agent can run a targeted search over startup and loading diagnostics and explain the cause.

Context

#309 makes invalid plugin components non-fatal: skipped skills, skills directories, mcp.json files, and MCP server entries, plus duplicate plugin MCP server names, are logged with tracing::warn! and the rest of the plugin still loads. In the shipped CLI no subscriber delivers these events (telemetry::init installs none by default, and exported_targets() only covers agentkit_loop and agentkit_mcp). The reason a component is missing is therefore invisible to both the user and the agent.

Proposal

A built-in tool the model can call to query diagnostics recorded during plugin, skill, and MCP loading and hot-reload.

  • Record diagnostics per runtime generation: component kind (skill, MCP server, plugin), plugin alias, component name, path, reason, and whether the component was skipped or the generation was rejected.
  • Support targeted queries by component name, plugin alias, or kind, so the agent fetches only the entries relevant to the question.
  • Cover at least: agentkit_plugins diagnostics (SkillSkipped, SkillsLocationInvalid, McpDisabled, McpServerSkipped, InvalidExtensionsField), skipped plugin MCP servers (unsupported transport, invalid cwd, escaping command path, invalid header), duplicate-name precedence, and MCP server connection or initialization failures.
  • Keep output bounded and free of secrets (no header values, tokens, or env values).

Acceptance

  • Given a plugin skill with invalid frontmatter, asking the agent why the skill is unavailable leads it to call the tool and report the plugin, the file path, and the spec violation.
  • Given two plugins that declare the same MCP server, the agent can say which plugin owns the server and which declaration was skipped.
Lingua principale
Rust
Stelle
45
Fork
7
Merge medio
5h 35m
PR unite (30g)
58

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di speakeasy-api/kit

Tutte le issue di speakeasy-api/kit

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.