JP

juleswhite/python-agents-mcp-course

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

42 stars 61 forks 品質 46 トレンド 12

juleswhite/python-agents-mcp-course は [https://github.com/juleswhite/python-agents-mcp-course.] からインポートされた MCP サーバーの候補です

概要

juleswhite/python-agents-mcp-course は [https://github.com/juleswhite/python-agents-mcp-course.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

このリポジトリには、Coursraコース「モデルコンテキストプロトコルを用いたAIエージェント」のPythonコードの例が含まれています。

前提条件

  • Python 3.10 +
  • ピップ
  • OpenAI、Anthropic、Google([[T0]ファイルで設定)からAPIキー

セットアップ

各モジュールは独自の[python-code/ディレクトリを持っています。 モジュールをセットアップするには:

お問い合わせ

コース構成とコードマッピング

モジュール1:AIエージェント向けモデルコンテキストプロトコル(MCP)で開始

| アイテム | タイプ | コードファイル | お問い合わせ | モデルコンテキストプロトコルが必要な理由 | 動画 | | | | | | | | モデルコンテクストプロトコル・AI問題解決ツール | 動画 | | | | | | MCP AIがコンピュータと通信できるように | 動画 | | | | | AI @ 作業 - 人工知能で働くもの 好きなもの | 動画 | | | | | 私のAIツール | 読む | | | | より多くの学び、つながる | 読む | | | |

※モジュール1はコンセプトの紹介です。コード練習はありません。*

お問い合わせ

モジュール2:AIエージェントループ&モデルコンテキストプロトコル

| アイテム | タイプ | コードファイル | コマンドを実行 | |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | モデルコンテクストプロトコル:シンタックス、セマティクス、タイミング | | | | | | | | | モデルコンテクストプロトコル・AIエージェント | 動画 | | | | | | | | | | 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 のガイドから始めましょう →