github / github/copilot-cli

Built-in research agent tells subagents to call unavailable github/get_me tool

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

还没有人认领这个 Issue。

area:agents area:mcp
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

Describe the bug

The built-in research subagent prompt tells the agent to call github/get_me first, but the GitHub MCP server exposed in the same CLI session does not provide that tool. With reasoning display enabled, the subagent visibly starts by trying to reconcile the mismatch and leaks scratchpad text like:

**Resolving function conflicts** I see that I need to call the GitHub function "get_me" first, according to the subagent instructions. However, it looks like there are only five listed GitHub functions...

This appears to be a packaged agent/tool mismatch: the built-in research-agent instructions reference an older or differently named GitHub MCP tool.

Affected version

1.0.83-3 on Linux x64.

Local evidence

Packaged agent definition:

~/.copilot/pkg/linux-x64/1.0.83-3/definitions/research.agent.yaml

Relevant prompt section:

## Critical: Work Autonomously

You work completely autonomously:
- Call `github/get_me` first to understand the user's org and identity context

The current GitHub MCP server visible to the agent exposes only these tools:

github-mcp-server-get_copilot_space
github-mcp-server-get_file_contents
github-mcp-server-list_copilot_spaces
github-mcp-server-search_code
github-mcp-server-search_users

There is no github/get_me or equivalent identity/profile tool in the available GitHub tool definitions.

Expected behavior

The built-in research-agent prompt should only instruct the subagent to call tools that are actually available in the packaged/default GitHub MCP server, or it should use the current tool namespace/name. If user identity context is unavailable, the prompt should not require a nonexistent first call.

Actual behavior

The research subagent receives an instruction to call github/get_me, cannot find the tool among the available GitHub MCP tools, and starts with visible conflict-resolution reasoning when reasoning display is enabled.

Related issues

Possibly related, but not exact:

  • #4076: built-in research agent MCP/tool configurability
  • #2630: subagent MCP tool availability in custom-agent / prompt contexts
  • #4604: get_me with user-configured GitHub MCP auth/token injection

This issue is specifically about the packaged built-in research.agent.yaml prompt referencing github/get_me when the available built-in GitHub MCP tool list does not include it.

贡献指南

打开贡献指南

从这里开始

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

调研方向

检查 ~/.copilot/pkg/linux-x64/1.0.83-3/definitions/research.agent.yaml,并将其中的 github/get_me 指令与列出的 GitHub MCP tools 进行比较。完成标准是:打包后的 research-agent prompt 不再要求使用不可用的 identity tool,或指定一个可用的替代工具;通过启用 reasoning display 运行 research subagent 进行验证。

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

评估

技术栈
github
领域
cli, tooling
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
活跃
描述清晰度
基本清楚
新手友好度
72/100

把新 issue 发到你的邮箱

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