JP

juleswhite/python-agents-mcp-course

Developer tools

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

42 stars 61 forks 품질 46 트렌드 12

juleswhite/python-agents-mcp-course는 MCP 서버 후보자가 https://github.com/juleswhite/python-agents-mcp-course.에서 수입됩니다

개요

juleswhite/python-agents-mcp-course는 MCP 서버 후보자가 https://github.com/juleswhite/python-agents-mcp-course.에서 수입됩니다

개요(AI 번역)

이 저장소에는 Python 코드 예제가 포함되어 있습니다. 물론 “AI Agents with Model Context Protocol.”

필수품

  • 파이썬 3.10+
  • 핍
  • OpenAI, Anthropic 또는 Google의 API 키 ([T0]] 파일에서 설정)

설치

각 모듈에는 자체가 있습니다 python-code/ 디렉토리. 어떤 단위든지 설치하기 위하여:


과정 구조 & 부호 매핑

모듈 1: AI Agents를 위한 Model Context Protocol (MCP)로 시작

상품 유형 코드 파일
왜 모델 콘텍스트 프로토콜이 필요합니까? 비디오 -
모델 Context Protocol & AI 문제 해결 도구 비디오 -
MCP는 AI가 컴퓨터와 통신할 수 있음 비디오 -
AI @ Work - AI와 함께 하는 일 비디오
내 AI 도구 읽기
커넥션 더 알아보기

Module 1은 개념적인 소개 — 코드 운동 없음.


모듈 2 : AI 에이전트 루프 및 모델 Context 프로토콜

상품 유형 코드 파일 실행 명령
모델 콘텍스트 프로토콜: 사이택트, 세마틱스, 타이밍 비디오 -
모델 Context Protocol & AI Agents 비디오 -
MCP 서버란? 비디오 -

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

README

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

AI Agents with Model Context Protocol - Python Code Examples

This repository contains Python code examples for the Coursera course “AI Agents with Model Context Protocol.”

Prerequisites

  • Python 3.10+
  • pip
  • An API key from OpenAI, Anthropic, or Google (set in .env file)

Setup

Each module has its own python-code/ directory. To set up any module:

cd /python-code
pip install -r requirements.txt
cp .env.example .env  # Then add your API key(s)

Course Structure & Code Mapping

Module 1: Getting Started with Model Context Protocol (MCP) for AI Agents

Item Type Code Files
Why Do We Need Model Context Protocol? Video —
Model Context Protocol & AI Problem Solving with Tools Video —
MCP Allows AI to Communicate with the Computer Video —
AI @ Work - What My Work with AI Looks Like Video —
My AI Tools Reading —
Learning More & Staying Connected Reading —

Module 1 is conceptual introduction — no code exercises.


Module 2: AI Agent Loops & Model Context Protocol

Item Type Code Files Run Command
Model Context Protocol: Syntax, Semantics, Timing Video — —
Model Context Protocol & AI Agents Video — —
What is an MCP Server? Video — —
Tool Specifications Video — —
Building Your First MCP Server Ungraded Plugin server.py python server.py
Building Your First MCP AI Agent Ungraded Plugin agent.py, llm.py python agent.py "question"
Agents Talking to Tools vs. Tools with AI Video — —

Code Location: 01-intro-to-mcp-agents/python-code/

Key Files:

File Description
server.py Basic MCP tool server with list_files and read_file tools
agent.py Agent loop implementation (PERCEIVE→DECIDE→ACT→OBSERVE)
llm.py LLM integration utilities (OpenAI/Anthropic/Gemini)
test_server.py Tests server tools directly without an agent
server_with_resources.py Server with MCP resources for teaching agents
agent_with_learning.py Agent that reads resources before acting

Commands:

cd 01-intro-to-mcp-agents/python-code
pip install -r requirements.txt
python server.py              # Start the basic MCP server
python agent.py "question"    # Run the basic agent
python test_server.py         # Test server tools directly

Module 3: Building AI Agents with Model Context Protocol

Item Type Code Files Run Command
Resources Video — —
Teaching Agents to Use Tools Ungraded Plugin workspace_server.py python workspace_server.py
Teaching Agents to Seek Help Ungraded Plugin workspace_server.py python workspace_server.py
GitHub에서 전체 README 보기

설치

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

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