Parfournir.
Skills/tonxxd/Modelcontextprotocol Sdk

Modelcontextprotocol Sdk

Model Context Protocol implementation for TypeScript

v1.24.3-mcp-use.4View Source ↗
MITmcp-server
Install
npm
npx @mcp-use/modelcontextprotocol-sdk
SKILL.md

MCP TypeScript SDK

> [!IMPORTANT] This is the main branch which contains v2 of the SDK (currently in development, pre-alpha).
>
> We anticipate a stable v2 release in Q1 2026. Until then, v1.x remains the recommended version for production use. v1.x will continue to receive bug fixes and security updates for at least 6 months after v2 ships to give people time to upgrade.
>
> For v1 documentation, see the V1 API docs. For v2 API docs, see /v2/.

!NPM Version !NPM Version !MIT licensed

<details>
<summary>Table of Contents</summary>

  • Overview
  • Packages
  • Installation
  • Quick Start (runnable examples)
  • Documentation
  • Contributing
  • License
  • </details>

    Overview

    The Model Context Protocol (MCP) allows applications to provide context for LLMs in a standardized way, separating the concerns of providing context from the actual LLM interaction.

    This repository contains the TypeScript SDK implementation of the MCP specification. It runs on Node.js, Bun, and Deno, and ships:

  • MCP server libraries (tools/resources/prompts, Streamable HTTP, stdio, auth helpers)
  • MCP client libraries (transports, high-level helpers, OAuth helpers)
  • Optional middleware packages for specific runtimes/frameworks (Express, Hono, Node.js HTTP)
  • Runnable examples (under examples/)
  • Packages

    This monorepo publishes split packages:

  • @modelcontextprotocol/server: build MCP servers
  • @modelcontextprotocol/client: build MCP clients
  • Both packages have a required peer dependency on zod for schema validation. The SDK uses Zod v4.

    Middleware packages (optional)

    The SDK also publishes small "middleware" packages under packages/middleware/ that help you wire MCP into a specific runtime or web framework.

    They are intentionally thin adapters: they should not introduce new MCP functionality or business logic. See packages/middleware/README.md for details.

  • @modelcontextprotocol/node: Node.js Streamable HTTP transport wrapper for IncomingMessage / ServerResponse
  • @modelcontextprotocol/express: Express helpers (app defaults + Host header validation)
  • @modelcontextprotocol/hono: Hono helpers (app defaults + JSON body parsing hook + Host header validation)
  • Installation

    Server

    ```bash
    npm install @modelcontextprotocol/server zod

    or


    bun add @modelcontextprotocol/server z

    ... [truncated — view full README on GitHub]

    Details

    Typemcp-server
    Sourcenpm
    LicenseMIT
    Versionv1.24.3-mcp-use.4

    Use this skill

    Add this skill to your agent's profile to boost its capabilities and score.

    Add to My Agent