
0itsuki0/mcpdemo-typescript-
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
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 서버를 만드는 새로운 프로젝트는 바탕 화면 폴더에 생성됩니다.
샘플 코드는 다음과 같습니다.
- 서버 인스턴스 생성
- 사용 가능한 도구 정의
- 처리 도구 실행
- 서버 시작
설정
- 실행
npm install필요한 의존성을 설치하기 위해 - 프로젝트 구축
npm run build build/index.js는 MCP 호스트에서 설정하는 서버 경로가 될 것입니다.
데스크탑용 Claude 테스트
- 데스크톱 용 Claude 다운로드
- 명세.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Demo of Model Context Protocol
For more details, please refer to my article:
- Get Start with Model Context Protocol.
- MCP Server and Client with SSE & The New Streamable HTTP
- MCP Authorization: The NEW RS and AS Separation!
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
- Run
npm installto install necessary dependency - Run
npm run buildto build the project build/index.jswill the server path to set up in the MCP host
Test with Claude for desktop
- Download Claude for Desktop
- 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
- Add server configuration
{
"mcpServers": {
"create-mcp-app": {
"command": "node",
"args": [
"/absolute-path-to/build/index.js"
]
}
}
}
- Save the file and restart Claude for Desktop.
- 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
- Set up
OPENAI_API_KEYin.env. - Add MCP server configurations to connect the host in
server-config.json.
{
"some-server-name-1": {
"command": "node",
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →