microsoft/copilot-sdk-samples/mcp-builder
Claude Code and agent skill by microsoft/copilot-sdk-samples
- vendor
Checking that the SKILL.md file is still in the repository.
Build MCP (Model Context Protocol) clients to connect AI agents with external tools and data sources. Use when building integrations with MCP servers.
Install
npx vskill@latest install microsoft/copilot-sdk-samples/mcp-builderSKILL.md
The same SKILL.md was published earlier as microsoft/copilot-sdk-samples/mcp-builder.
MCP Builder Skill
Build MCP (Model Context Protocol) clients that connect AI agents with external tools and data sources.
When to Use This Skill
Use this skill when:
- Building a client to connect to an MCP server
- Integrating AI agents with external data sources via MCP
- Creating typed wrappers around MCP tool calls
- The user mentions "MCP", "Model Context Protocol", or needs to connect to an MCP endpoint
MCP Protocol Overview
MCP is an open protocol for connecting AI models to external tools and data. Key concepts:
- MCP Server: Exposes tools, resources, and prompts via JSON-RPC over HTTP (streamable) or stdio
- MCP Client: Connects to servers, discovers tools, and executes tool calls
- Tools: Functions the model can invoke (e.g.,
search_docs,fetch_page) - Resources: Data the model can read (e.g.,
docs://azure/overview)
Implementation Pattern
Follow this pattern when building MCP clients:
1. Define the Interface
2. Implement Mock Client First
Always create a mock implementation that works without network calls:
3. Use ConnectorResult Pattern
All methods must return ConnectorResult<T>:
4. Factory Function
Export a factory function:
Example: Microsoft Learn MCP Server
The Microsoft Learn MCP Server (https://learn.microsoft.com/api/mcp) provides:
Tools
microsoft_docs_search- Search Microsoft Learn documentationmicrosoft_docs_fetch- Fetch and convert a page to markdownmicrosoft_code_sample_search- Search code samples
Client Implementation
Testing Requirements
Every MCP client must include:
- Unit tests using Vitest
- Tests for initialization/disposal
- Tests for each tool method
- Tests for error handling (NOT_INITIALIZED, etc.)
File Structure
Acceptance Criteria
A valid MCP client implementation must:
- ✅ Export a factory function
create<Name>Client(config) - ✅ Support both
mockandlivemodes - ✅ Use
ConnectorResult<T>for all async operations - ✅ Have
isInitializedproperty - ✅ Return
NOT_INITIALIZEDerror when called beforeinitialize() - ✅ Include comprehensive unit tests
- ✅ Follow existing connector patterns in the codebase
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 25 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsamples/skill-testing/sdk/skills/mcp-builder/SKILL.md
Popularity
- Repository stars
- 22
- Repository forks
- 7
- 7-day trend score
- 16
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/copilot-sdk-samples/mcp-builder)