Skip to content

[Claude Code] MCP (Model Context Protocol) integration #287660

Closed
microsoft/vscode-copilot-chat
#4349

Description

@TylerLeonhardt

Overview

Integrate Model Context Protocol (MCP) support with the Claude Code integration, enabling Claude Code to use MCP servers for extended capabilities.

Background

The Agent SDK documentation covers MCP integration. VS Code Copilot Chat also has its own MCP integration in src/extension/mcp/.

Current State

  • VS Code has existing MCP infrastructure in src/extension/mcp/
  • Claude Code SDK supports MCP natively
  • Need to bridge these two systems

Tasks

Research

  • Review Claude Code SDK MCP documentation
  • Review existing VS Code MCP integration (src/extension/mcp/)
  • Determine integration approach (shared MCP servers? separate?)

Implementation

  • Configure Claude Code to use MCP servers
  • Share MCP server configuration between VS Code and Claude Code
  • Handle MCP tool discovery and registration
  • Implement MCP resource access
  • Handle MCP prompts integration

Testing

  • Test with standard MCP servers (filesystem, git, etc.)
  • Test with custom MCP servers
  • Verify MCP tools appear correctly in tool confirmation

Questions

  • Should Claude Code use VS Code's MCP servers or maintain separate connections?
  • How to handle MCP server lifecycle when switching between Claude Code and regular Copilot?
  • Should MCP configuration be shared?

Related Files

  • src/extension/mcp/ - VS Code MCP integration
  • src/extension/agents/claude/node/claudeCodeAgent.ts
  • Claude Code SDK Options for MCP configuration

References

Activity

  1. added
    feature-request
    chat-external-agent
    on Jan 14, 2026
  2. added this to the January 2026 milestone on Jan 14, 2026
  3. added
    claude-agent
    on Jan 28, 2026
  4. TylerLeonhardt commented on Feb 6, 2026

    @TylerLeonhardt
    MemberAuthor

    In general, MCP works if you manually configure it. However, we want to hook up VS Code's definitions. Connor Peet (@connor4312) is currently working on this. Once that's in, I can hook that up.

  5. TylerLeonhardt commented on Feb 20, 2026

    @TylerLeonhardt
    MemberAuthor

    I'm going to close this out now... for MCP installation the user can either:

    • install MCP servers via VS Code
    • install them via the claude CLI

    both servers will get picked up at this point.

  6. locked and limited conversation to collaborators on Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

chat-external-agentclaude-agentfeature-requeston-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions