feat: model-accessible diagnostics search for skill and MCP loading issues
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
- Domain
- developer-experience, tooling
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_pluginsdiagnostics (SkillSkipped,SkillsLocationInvalid,McpDisabled,McpServerSkipped,InvalidExtensionsField), skipped plugin MCP servers (unsupported transport, invalidcwd, 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from speakeasy-api/kit
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
speakeasy-api/kit#277 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 55/100
speakeasy-api/kit#172 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 52/100
speakeasy-api/kit#168 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 52/100
speakeasy-api/kit#164 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 72/100
speakeasy-api/kit#163 ·
Maintainers usually reply within 1 day
All issues in speakeasy-api/kit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
speakeasy-api/speakeasy#2159 ·
Maintainers usually reply within 1 day
-
documentation target:powerpoint
Difficulty 1/5 Under an hour Newbie friendliness 76/100
tomast1337/PdfLapas#602 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day