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

未关闭
#310 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
Rust
星标
45
派生
7
平均合并
5 小时 35 分钟
30 天内合并 PR
58

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

speakeasy-api/kit 的其他 Issue

查看 speakeasy-api/kit 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。