SM

stevenstavrakis/mcp-starter-template

Developer tools

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

47 stars 13 forks 품질 56 트렌드 0MIT

stevenstavrakis/mcp-starter-template는 MCP 서버 후보가 https://github.com/stevenstavrakis/mcp-starter-template.에서 수입되었습니다

개요

stevenstavrakis/mcp-starter-template는 MCP 서버 후보가 https://github.com/stevenstavrakis/mcp-starter-template.에서 수입되었습니다

개요(AI 번역)

TypeScript를 가진 Model Context Protocol (MCP) 서버 구축을 위한 프로시저 템플릿입니다.

⭐ 빠른 시작

  1. 저장소를 복제
  2. 의존성 설치:

✨ 주요 특징

  • 빠른 테스트 및 개발을위한 분
  • linting와 formatting를 위한 Biome
  • 표준 버전 관리
  • 깨끗하고 유지 가능한 프로젝트 구조

프로젝트 구조

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

새 도구 만들기

이 프로젝트는 새로운 MCP 도구를 만들 수있는 스크립트를 포함합니다 :

이것은:

  1. src/tools/ 아래 새 도구 디렉토리 만들기
  2. 기본적인 공구 구조를 포함하여:
  • index.ts (주요 구현)
  • schema.ts (툴 매개 변수에 대한 JSON 스키마)
  • test.ts (테스트 파일)
  1. 새 도구 내보내기 도구 인덱스 파일을 업데이트

예:

542️ 개발

  • Run 테스트: bun test -Format 코드: bun run format -Lint 코드: bun run lint
  • 건축 프로젝트: bun run build

개발 MCP 서버를 Claude 데스크톱에 추가하려면:

  1. 프로젝트 구축:

  2. Claude 데스크탑 구성에 추가:

버전 관리

이 프로젝트는 자동화된 버전 관리를 위한 표준버전을 사용합니다. bun run release을 실행하여 새 버전을 만듭니다.

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

README

MCP Server Starter

A production-ready starter template for building Model Context Protocol (MCP) servers with TypeScript.

🚀 Quick Start

  1. Clone the repository
  2. Install dependencies:
    bun install
    

✨ Key Features

  • Bun for fast testing and development
  • Biome for linting and formatting
  • Automated version management with standard-version
  • Clean, maintainable project structure

📂 Project Structure

mcp-starter/
├── src/
│   ├── tools/          # MCP tools implementation
│   ├── utils/          # Shared utilities
│   ├── main.ts         # Server entry point
│   └── types.ts        # Shared type definitions
├── tests/              # Test files
├── biome.json          # Linting configuration
├── tsconfig.json       # TypeScript configuration
└── package.json        # Project dependencies

⚙️ Configuration

Creating New Tools

The project includes a script to help create new MCP tools:

bun run scripts/create-tool.ts 

This will:

  1. Create a new tool directory under src/tools/
  2. Generate the basic tool structure including:
    • index.ts (main implementation)
    • schema.ts (JSON schema for tool parameters)
    • test.ts (test file)
  3. Update the tools index file to export the new tool

Example:

bun run scripts/create-tool.ts weather

🛠️ Development

  • Run tests: bun test
  • Format code: bun run format
  • Lint code: bun run lint
  • Build project: bun run build

To add your development MCP server to Claude Desktop:

  1. Build the project:
    bun run build
    
  2. Add to your Claude Desktop config:
    // You only need the argument if you need to pass arguments to your server
    {
      "mcpServers": {
        "your-server-name": {
          "command": "node",
          "args": ["/path/to/your/project/dist/main.js", "some_argument"]
        }
      }
    }
    

📜 Version Management

This project uses standard-version for automated version management. Run bun run release to create a new version.

Commit Message Format

  • feat: New feature (bumps minor version)
  • fix: Bug fix (bumps patch version)
  • BREAKING CHANGE: Breaking change (bumps major version)

📦 Publishing to npm

  1. Ensure you’re logged in to npm:
    npm login
    
  2. Build the project:
    bun run build
    
  3. Publish the package:
    npm publish
    

Remember to update the version number using bun run release before publishing new versions.

Installing from npm (after publishing)

Add to your Claude Desktop config:

// You only need the argument if you need to pass arguments to your server
{
  "mcpServers": {
    "your-server-name": {
      "command": "npx",
      "args": ["-y", "your-package-name", "some_argument"]
    }
  }
}
GitHub에서 전체 README 보기

설치

npx -y your-package-name some_argument
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

// You only need the argument if you need to pass arguments to your server { "mcpServers": { "your-server-name": { "command": "node", "args": ["/path/to/your/project/dist/main.js", "some_argument"] } } }