
juleswhite/ai-agents-mcp-typescript
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
이 저장소에는 "AI Agents with Model Context Protocol & TypeScript"의 코드 예제가 포함되어 있습니다
개요
이 저장소에는 "AI Agents with Model Context Protocol & TypeScript"의 코드 예제가 포함되어 있습니다. - Node.js 18+ - npm - OpenAI API 키 (.env 파일에서 설정) 각 모듈에는 자체 코드 / 디렉토리가 있습니다. 어떤 단위든지 설치하기 위하여: Module 1은 개념적 소개 - 코드 운동 없음. 각 모듈의 코드/ 디렉토리에 .env 파일을 만듭니다:
개요(AI 번역)
이 저장소에는 "AI Agents with Model Context Protocol & TypeScript"의 코드 예제가 포함되어 있습니다.
필수품
- 노드.js 18+
- 시간
- OpenAI API 키 ([T0]] 파일에서 설정)
설치
각 모듈에는 자체가 있습니다 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 & 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
.envfile)
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 |
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →