feat(providers): add mcp category for provider profiles

未关闭 适合新手
#2,546 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
90/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
冷清
技术栈
rust
领域
backend

调研方向

从 crates/openshell-providers/src/profiles.rs 中第 825 行附近的类别 enum 开始。检查现有的有效类别和不支持类别错误,然后添加请求的 MCP 类别。当 MCP 提供商配置文件类别能够在不改变 schema 或行为的情况下被接受时,即表示完成。

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

描述

state:triage-needed

Problem Statement

Provider profiles use a category field to classify services. Current valid values: inference, source_control, agent, other, data, messaging, knowledge. There is no mcp category for MCP tool server profiles.

As MCP tool servers become a common integration pattern for agents, MCP-specific profiles need a dedicated category so developers can filter and discover them via openshell provider list-profiles.

Proposed Design

Add mcp to the valid category values in crates/openshell-providers/src/profiles.rs.

This is a one-line addition to the category enum. No schema changes, no behavioral changes.

Agent Investigation

  • Category enum parsed in crates/openshell-providers/src/profiles.rs:825 — unknown categories produce "unsupported provider profile category" error
  • McpOptionsProfile struct exists but isn't used in any built-in profile YAML
  • MCP L7 protocol (L7Protocol::Mcp) already recognized by the supervisor relay

Checklist

  • Searched for existing issues — no issue tracks adding an mcp category
  • Minimal scope — one enum value addition
主要语言
Rust
星标
8.7k
派生
1.3k
平均合并
2 天 7 小时
30 天内合并 PR
243

贡献指南

打开贡献指南

从这里开始

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

NVIDIA/OpenShell 的其他 Issue

查看 NVIDIA/OpenShell 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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