CodeTour
CodeTour
애니메이션 방식의 LLM 기반 '다섯 살에게 설명하듯이' GitHub 풀 리퀘스트 투어.
CodeTour는 MCP 서버와 로컬 브라우저 뷰어로 구성됩니다. Claude(또는 MCP를 구동하는 모든 LLM)는 CodeTour의 도구를 단계별로 호출하며, 뷰어는 파일 트리, diff, 펄스 라인 강조 표시를 애니메이션으로 보여줍니다. 이때 내레이션은 캡션으로 표시되고 브라우저의 기본 텍스트 음성 변환을 통해 소리로 읽힙니다. 각 정류장은 GitHub로 연결되어 보는 사람이 직접 세부 내용을 확인할 수 있습니다.
작동 방식
Claude ──(MCP stdio)──▶ codetour ──(WebSocket)──▶ your browser
│
└──(REST)──▶ GitHub APILLM은
get_pr_info/get_file_diff를 호출하여 CodeTour를 통해 PR을 읽으므로 내레이션이 표시되는 내용과 정확히 일치합니다.start_tour는 브라우저에서 뷰어를 열고 시작을 클릭할 때까지 기다립니다(클릭하면 오디오도 활성화됩니다).show_overview와 일련의show_step호출은 변경 사항을 애니메이션으로 보여줍니다. 각 호출은 내레이션 말하기가 끝날 때까지 대기하므로 투어가 자연스럽게 진행됩니다.end_tour는 GitHub의 PR 링크와 함께 마무리 요약을 표시합니다.
Related MCP server: Code Review MCP Server
설치
Python 3.11+ 및 uv가 필요합니다.
git clone <this repo> && cd CodeTour
uv syncClaude Code에 사용자 범위로 등록하면 모든 저장소에서 도구를 사용할 수 있습니다:
claude mcp add --scope user codetour -- uv --directory /path/to/CodeTour run codetour그런 다음 그냥 요청하세요:
https://github.com/owner/repo/pull/123의 경영진용 투어를 보여줘.
codetour 스킬
이 저장소에는 좋은 투어를 만드는 요령을 Claude에게 가르쳐 주는 Claude Code 스킬(skills/codetour/SKILL.md)이 포함되어 있습니다: gh를 통해 현재 브랜치의 PR을 자동 감지하고, 뷰어를 열기 전에 3~7개의 정류장을 계획하며, ELI5 내레이션 스타일 규칙과 뷰어가 닫혔을 때 복구하는 방법을 다룹니다. 개인 스킬 디렉터리에 링크(또는 복사)하여 설치하세요:
ln -s /path/to/CodeTour/skills/codetour ~/.claude/skills/codetour스킬을 설치하면 어떤 저장소에서든 그냥 "이 PR 투어"라고 말하면 올바르게 동작합니다. MCP 서버나 스킬을 설치한 후에는 Claude Code 세션을 다시 시작하세요.
GitHub 인증
공개 PR은 인증 없이도 동작합니다(속도 제한 낮음). 비공개 저장소 또는 더 높은 제한이 필요하면 CodeTour는 다음 중 첫 번째를 사용합니다: GITHUB_TOKEN, GH_TOKEN, 또는 gh CLI에 저장된 토큰(gh auth login).
구성
환경 변수 | 기본값 | 의미 |
|
| 뷰어 포트(사용 중이면 위쪽으로 탐색) |
| 설정 안 함 |
|
|
| PR당 가져오는 변경 파일 최대 수 |
|
| 파일별 diff 크기 제한(초과 시 잘라냄) |
개발
uv run pytest # unit tests
uv run ruff check . # lint
uv run codetour --demo # web viewer only, replays a canned tour on a loop데모 모드는 프런트엔드를 반복 개발하는 가장 빠른 방법입니다: MCP 클라이언트도 GitHub 접근도 필요 없습니다 — 출력된 URL을 열고 시작을 클릭하면 준비된 투어를 볼 수 있습니다.
MCP 도구
도구 | 용도 |
| PR 메타데이터 + 파일별 헝크 라인 범위 (먼저 호출) |
| 한 파일의 전체 파싱된 diff |
| 뷰어를 열고 시작을 기다림 |
| PR 요약 카드, 음성 출력 |
| 파일/라인에 애니메이션 정지 |
| GitHub 링크가 포함된 마무리 카드 |
| 진단 |
Available Tools
7 toolsend_tourA
Finish the tour: shows a closing summary card with a 'View on GitHub' button and speaks the summary. Blocks until spoken.
Inputs: summary (required).
get_file_diffA
Return the full parsed diff for one changed file in the PR: every hunk with every line (kind add/del/ctx, old/new line numbers, text). Use this to read the actual code changes so your show_step narration is accurate.
Inputs: path (required), pr_url (required).
get_pr_infoA
Fetch a GitHub pull request's metadata and a compact summary of every changed file. Call this FIRST, before start_tour, so your narration matches what will be displayed.
Each file includes its diff hunk ranges: {old_start, old_end, new_start, new_end}. Those are the line numbers you pass to show_step (side="new" uses new_start/new_end). Use get_file_diff to read the actual changed lines of a specific file.
Inputs: pr_url (required).
show_overviewA
Show the PR overview card (title, author, +/- stats, file count) with your narration as a spoken caption, plus optional short bullet key_points. Blocks until the narration finishes speaking. Keep narration to 1-3 short, plain-language sentences.
Inputs: narration (required), key_points.
show_stepA
Show one tour step: selects file in the file tree, animates its diff into
view, scrolls to line_start..line_end (line numbers on the side version, as
returned by get_pr_info/get_file_diff), and pulses a highlight ("highlight") or
dims everything else ("spotlight"). The narration appears as a caption and is
spoken aloud; the call BLOCKS until speech completes, so call show_step
sequentially to pace the tour. Omit line_start/line_end to frame the whole file.
Out-of-range lines are snapped to the nearest hunk and reported in warnings.
Inputs: file (required), narration (required), side, style, +2 more.
start_tourA
Start an animated tour of the pull request. Fetches the PR, opens the viewer in the user's browser, and shows a title/start screen. Blocks up to ~30s waiting for the viewer to connect and the user to click Start (which also enables audio). Replaces any previous tour. Call get_pr_info first so you can plan your steps.
Inputs: pr_url (required), tour_title.
tour_statusA
Diagnostics: whether a tour is active, whether a browser viewer is connected, audio state, steps shown, and the viewer URL. Use this if a call timed out or you suspect the viewer window was closed.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a distinctly different role: fetching PR metadata, fetching file diffs, starting the tour, showing overview/step/end screens, and checking diagnostics. No two tools overlap in purpose, making selection unambiguous.
Most tools follow a clear verb_noun pattern (get_pr_info, get_file_diff, start_tour, show_overview, show_step, end_tour). 'tour_status' is the one outlier, reading as a noun phrase rather than a verb-driven action.
Seven tools is well-scoped for a PR tour workflow: two for data retrieval, four for tour progression, and one for diagnostics. Each tool serves a necessary function without redundancy.
The tool surface covers the full tour lifecycle: retrieving PR context, reading diffs, starting the tour, showing overview and steps, ending cleanly, and diagnosing state. No obvious dead ends or missing operations for the stated purpose.
Maintenance
Related MCP Connectors
Create narrated product walkthrough videos and written guides from your AI coding tool.
Make narrated, on-brand product videos of your real app from your coding agent or AI assistant.
Make AI-drawn video from chat: your LLM draws every frame in code; add narration, music and SFX.
Make narrated demo videos of web apps from your AI assistant.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceGenerates narrated video walkthroughs of git commits, staged/unstaged changes, or entire codebases with AI-powered analysis, syntax-highlighted code visualization, and text-to-speech narration.-
- AlicenseBqualityDmaintenanceConnects LLMs to GitHub and GitLab to analyze pull and merge requests for logic, security, and architectural alignment. It provides tools for fetching diffs, file contents, and project metadata, alongside guided prompts for professional code reviews.10ISC
- AlicenseAqualityCmaintenanceEnables AI agents to present interactive code walkthroughs with voice narration, opening files, highlighting code, and showing inline explanations with synchronized text-to-speech.538 npmMIT
- FlicenseAqualityDmaintenanceEnables LLM clients to list, read, review, and comment on GitHub pull requests, turning an AI assistant into a fully capable code reviewer.61-