AS

azure-samples/python-mcp-demos

Developer tools

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

184 stars 124 forks 품질 71 트렌드 31

FastMCP를 이용한 모델 컨텍스트 프로토콜(MCP) 구현을 보여주는 데모 프로젝트로, stdio 및 HTTP 전송, LangChain 및 Agent Framework와의 통합 예시, 그리고 ...

개요

FastMCP를 이용한 모델 컨텍스트 프로토콜(MCP) 구현을 보여주는 시연 프로젝트로, stdio 및 HTTP 전송 예시, LangChain 및 Agent Framework와의 통합, Azure Container Apps로의 배포 사례를 포함합니다. 이 프로젝트를 설정할 수 있는 몇 가지 옵션이 있습니다. 가장 빠른 시작 방법은 GitHub Codespaces인데, 모든 도구를 설정해 주고 로컬에서도 설정할 수 있습니다. GitHub Codespaces를 사용해 이 프로젝트를 가상으로 실행할 수 있습니다. 아래 버튼 중 하나를 클릭하여 브라우저에서 웹 기반 VS Code 인스턴스를 열어보세요: Ollama Codespace는 Ollama를 사전 설치하고 gemma4:e2b 모델을 가져와서 .env.sample.ollama를 .env 파일로 복사합니다. 64GB 메모리 요구량은 Codespace 할당량을 더 빨리 소모할 수 있다는 점에 유의하세요. 코드스페이스가 열리면 터미널 창을 열고 배포 단계를 계속하세요. 관련 옵션으로는 VS Code Dev Containers가 있는데, 이를 통해 Dev Containers 확장 프로그램을 사용해 로컬 VS Code에서 프로젝트를 엽니다: 1.

개요(AI 번역)

FastMCP를 이용한 모델 컨텍스트 프로토콜(MCP) 구현을 보여주는 시연 프로젝트로, stdio 및 HTTP 전송 예시, LangChain 및 Agent Framework와의 통합, Azure Container Apps로의 배포 사례를 포함합니다.

목차

  • 시작
  • GitHub 코드스페이스
  • VS 코드 개발 컨테이너
  • 지역 환경
  • 로컬 MCP 서버 실행
  • GitHub Copilot과 함께 사용하기
  • VS 코드를 이용한 디버그
  • MCP 검사기로 검사하기
  • Aspire 대시보드로 트레이스 보기
  • 로컬 에이전트 MCP 실행
  • Azure 배포
  • 프라이비셜 네트워킹을 이용한 Azure로 배포
  • Keycloak 인증으로 Azure에 배포
  • Entra OAuth 프록시를 이용한 Azure 배포
  • 자료

시작

이 프로젝트를 설정할 수 있는 몇 가지 옵션이 있습니다. 가장 빠른 시작 방법은 GitHub Codespaces인데, 모든 도구를 설정해 주고 로컬에서도 설정할 수 있습니다.

깃허브 코드스페이스

GitHub Codespaces를 사용해 이 프로젝트를 가상으로 실행할 수 있습니다. 아래 버튼 중 하나를 클릭하여 브라우저에서 웹 기반 VS Code 인스턴스를 열어보세요:

Default (Azure OpenAI):

Ollama (로컬 모델, 64GB+ 메모리 필요):

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

README

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

Python MCP Demo

A demonstration project showcasing Model Context Protocol (MCP) implementations using FastMCP, with examples of stdio and HTTP transports, integration with LangChain and Agent Framework, and deployment to Azure Container Apps.

Table of Contents

Getting started

You have a few options for setting up this project. The quickest way to get started is GitHub Codespaces, since it will setup all the tools for you, but you can also set it up locally.

GitHub Codespaces

You can run this project virtually by using GitHub Codespaces. Click one of the buttons below to open a web-based VS Code instance in your browser:

Default (Azure OpenAI):

Ollama (local models, requires 64GB+ memory):

The Ollama Codespace pre-installs Ollama and pulls the gemma4:e2b model, and copies .env.sample.ollama as your .env file. Note that the 64GB memory requirement will consume your Codespace quota faster.

Once the Codespace is open, open a terminal window and continue with the deployment steps.

VS Code Dev Containers

A related option is VS Code Dev Containers, which will open the project in your local VS Code using the Dev Containers extension:

  1. Start Docker Desktop (install it if not already installed)
  2. Open the project:
  3. In the VS Code window that opens, once the project files show up (this may take several minutes), open a terminal window.
  4. Continue with the deployment steps.
GitHub에서 전체 README 보기

설치

npx @modelcontextprotocol/inspector uv run servers/basic_mcp_stdio.py
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →