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

Open
#310 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Rust
Stars
45
Forks
7
Avg merge
5h 35m
Merged PRs (30d)
58

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from speakeasy-api/kit

All issues in speakeasy-api/kit

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.