CLI: OAuth mcp-remote fallback via \ px -y\ has no integrity pin (supply-chain risk)

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

维护者通常 8 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃

调研方向

Start from the place in the @continuedev/cli package that spawns npx -y mcp-remote on the OAuth fallback path; the payload does not name the file. Read #13429 first so you don't overlap with its version-selection work. Done means maintainers have picked one of the three options and the invocation is either pinned to a version or documented with a fail-closed warning in interactive mode.

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

描述

Related

Adjacent to #13429 (no version pin on npx -y mcp-remote after a 401). That issue focuses on reproducible version selection. This one is the supply-chain side of the same code path.

Problem

@continuedev/cli recovers interactive OAuth by spawning roughly:

npx -y mcp-remote <server-url>

-y installs without prompting. Without a version and without an integrity/resolved artifact (npm package dependency, pinned tarball, or npx [email protected] with a lock-known version), a registry compromise or unexpected latest publish is executed with the user's credentials flow. This bridge is the CLI's OAuth path for MCP when static Bearer headers are not enough (#8143).

Expected

Prefer one of:

  1. depend on a fixed mcp-remote version inside the CLI package and invoke the local bin, or
  2. invoke npx mcp-remote@<pinned> where <pinned> is reviewed in releases, or
  3. if npx -y must stay, document the trust boundary clearly and fail closed in CI/headless (already skipped) while warning in interactive mode
Non-goal

Changing when the 401 fallback triggers — that stays with #13429.

Happy to open a small PR once maintainers pick an option.

主要语言
TypeScript
星标
36.5k
派生
5.6k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

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

continuedev/continue 的其他 Issue

查看 continuedev/continue 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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