IM

insiderphd/mcp-course-code

Developer tools

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

26 stars 15 forks 품질 62 트렌드 0

이 저장소에는 여러 MCP (모델 Context Protocol) 서버 예제 및 클라이언트 테스트 도구가 포함되어 있습니다. 각 프로젝트는 MCP 서버와 함께 건물 및 작업의 다른 측면을 보여줍니다.

개요

이 저장소에는 여러 MCP (모델 Context Protocol) 서버 예제 및 클라이언트 테스트 도구가 포함되어 있습니다. 각 프로젝트는 MCP 서버와 함께 건물 및 작업의 다른 측면을 보여줍니다. 1. : Math MCP Server - 기본 수학 작업 및 수학 농담을 제공합니다. 2. : Todo List MCP Server - 사용자 (Alice 및 Bob)을위한 토도 목록 관리 3. : 날씨 MCP 서버 - 날씨 관련 농담을 반환 4. : MCP 클라이언트 테스터 - MCP 서버와 테스트 및 상호 작용을위한 도구 각 프로젝트는 자체 의존성을 가지고 있습니다. 각 프로젝트 디렉토리에 Navigate 및 의존성을 설치: 이것은 전 세계적으로 mcp-client 명령을 만듭니다. 수학 작업과 수학 농담을 제공하는 서버.

개요(AI 번역)

이 저장소에는 여러 MCP (모델 Context Protocol) 서버 예제 및 클라이언트 테스트 도구가 포함되어 있습니다. 각 프로젝트는 MCP 서버와 함께 건물 및 작업의 다른 측면을 보여줍니다.

프로젝트 개요

  1. ** EX1 - MCP **: Math MCP Server - 기본 수학 작업 및 수학 농담 제공
  2. Ex3 - Priv Esc: Todo List MCP Server - 사용자 (Alice 및 Bob)에 대한 토도 목록 관리
  3. ** EX4 - 서버 선택 **: 날씨 MCP 서버 - 날씨 관련 농담을 반환
  4. ** mcp-lite **: MCP 클라이언트 테스터 - MCP 서버와 테스트 및 상호 작용을위한 도구

필수품

  • **Node.js ** >= 18.0.0
  • ** 오후 ** > = 9.0.0

당신의 버전을 확인하려면:

설치

각 프로젝트는 자체 의존성을 가지고 있습니다. 각 프로젝트 디렉토리에 Navigate 및 의존성을 설치:

Ex1 - MCP (마스 서버)

Ex3 - Priv 에스크로 (Todo List Server)

Ex4 - 서버 선택 (Weather Server)

mcp-lite (MCP 클라이언트 검사자)

** 옵션 - 글로벌 설치:**

이것은 mcp-client] 전역의 명령을 만듭니다.

사용법

Ex1 - MCP: 수학 서버

수학 작업과 수학 농담을 제공하는 서버.

서버 실행

또는 직접:

사용 가능한 도구

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

README

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

MCP Course Code

This repository contains multiple MCP (Model Context Protocol) server examples and a client testing tool. Each project demonstrates different aspects of building and working with MCP servers.

Projects Overview

  1. Ex1 - MCP: Math MCP Server - Provides basic mathematical operations and math jokes
  2. Ex3 - Priv Esc: Todo List MCP Server - Manages todo lists for users (Alice and Bob)
  3. Ex4 - Select server: Weather MCP Server - Returns weather-related jokes
  4. mcp-lite: MCP Client Tester - A tool for testing and interacting with MCP servers

Prerequisites

  • Node.js >= 18.0.0
  • npm >= 9.0.0

To check your versions:

node --version
npm --version

Installation

Each project has its own dependencies. Navigate to each project directory and install dependencies:

Ex1 - MCP (Math Server)

cd "Ex1 - MCP"
npm install

Ex3 - Priv Esc (Todo List Server)

cd "Ex3 - Priv Esc"
npm install

Ex4 - Select server (Weather Server)

cd "Ex4 - Select server"
npm install

mcp-lite (MCP Client Tester)

cd mcp-lite
npm install

Optional - Install globally:

cd mcp-lite
npm install -g

This makes the mcp-client command available globally.

Usage

Ex1 - MCP: Math Server

A server that provides mathematical operations and math jokes.

Running the Server

cd "Ex1 - MCP"
npm start

Or directly:

node src/index.js

Available Tools

  • add: Add two numbers ({ "a": 5, "b": 3 })
  • subtract: Subtract two numbers ({ "a": 10, "b": 4 })
  • multiply: Multiply two numbers ({ "a": 7, "b": 6 })
  • divide: Divide two numbers ({ "a": 20, "b": 4 })
  • power: Raise a number to a power ({ "base": 2, "exponent": 8 })
  • get_math_joke: Get a random math joke ({})

Claude Desktop Configuration

Add to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "math-server": {
      "command": "/Users/katiepaxtonfear/Documents/MCP Course Code/Ex1 - MCP/run-server.sh"
    }
  }
}

Note: Update the path to match your actual project location. Make sure run-server.sh is executable:

chmod +x "Ex1 - MCP/run-server.sh"

Ex3 - Priv Esc: Todo List Server

A server that manages todo lists for users (Alice and Bob).

Running the Server

cd "Ex3 - Priv Esc"
npm start

Or directly:

node src/index.js

Available Tools

  • get_todos: Get all todos for a user

    { "email": "[email protected]" }
    
  • create_todo: Create a new todo for a user

    {
      "email": "[email protected]",
      "title": "Review pull request #123",
      "priority": "high",
      "status": "pending"
    }
    
  • mark_todo_complete: Mark a todo as completed

    {
      "email": "[email protected]",
      "todo_id": 1
    }
    
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "math-server": { "command": "/Users/katiepaxtonfear/Documents/MCP Course Code/Ex1 - MCP/run-server.sh" } } }