mcp-server-patterns

Develop MCP servers for VS Code extensions using stdio, SSE, and HTTP transports.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/fabioc-aloha/Extensions --skill mcp-server-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-server-patterns
Source: https://github.com/fabioc-aloha/Extensions/tree/main/.github/skills/mcp-server-patterns
Command: npx skills add https://github.com/fabioc-aloha/Extensions --skill mcp-server-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the development and integration of AI tools with language models by providing clear patterns and examples for using the Model Context Protocol (MCP).

Core Features & Use Cases

  • MCP Server Scaffolding: Understand the structure and configuration of MCP servers generated by the MCP App Starter.
  • Transport Mechanisms: Learn about stdio, sse, and http transports for server communication.
  • mcp.json Configuration: Master the workspace-level configuration for launching MCP servers.
  • Tool Schema Design: Implement robust tool definitions with Zod for input validation and clear descriptions.
  • Use Case: Develop a new VS Code extension that exposes a custom AI tool (e.g., code refactoring, documentation generation) to Copilot by following these MCP patterns.

Quick Start

Use the mcp-server-patterns skill to generate a basic TypeScript MCP server scaffold.

Frequently Asked Questions about mcp-server-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an MCP server for a VS Code extension?

To build an MCP server for a VS Code extension, you scaffold a TypeScript or Python project, configure workspace launching via mcp.json, and define tools with Zod schema validation to integrate with language models like Copilot.

What is the difference between stdio, SSE, and HTTP transports in Model Context Protocol servers?

Model Context Protocol servers use stdio for local standard input-output communication, while SSE and HTTP transports facilitate remote server communication, allowing flexible integration patterns for AI tools depending on your network requirements.

How do I configure mcp.json to launch an MCP server?

You configure mcp.json at the workspace level to define how your MCP server launches, specifying the server command, arguments, and transport mechanism to properly expose your custom AI tools to Copilot.

Can I use Python to develop an MCP server, or do I need TypeScript?

You can develop an MCP server using either Python or TypeScript, as both provide scaffolding patterns that implement tool schema design with Zod validation for robust input handling and clear descriptions.

What is the best way to define tool schemas for AI tools using Model Context Protocol?

The best way to define tool schemas for Model Context Protocol is using Zod for input validation, ensuring your AI tools have robust definitions and clear descriptions that language models can reliably parse and execute.

Does Model Context Protocol work with GitHub Copilot in VS Code?

Yes, Model Context Protocol works with GitHub Copilot in VS Code by exposing custom AI tools through configured server transports, facilitating direct integration between your extension's capabilities and the language model.