Token导航 LogoToken导航TokenDH.com
Copilot Acp MCP Issue logo
开发工具stdio官方级别未说明来源级核验

Copilot Acp MCP Issue

MCP Server

tsx

GitHub Copilot CLI在作为ACP代理时,无法加载通过ACP newSession请求传递的MCP服务器,导致无法使用这些服务器提供的工具。

工具数

0

提示词数

0

GitHub Stars

1

资源数

0
GitHub Copilot开发工具JavaScriptClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

cedricvidal

提供方

cedricvidal

最后核验

2026/5/17 20:20

运行时

Node.js

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

npx tsx client.ts --mcp-config=mcp-config.json --prompt="What time is it?" copilot --acp

详细介绍

Copilot ACP MCP Server Loading Issue

This is a standalone reproduction of an issue where MCP servers passed via the ACP newSession request are not being loaded by copilot --acp.

Issue Summary

When using copilot --acp as an ACP agent, MCP servers specified in the newSession request's mcpServers field are not loaded. The agent does not have access to tools provided by these MCP servers.

Expected Behavior

When an ACP client sends a newSession request with MCP servers configured:

{
  "cwd": "/path/to/project",
  "mcpServers": [
    {
      "name": "time",
      "command": "uvx",
      "args": ["mcp-server-time"],
      "env": []
    }
  ]
}

The agent should:

  1. Start the specified MCP servers
  2. Make their tools available for the session
  3. Be able to use tools like get_current_time from the mcp-server-time server

Actual Behavior

The MCP servers are not loaded. When asked "What time is it?", Copilot does not use the MCP time server's tools.

Reproduction Steps

Prerequisites

  1. Install GitHub Copilot CLI:
   brew install copilot-cli
  1. Install uv (for running MCP servers):
   curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Install dependencies:
   npm install

Run the reproduction

# Run with MCP config - should use time server but doesn't
npm run test-mcp

Or manually:

npx tsx client.ts --mcp-config=mcp-config.json --prompt="What time is it?" copilot --acp

What you'll see

The client will:

  1. Load the MCP config with the time server
  2. Start copilot --acp
  3. Send a newSession request with the MCP servers
  4. Ask "What time is it?"

Expected: Copilot uses the get_current_time tool from mcp-server-time Actual: Copilot responds without using the MCP time server

Files

  • client.ts - ACP client that connects to copilot --acp and passes MCP servers
  • mcp-config.json - MCP server configuration (compatible with Claude Desktop format)

MCP Config Format

The mcp-config.json uses the same format as Claude Desktop:

{
  "mcpServers": {
    "time": {
      "command": "uvx",
      "args": ["mcp-server-time"]
    }
  }
}

ACP Protocol Reference

Per the ACP specification, the newSession request includes:

interface NewSessionRequest {
  cwd?: string;
  mcpServers?: McpServer[];
  // ...
}

interface McpServer {
  name: string;
  command: string;
  args?: string[];
  env?: EnvVariable[];
}

Environment

  • macOS
  • copilot-cli version: (run copilot --version)
  • @agentclientprotocol/sdk: 0.13.1

Related

目录标签

目录标签

GitHub Copilot开发工具JavaScriptClaudeGitHubCopilot本地部署MCP服务器ACP协议

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

session

运行时(runtime,运行环境)

Node.js

来源包(packageName,安装包名)

tsx

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiosession部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP