MCP.so
ログイン

MCP TypeScript SDK

@VishvendraTomar

基本情報

カテゴリ

開発者ツール

ライセンス

MIT license

トランスポート

stdio

作者

VishvendraTomar

MCP TypeScript SDK について

概要はまだありません

MCP TypeScript SDK の設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

MCP TypeScript SDK のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP TypeScript SDK?

The MCP TypeScript SDK is a library that implements the full Model Context Protocol (MCP) specification, enabling developers to build MCP clients and servers in TypeScript. It exposes data and functionality to LLM applications through resources, tools, and prompts, using standard transports like stdio and SSE.

How to use MCP TypeScript SDK?

Install via npm install @modelcontextprotocol/sdk. Create an McpServer instance, add resources, tools, or prompts, then connect it to a transport (e.g., StdioServerTransport). For clients, use the Client class with a StdioClientTransport. Examples and the MCP Inspector help with testing and debugging.

Key features of MCP TypeScript SDK

  • Full implementation of the MCP specification in TypeScript
  • Build MCP servers with resources, tools, and prompts
  • Build MCP clients that connect to any MCP server
  • Supports stdio and HTTP with SSE transports
  • High-level McpServer and low-level Server APIs
  • Includes a client library with typed method calls

Use cases of MCP TypeScript SDK

  • Expose a database schema and run SQL queries through MCP tools
  • Create an echo server demonstrating resources, tools, and prompts
  • Build a remote MCP server accessible over HTTP with SSE
  • Develop an LLM‑friendly API wrapper for weather or other external services
  • Test server behavior with the MCP Inspector before deployment

よくある質問

1

What is the Model Context Protocol (MCP)?

MCP is a standardized protocol for applications to provide context to LLMs, separating context provision from LLM interaction. Servers expose resources (data), tools (actions), and prompts (templates) in a secure way.

2

How do I install the SDK?

Run `npm install @modelcontextprotocol/sdk` in your Node.js project. No additional runtime dependencies are required, though some examples use `zod` for parameter validation and `express` for HTTP transport.

3

What transports are supported?

The SDK supports two built‑in transports: `StdioServerTransport` (for command‑line tools) and `SSEServerTransport` (for remote servers over HTTP with Server‑Sent Events).

4

Can I build MCP clients with this SDK?

Yes. The SDK provides a high‑level `Client` class that connects to any MCP server via `StdioClientTransport`, supporting operations like listing prompts, reading resources, and calling tools.

5

Where can I find more documentation and examples?

Official documentation is at [modelcontextprotocol.io](https://modelcontextprotocol.io), the specification at [spec.modelcontextprotocol.io](https://spec.modelcontextprotocol.io), and example servers at [github.com/modelcontextprotocol/servers](https://github.com/modelcontextprotocol/servers).

コメント

「開発者ツール」の他のコンテンツ