mcp typescript sdk
-
TypeScript로 MCP Server 만들기Language/React 2025. 3. 9. 12:44
프로젝트 설정프로젝트 생성$ mkdir mcp-typescript-250309$ cd mcp-typescript-250309$ mkdir src$ cd src 라이브러리 설지$ npm install express @modelcontextprotocol/sdk zod$ npm install -D typescript ts-node$ npm install --save-dev @types/express 소스코드server.tsimport { McpServer, ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";import { z } from "zod";import express from "express";import { SSEServerTran..