Repository navigation
保存技能时缺省 mcp_oauth 保留原值 - #132
Merged
Merged
Conversation
旧页面和 coreman skills set 整份回传时不带 mcp_oauth,原来按默认值 false 处理, 会把仓库同步打上的 OAuth 标记清掉,员工按普通 MCP 安装、看不到「授权」。 改为缺省保留;明确开启时按当前或已保存的配置检查只能是 http/sse。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
#131 上线后,管理台的实测流程是:技能目录同步 figma → 编辑保存 → 给员工安装。安装完成后,员工的技能列表里没有「授权」按钮。
查下来原因如下:
mcp_oauth = true。skill.update)把它清成了 false。保存用的是发布前加载的旧页面,旧编辑器不知道这个字段,回传时没有带上;SkillIn对缺省值按false处理。coreman skills set也会整份回传,同样不带这个字段,问题一样。改动
SkillIn.mcp_oauth改为bool | None。缺省时保留原值,只有明确传入时才修改。验证
无迁移。
🤖 Generated with Claude Code