MCPSERV.CLUB
rusiaaman

WCGW MCP Server

MCP Server

Share VS Code snippets with Claude, enriched by context and screen session

Active(74)
0stars
1views
Updated 18 days ago

About

WCGW is a macOS‑only VS Code extension that sends editor or terminal selections to Claude with rich context, including repository structure and relevant files. It automatically detects matching screen sessions and offers convenient keybindings for streamlined collaboration.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Overview

The WCGW MCP server is a macOS‑only VS Code extension that bridges the gap between local development environments and Claude’s conversational AI. It solves a common pain point: developers often need to share code or terminal output with an assistant while preserving the surrounding context, such as repository layout and relevant configuration files. By automating this workflow, WCGW lets you focus on writing code rather than manually copying and pasting snippets or recreating the environment inside Claude.

When a user selects code in the editor or terminal, WCGW captures that selection and enriches it with contextual metadata. It then switches focus to Claude, types a brief instruction (or the user‑supplied text), and pastes the selection along with details about the workspace path, file location, and a curated list of frequently relevant files (e.g., , , ). This additional context enables Claude to understand the code’s place within the project, improving the relevance and accuracy of its responses. The extension also offers a quick copy shortcut that generates a standalone context block, useful for sharing or debugging outside the AI interface.

A standout feature is the integration with screen sessions. WCGW automatically polls for terminal sessions that follow a specific naming convention () and attaches to those that match the current workspace. This ensures that any terminal output generated within a dedicated screen window is immediately available to Claude with the same contextual richness as editor selections. Custom terminal icons and names make these sessions visually distinct, reducing confusion when juggling multiple windows.

Developers can leverage WCGW in a variety of real‑world scenarios:

  • Code review and refactoring – Quickly ask Claude to analyze a snippet while preserving its file hierarchy.
  • Debugging assistance – Share terminal logs or stack traces with Claude, along with the repository layout, to get targeted suggestions.
  • Learning and onboarding – New team members can paste a small portion of code into Claude and receive explanations that reference the surrounding project files.
  • Automated documentation – Generate comments or README entries by feeding code and context to Claude, saving time on repetitive documentation tasks.

Integration with AI workflows is seamless: the extension’s commands are bound to intuitive keybindings ( for sending, for copying with context) and can be invoked from the command palette. Settings expose the target application name, polling interval, and enable/disable options, allowing teams to tailor the experience to their environment. By encapsulating complex context management into a single click, WCGW empowers developers to harness Claude’s capabilities more effectively without leaving the VS Code ecosystem.