SC

stephencme/create-mcp-ts

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

21 stars 7 forks 품질 49 트렌드 0

TypeScript의 새로운 MCP 서버 만들기, 배터리 포함.

개요

TypeScript의 새로운 MCP 서버 만들기, 배터리 포함. create-mcp-ts require - 개발, 빌드 및 MCP 서버를 설정하는 데 필요한 모든 것을 자동으로 설치합니다. create-mcp-ts는 Cursor, Windsurf 및 Claude Desktop에서 MCP 서버를 자동으로 구성할 수 있습니다. 이 스크립트는 각 클라이언트의 각 MCP 구성 파일에 이미 존재하면 확인합니다. 그렇지 않으면 서버 스크립트(dist/index.js)에 입력을 추가합니다. Cursor, Windsurf 및 Claude Desktop에서 MCP 서버를 설정하는 방법에 대한 자세한 내용은 다음을 참조하십시오. - 커서용 MCP 문서 - 윈드 서핑용 MCP 문서 - Claude Desktop용 MCP 문서 사용자 정의 템플릿을 사용하고 싶다면 npx create-mcp-ts 명령에 템플릿 npm 패키지 이름 또는 파일 경로를 전달하여 수행 할 수 있습니다. MCP 서버를 공유 할 계획이라면 npm에 게시 할 수 있습니다

개요(AI 번역)

TypeScript의 새로운 MCP 서버 만들기, 배터리 포함.

시작하기

create-mcp-ts는 zero build configuration - 개발, 빌드 및 MCP 서버를 설정하는 데 필요한 모든 것을 자동으로 설치합니다.

Cursor, Windsurf, Claude Desktop에서 MCP 서버를 설정

create-mcp-ts는 Cursor, Windsurf, Claude Desktop에서 MCP 서버를 자동으로 구성할 수 있습니다.

이 스크립트는 your-server이 이미 각 클라이언트의 각 MCP 구성 파일에 존재한다. 그렇지 않다면 서버 스크립트(dist/index.js])에 입력을 추가합니다.

Cursor, Windsurf 및 Claude Desktop에서 MCP 서버를 설정하는 방법에 대한 자세한 내용은 다음을 참조하십시오.

  • 커서에 대한 MCP 문서
  • 윈드 서핑을위한 MCP 문서
  • Claude Desktop용 MCP 문서

사용자 정의 템플릿

사용자 정의 템플릿을 사용하려는 경우, 템플릿 npm 패키지 이름 또는 파일 경로를 npx create-mcp-ts 명령으로 전달하여 수행 할 수 있습니다.

MCP 서버 배포

MCP 서버를 공유 할 계획이라면 npm에 게시 할 수 있습니다.

  1. "version"] package.json]에서 "private"]를 false로 설정한다.
  2. 실행 npm install.
  3. 실행 npm run build.
  4. 실행 npm login (필요한 경우).
  5. 실행 npm publish.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

create-mcp-ts

Create a new MCP server in TypeScript, batteries included.

Getting started

npm init mcp-ts your-server
cd your-server
npm run dev

create-mcp-ts requires zero build configuration - it will automatically install everything you need to develop, build, and set up your MCP server.

Set up your MCP server in Cursor, Windsurf, and Claude Desktop

create-mcp-ts can automatically configure your MCP server in Cursor, Windsurf, and Claude Desktop:

npm run setup

This script checks if your-server already exists in each client’s respective MCP configuration file. If not, it adds an entry pointing to the server script (dist/index.js):

{
  "mcpConfig": {
    "your-server": {
      "command": "node",
      "args": ["/path/to/your-server/dist/index.js"]
    }
  }
}

For more details on how to set up MCP servers in Cursor, Windsurf, and Claude Desktop, see:

Custom templates

If you’d like to use a custom template, you can do so by passing the template npm package name or file path to the npx create-mcp-ts command:

npx create-mcp-ts your-server --template=mcp-ts-template-default
npx create-mcp-ts your-server --template=file:/path/to/mcp-ts-template

Publishing your MCP server

If you plan to share your MCP server, you can publish it to npm:

  1. Set "version" in package.json and ensure "private" is set to false.
  2. Run npm install.
  3. Run npm run build.
  4. Run npm login (if needed).
  5. Run npm publish.

Ejecting from mcp-scripts

The mcp-scripts package contains build tools for create-mcp-ts projects - everything you’ll need to develop, build, and set up an MCP server without any additional configuration.

Under the hood mcp-scripts uses tsup and esbuild, lightweight, battle-tested utilities that are well-suited for production-grade TypeScript projects.

If you’d like to eject from mcp-scripts, run the following command:

npm run eject

This will remove the mcp-scripts dependency and replace any related commands from your project’s package.json file.

Troubleshooting your MCP server

Confirm you have Node.js installed

If you experience issues running your MCP server, the first thing to check is that you have Node.js installed globally. You can check this by running:

node --version

If you don’t have Node.js installed, you can install it by following the instructions here.

Usage with Node.js version managers

GitHub에서 전체 README 보기

설치

npx create-mcp-ts your-server --template=mcp-ts-template-default
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →