Build MCP servers and tools with Node/TypeScript using current SDK patterns.
The material indicates this is essentially prompt/documentation content about building MCP servers, with no declared secrets, remote endpoints, or local execution behavior by itself. Given the open-source source and very strong community adoption, overall risk is low, though actual implementations built from it may later introduce permissions, network, or dependency exposure.
The material explicitly states that no keys or environment variables are required; the README also does not ask for login, API tokens, or credential injection. For this skill itself, there is no visible sign of credential collection, storage, or misuse.
Both the system checks and the material show no predefined remote endpoints. The content only discusses patterns such as stdio and Streamable HTTP as documentation, with no evidence that the skill itself sends user data outward.
This object is classified as prompt-only; the provided content is pattern guidance and example snippets rather than an executable tool. While the examples mention that MCP tools may run commands, that is a general concept and does not mean this skill itself has execution privileges.
There is no declared ability to read or write local files, system resources, or external data sources. The README's discussion of resources remains conceptual, and this skill itself does not appear to request excessive data access.
The source is an open-source GitHub repository with extremely high community stars, which materially lowers risk and improves auditability. However, the license is unspecified, maintenance status is unknown, and the material references npm dependencies such as `@modelcontextprotocol/sdk` and `zod`, so basic supply-chain review is still warranted for any concrete code and dependency versions used later.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "mcp-server-patterns" skill from askskill: 1. Download https://raw.githubusercontent.com/affaan-m/ECC/main/skills/mcp-server-patterns/SKILL.md 2. Save it as ~/.claude/skills/mcp-server-patterns/SKILL.md 3. Reload skills and tell me it's ready
Using the Node.js and TypeScript SDK, create a minimal runnable MCP server example with one tool, one resource, and one prompt, using Zod for parameter validation. Include the project structure, key code, and startup commands.
A runnable MCP server starter example with folder structure, TypeScript code, and run instructions.
I want to add two tools to an MCP server: web page summarization and keyword extraction. Using the TypeScript SDK, design the input and output schemas, validate parameters with Zod, and explain best practices for error handling and response formats.
Schema and implementation guidance for both tools, including Zod validation, error handling, and standardized response structures.
Compare stdio and Streamable HTTP transport options for an MCP server. Explain use cases, deployment approaches, pros and cons, and provide configuration examples with the Node/TypeScript SDK.
A clear transport comparison with configuration examples to help choose the right MCP server integration approach.
The Model Context Protocol (MCP) lets AI assistants call tools, read resources, and use prompts from your server. Use this skill when building or maintaining MCP servers. The SDK API evolves; check Context7 (query-docs for "MCP") or the official MCP documentation for current method names and signatures.
For the broader routing decision of when a capability should be a rule, a skill, MCP, or a plain CLI/API workflow, see docs/capability-surface-selection.md.
Use when: implementing a new MCP server, adding tools or resources, choosing stdio vs HTTP, upgrading the SDK, or debugging MCP registration and transport issues.
registerTool() or tool() depending on SDK version.registerResource() or resource(). Handlers typically receive a uri argument.registerPrompt() or equivalent.The Node/TypeScript SDK may expose tool() / resource() or registerTool() / registerResource(); the official SDK has changed over time. Always verify against the current MCP docs or Context7.
For local clients, create a stdio transport and pass it to your server’s connect method. The exact API varies by SDK version (e.g. constructor vs factory). See the official MCP documentation or query Context7 for "MCP stdio server" for the current pattern.
Keep server logic (tools + resources) independent of transport so you can plug in stdio or HTTP in the entrypoint.
For Cursor, cloud, or other remote clients, use Streamable HTTP (single MCP HTTP endpoint per current spec). Support legacy HTTP/SSE only when backward compatibility is required.
npm install @modelcontextprotocol/sdk zod
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
const server = new McpServer({ name: "my-server", version: "1.0.0" });
Register tools and resources using the API your SDK version provides: some versions use server.tool(name, description, schema, handler) (positional args), others use server.tool({ name, description, inputSchema }, handler) or registerTool(). Same for resources — include a uri in the handler when the API provides it. Check the official MCP docs or Context7 for the current @modelcontextprotocol/sdk signatures to avoid copy-paste errors.
Use Zod (or the SDK’s preferred schema format) for input validation.
@modelcontextprotocol/sdk (npm). Use Context7 with library name "MCP" for current registration and transport patterns.modelcontextprotocol/go-sdk).Audit Claude skills and commands with quick scans or full stocktakes.
Create iOS liquid glass interfaces with dynamic visuals and interactive morphing.
Record polished web app UI demo videos for walkthroughs, tutorials, and showcases.
Plan demand forecasts, safety stock, and replenishment for multi-location retail inventory.
Unify multi-channel notifications for routing, deduplication, escalation, and inbox consolidation.
Audit, plan, and implement SEO improvements for better search visibility.
Build TypeScript MCP servers quickly with starter tools and resource examples.
Build type-safe MCP servers quickly with a TypeScript starter template.
Build high-quality MCP servers that connect LLMs with external APIs safely.
Build TypeScript MCP servers faster with a production-ready starter architecture.
Build extensible MCP servers quickly with auth, dual transport, and dynamic tools.
Learn and test MCP tools, resources, and prompts in one sample server.