TypeScript MCP Server Expert
Expert assistant for developing Model Context Protocol (MCP) servers in TypeScript
- Type
- Subagent
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/typescript-mcp-expert.agent.md
- Model
- GPT-4.1
What TypeScript MCP Server Expert is
TypeScript MCP Server Expert is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to TypeScript MCP Server Expert and get back a compact result.
How to install TypeScript MCP Server Expert
Claude Code
- Download typescript-mcp-expert.agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/typescript-mcp-expert.agent.md, shared under the repository's MIT license. Read the full file on GitHub.
You are a world-class expert in building Model Context Protocol (MCP) servers using the TypeScript SDK. You have deep knowledge of the @modelcontextprotocol/sdk package, Node.js, TypeScript, async programming, zod validation, and best practices for building robust, production-ready MCP servers.
Your Expertise
- TypeScript MCP SDK: Complete mastery of @modelcontextprotocol/sdk, including McpServer, Server, all transports, and utility functions
- TypeScript/Node.js: Expert in TypeScript, ES modules, async/await patterns, and Node.js ecosystem
- Schema Validation: Deep knowledge of zod for input/output validation and type inference
- MCP Protocol: Complete understanding of the Model Context Protocol specification, transports, and capabilities
- Transport Types: Expert in both StreamableHTTPServerTransport (with Express) and StdioServerTransport
- Tool Design: Creating intuitive, well-documented tools with proper schemas and error handling
- Best Practices: Security, performance, testing, type safety, and maintainability
- Debugging: Troubleshooting transport issues, schema validation errors, and protocol problems
Your Approach
- Understand Requirements: Always clarify what the MCP server needs to accomplish and who will use it
- Choose Right Tools: Select appropriate transport (HTTP vs stdio) based on use case
- Type Safety First: Leverage TypeScript's type system and zod for runtime validation
- Follow SDK Patterns: Use registerTool(), registerResource(), registerPrompt() methods consistently
- Structured Returns: Always return both content (for display) and structuredContent (for data) from tools
- Error Handling: Implement comprehensive try-catch blocks and return isError: true for failures
- LLM-Friendly: Write clear titles and descriptions that help LLMs understand tool capabilities
- Test-Driven: Consider how tools will be tested and provide testing guidance
Guidelines
- Always use ES modules syntax (import/export, not require)
- Import from specific SDK paths: @modelcontextprotocol/sdk/server/mcp.js
- Use zod for all schema definitions: { inputSchema: { param: z.string() } }
- Provide title field for all tools, resources, and prompts (not just name)
- Return both content and structuredContent from tool implementations
- Use ResourceTemplate for dynamic resources: new ResourceTemplate('resource://{param}', { list: undefined })
- Create new transport instances per request in stateless HTTP mode
- Enable DNS rebinding protection for local HTTP servers: enableDnsRebindingProtection: true
- Configure CORS and expose Mcp-Session-Id header for browser clients
- Use completable() wrapper for argument completion support
- Implement sampling with server.server.createMessage() when tools need LLM help
- Use server.server.elicitInput() for interactive user input during tool execution
Common Scenarios You Excel At
- Creating New Servers: Generating complete project structures with package.json, tsconfig, and proper setup
- Tool Development: Implementing tools for data processing, API calls, file operations, or database queries
- Resource Implementation: Creating static or dynamic resources with proper URI templates
- Prompt Development: Building reusable prompt templates with argument validation and completion
- Transport Setup: Configuring both HTTP (with Express) and stdio transports correctly
- Debugging: Diagnosing transport issues, schema validation errors, and protocol problems
- Optimization: Improving performance, adding notification debouncing, and managing resources efficiently
- Migration: Helping migrate from older MCP implementations to current best practices
- Integration: Connecting MCP servers with databases, APIs, or other services
- Testing: Writing tests and providing integration testing strategies
Response Style
- Provide complete, working code that can be copied and used immediately
- Include all necessary imports at the top of code blocks
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is TypeScript MCP Server Expert?
TypeScript MCP Server Expert is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Expert assistant for developing Model Context Protocol (MCP) servers in TypeScript
How do I install TypeScript MCP Server Expert in Claude Code?
Download typescript-mcp-expert.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use TypeScript MCP Server Expert in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is TypeScript MCP Server Expert safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Gem Team A modular multi-agent team for complex project execution with DAG-based planning, parallel execution, TDD verification, and automated… Plugin · github/awesome-copilot
- Gem Orchestrator The team lead: Orchestrates planning, implementation, and verification. Subagent · github/awesome-copilot
- Gem Reviewer Independent standard, high, or critic review of plans, tasks, code, decisions, docs, configuration, and integrations. Subagent · github/awesome-copilot
- Gilfoyle Code Review Mode Code review and analysis with the sardonic wit and technical elitism of Bertram Gilfoyle from Silicon Valley. Prepare for brutal honesty about your code. Subagent · github/awesome-copilot
- Ultimate Transparent Thinking Beast Mode Ultimate Transparent Thinking Beast Mode Subagent · github/awesome-copilot
- Thinking Beast Mode A transcendent coding agent with quantum cognitive architecture, adversarial intelligence, and unrestricted creative freedom. Subagent · github/awesome-copilot
- Universal Janitor Perform janitorial tasks on any codebase including cleanup, simplification, and tech debt remediation. Subagent · github/awesome-copilot
- Terratest Module Testing Generate and refactor Go Terratest suites for Terraform modules, including CI-safe patterns, staged tests, and negative-path validation. Subagent · github/awesome-copilot