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

オープン
#310 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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分
マージ済み PR(30日)
58

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

speakeasy-api/kit のほかの issue

speakeasy-api/kit の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。