0M

0itsuki0/mcpdemo-typescript-

Developer tools

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

39 stars 12 forks 품질 50 트렌드 0

0itsuki0/mcpdemo-typescript-는 MCP 서버 후보가 https://github.com/0itsuki0/mcpdemo-typescript-.에서 수입됩니다

개요

0itsuki0/mcpdemo-typescript-는 MCP 서버 후보가 https://github.com/0itsuki0/mcpdemo-typescript-.에서 수입됩니다

개요(AI 번역)

자세한 내용은 다음을 참조하시기 바랍니다:

  • Model Context Protocol로 시작하십시오.
  • MCP 서버 및 클라이언트 SSE 및 새로운 스트리밍 HTTP
  • MCP 승인 : 새로운 RS와 AS 분리!

내용 표

  • stdio를 가진 MCP
  • 서버
  • 클라이언트와 호스트
  • SSE와 MCP
  • 서버
  • 고객
  • Streamable HTTP를 가진 MCP
  • 서버
  • 고객
  • MCP(StreamableHTTP) 인증
  • 인증 서버
  • MCP의 Resource 서버
  • MCP 클라이언트

stdio를 가진 국부적으로 MCP

# 로컬 MCP 서버

MCP 서버는 MCP 호스트에 create-mcp-server-app 도구를 노출합니다.

이 도구를 실행함으로써, 데스크탑 또는 다른 호스트에 대한 Claude와 함께, 필요한 설정 업 및 샘플 코드와 MCP 서버를 만드는 새로운 프로젝트는 바탕 화면 폴더에 생성됩니다.

샘플 코드는 다음과 같습니다.

  • 서버 인스턴스 생성
  • 사용 가능한 도구 정의
  • 처리 도구 실행
  • 서버 시작

설정

  1. 실행 npm install 필요한 의존성을 설치하기 위해
  2. 프로젝트 구축 npm run build
  3. build/index.js는 MCP 호스트에서 설정하는 서버 경로가 될 것입니다.

데스크탑용 Claude 테스트

  1. 데스크톱 용 Claude 다운로드
  2. 명세.

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

README

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

Demo of Model Context Protocol

For more details, please refer to my article:

Table of Contents

Local MCP with stdio

Local MCP Server

An MCP server that exposes a create-mcp-server-app tool to MCP hosts.

By running this tool, either with Claude for Desktop or some other host, a new project for creating an MCP server with necessary set ups and sample code will be created in the desktop folder.

Sample Code will include the following.

  • creating a server instance
  • defining available tools
  • handling tools execution
  • starting the server

Set Up

  1. Run npm install to install necessary dependency
  2. Run npm run build to build the project
  3. build/index.js will the server path to set up in the MCP host

Test with Claude for desktop

  1. Download Claude for Desktop
  2. Open the configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json
    • If the file does not exist, create one with the same name
  3. Add server configuration
{
    "mcpServers": {
        "create-mcp-app": {
            "command": "node",
            "args": [
                "/absolute-path-to/build/index.js"
            ]
        }
    }
}
  1. Save the file and restart Claude for Desktop.
  2. Enter the prompt create a new mcp server project. You should see a sample MCP Server project created at desktop directory with some responses indicating the success.

Local Host with MCP Clients

An OpenAI-chatbot host that uses MCP clients to connect to MCP servers.

Set up

  1. Set up OPENAI_API_KEY in .env.
  2. Add MCP server configurations to connect the host in server-config.json.
{
    "some-server-name-1": {
        "command": "node",
GitHub에서 전체 README 보기

설치

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

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