# g-sri-harshit/mcp-learning-path architecture

> Architecture diagram of the GitHub repository g-sri-harshit/mcp-learning-path, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/g-sri-harshit/mcp-learning-path
- Repository: https://github.com/g-sri-harshit/mcp-learning-path

## Overview

The product is a Streamlit learning-path generator. A user supplies a goal and service URLs; the app initializes Gemini and MCP, then the supervisor runs planning, YouTube research, and persistence before returning a structured response to the UI. The README also describes optional Notion and extensible MCP integrations, although the sampled research and storage agents specifically select YouTube and Drive tools. Connections reflect the shown calls or documented product flow; unsampled external-service internals are not inferred.

Main entry points: [`utils.py`](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/utils.py) (Sync runner), [`agents/supervisor.py`](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/agents/supervisor.py) (Workflow supervisor), [`app.py`](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/app.py) (Streamlit UI), [`agents/planner_agent.py`](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/agents/planner_agent.py) (Roadmap planner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_ui["Streamlit UI<br/>[app.py]"]
end

subgraph group_runtime["Runtime setup"]
  node_runner["Sync runner<br/>[utils.py]"]
  node_model_setup["Gemini setup<br/>[utils.py]"]
  node_mcp_setup["MCP client setup<br/>[utils.py]"]
end

subgraph group_workflow["Learning workflow"]
  node_supervisor["Workflow supervisor<br/>[supervisor.py]"]
  node_planner["Roadmap planner<br/>[planner_agent.py]"]
  node_prompt["Goal prompt<br/>[prompt.py]"]
  node_research["Resource researcher<br/>[research_agent.py]"]
  node_storage["Result storage<br/>[storage_agent.py]"]
end

subgraph group_integrations["MCP integrations"]
  node_youtube_mcp{{"YouTube MCP"}}
  node_drive_mcp{{"Google Drive MCP"}}
  node_notion_mcp{{"Notion MCP"}}
  node_pipedream{{"Pipedream services"}}
  node_external_apis{{"External APIs"}}
end

node_user(("Learner"))

node_user -->|"enters goal"| node_ui
node_ui -->|"calls runner"| node_runner
node_runner -->|"sets up tools"| node_mcp_setup
node_runner -->|"creates model"| node_model_setup
node_runner -->|"adds context"| node_prompt
node_runner -->|"runs workflow"| node_supervisor
node_mcp_setup -->|"configures endpoint"| node_youtube_mcp
node_mcp_setup -->|"configures endpoint"| node_drive_mcp
node_mcp_setup -->|"configures endpoint"| node_notion_mcp
node_supervisor -->|"plans roadmap"| node_planner
node_supervisor -->|"requests research"| node_research
node_supervisor -->|"requests storage"| node_storage
node_planner -.->|"invokes model"| node_model_setup
node_research -->|"searches videos"| node_youtube_mcp
node_storage -->|"saves result"| node_drive_mcp
node_youtube_mcp -.->|"connects through"| node_pipedream
node_drive_mcp -.->|"connects through"| node_pipedream
node_pipedream -.->|"accesses services"| node_external_apis
node_supervisor -->|"returns response"| node_ui

click node_ui "https://github.com/g-sri-harshit/mcp-learning-path/blob/master/app.py"
click node_runner "https://github.com/g-sri-harshit/mcp-learning-path/blob/master/utils.py"
click node_model_setup "https://github.com/g-sri-harshit/mcp-learning-path/blob/master/utils.py"
click node_mcp_setup "https://github.com/g-sri-harshit/mcp-learning-path/blob/master/utils.py"
click node_supervisor "https://github.com/g-sri-harshit/mcp-learning-path/blob/master/agents/supervisor.py"
click node_planner "https://github.com/g-sri-harshit/mcp-learning-path/blob/master/agents/planner_agent.py"
click node_prompt "https://github.com/g-sri-harshit/mcp-learning-path/blob/master/prompt.py"
click node_research "https://github.com/g-sri-harshit/mcp-learning-path/blob/master/agents/research_agent.py"
click node_storage "https://github.com/g-sri-harshit/mcp-learning-path/blob/master/agents/storage_agent.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ui toneBlue
class node_runner,node_model_setup,node_mcp_setup toneAmber
class node_supervisor,node_planner,node_prompt,node_research,node_storage toneMint
class node_youtube_mcp,node_drive_mcp,node_notion_mcp,node_pipedream,node_external_apis toneRose
class node_user toneIndigo
```

## Components

### User interface

- [Streamlit UI](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/app.py): `app.py`

### Runtime setup

- [Sync runner](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/utils.py): `utils.py`
- [Gemini setup](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/utils.py): `utils.py`
- [MCP client setup](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/utils.py): `utils.py`

### Learning workflow

- [Workflow supervisor](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/agents/supervisor.py): `agents/supervisor.py`
- [Roadmap planner](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/agents/planner_agent.py): `agents/planner_agent.py`
- [Goal prompt](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/prompt.py): `prompt.py`
- [Resource researcher](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/agents/research_agent.py): `agents/research_agent.py`
- [Result storage](https://github.com/g-sri-harshit/mcp-learning-path/blob/master/agents/storage_agent.py): `agents/storage_agent.py`

### MCP integrations

- **YouTube MCP**
- **Google Drive MCP**
- **Notion MCP**
- **Pipedream services**
- **External APIs**

### Other components

- **Learner**

## Connections

- Learner → Streamlit UI: enters goal (evidence: `app.py`)
- Streamlit UI → Sync runner: calls runner (evidence: `app.py`)
- Sync runner → MCP client setup: sets up tools (evidence: `utils.py`)
- Sync runner → Gemini setup: creates model (evidence: `utils.py`)
- Sync runner → Goal prompt: adds context (evidence: `utils.py`)
- Sync runner → Workflow supervisor: runs workflow (evidence: `utils.py`)
- MCP client setup → YouTube MCP: configures endpoint (evidence: `utils.py`)
- MCP client setup → Google Drive MCP: configures endpoint (evidence: `utils.py`)
- MCP client setup → Notion MCP: configures endpoint (evidence: `utils.py`)
- Workflow supervisor → Roadmap planner: plans roadmap (evidence: `agents/supervisor.py`)
- Workflow supervisor → Resource researcher: requests research (evidence: `agents/supervisor.py`)
- Workflow supervisor → Result storage: requests storage (evidence: `agents/supervisor.py`)
- Roadmap planner → Gemini setup: invokes model
- Resource researcher → YouTube MCP: searches videos (evidence: `agents/research_agent.py`)
- Result storage → Google Drive MCP: saves result (evidence: `agents/storage_agent.py`)
- YouTube MCP → Pipedream services: connects through (evidence: `README.md`)
- Google Drive MCP → Pipedream services: connects through (evidence: `README.md`)
- Pipedream services → External APIs: accesses services (evidence: `README.md`)
- Workflow supervisor → Streamlit UI: returns response (evidence: `app.py`)
