Skip to content

[Feature] 支持扫描 pi (~/.pi/agent/mcp.json) 作为本地 MCP 源 #653

Description

@galact-byte

问题 / 背景

codeg 的"筛选本地 MCP"列表能自动扫到 Claude Code、Cursor、Codex、
Cline 等工具配置里的 MCP server,但扫不到 pi 的 MCP。
我在 pi 里配置了 6 个 MCP(ida、blender、playwright 等),
在 codeg 里一个都不显示。

Image

现状

codeg 目前只从这些固定来源读取 MCP:

  • Claude Code: ~/.claude.json (mcpServers)
  • Cursor / Codex / OpenCode / Cline / Grok / Hermes ...

pi 的 MCP 配置存在 ~/.pi/agent/mcp.json(pi 的 MCP 适配插件使用),
这个路径不在 codeg 的扫描名单里,所以 pi 的 server 无法被发现。

期望

希望 codeg 增加对 pi 的 MCP 源支持:
扫描 ~/.pi/agent/mcp.json 的 mcpServers 字段,
像其它工具一样把 pi 配置的 MCP server 列进"本地 MCP"。

补充信息

  • OS: Windows 11
  • codeg 版本: 0.30.2
  • pi MCP 配置文件示例路径: C:\Users<用户名>.pi\agent\mcp.json
  • 该文件格式与 Claude Code 的 mcpServers 基本一致(command/args/url/env)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions