JA

juleswhite/ai-agents-mcp-typescript

Developer tools

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

14 stars 20 forks 品質 46 トレンド 20

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

概要

このリポジトリには、Coursraコース「モデルコンテキストプロトコルとTypeScriptのAIエージェント」のコード例が含まれています。 - Node.js 18 + - npm - OpenAI APIキー(.envファイルで設定) 各モジュールには独自のコード/ディレクトリがあります。 モジュールをセットアップするには: モジュール1は概念的な導入であり、コードの練習はありません。 各モジュールのコード/ディレクトリに .env ファイルを作成します

概要(AI 翻訳)

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

前提条件

  • Node.js 18 +
  • 午後
  • OpenAI API キー (.env で設定)

セットアップ

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

お問い合わせ

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

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

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

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

お問い合わせ

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

| アイテム | タイプ | コードファイル | コマンドを実行 | |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | モデルコンテクストプロトコル:シンタックス、セマティクス、タイミング | | | | | | | | | モデルコンテクストプロトコル・AIエージェント | 動画 | | | | | | | | | | MCPサーバーとは | 動画 | | | | | | | | | | 工具仕様 | 動画 | | | | | | | |

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

README

以下は原文 README の抜粋です。原文を見る。

AI Agents with Model Context Protocol & TypeScript - Code Examples

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

Prerequisites

  • Node.js 18+
  • npm
  • An OpenAI API key (set in .env file)

Setup

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

cd /code
npm install
cp .env.example .env  # Then add your OPENAI_API_KEY

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 01-intro-to-mcp-agents/code/server.ts npm run server
Building Your First MCP AI Agent Ungraded Plugin 01-intro-to-mcp-agents/code/agent.ts``01-intro-to-mcp-agents/code/llm.ts npm run agent
Agents Talking to Tools vs. Tools with AI Video — —

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

Key Files:

Path Description
01-intro-to-mcp-agents/code/server.ts Basic MCP tool server with list_files and read_file tools
01-intro-to-mcp-agents/code/agent.ts Agent loop implementation (PERCEIVE→DECIDE→ACT→OBSERVE)
01-intro-to-mcp-agents/code/llm.ts LLM integration utilities (OpenAI/Anthropic)
01-intro-to-mcp-agents/code/test-server.ts Tests server tools directly without an agent

Commands:

cd 01-intro-to-mcp-agents/code
npm install
npm run server       # Start the basic MCP server
npm run agent        # Run the basic agent
npm run test-server  # 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 01-intro-to-mcp-agents/code/workspace-server.ts npm run workspace-server
Teaching Agents to Seek Help Ungraded Plugin 01-intro-to-mcp-agents/code/workspace-server.ts npm run workspace-server
GitHub で README 全文を見る

インストール

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

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →