Skip to content
Documentation
Command

/start-12-1.en

Lesson command

From plugin
ai-agent-camp
345200 skills8 agents200 commands
Install
$ npx -y skills add minicoohei/ai-agent-camp --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/start-12-1.en

Context preview

What this command does when you run it.

Lesson command

Command definition

start-12-1.en.md
description: "Lesson command"
chapter: "courses/aiagent/lesson03-core/module12-notion"
duration: "~30 min"
prerequisites: ["start-0-1"]
level: "intermediate"
tags: ["notion", "mcp", "api"]
nonInteractiveMode: incompatible

๐ŸŽ“ Lesson 12-1: Notion API Connection

๐Ÿ“ What You'll Do

**Lesson 12-1: Notion API Fundamentals**!

| Item | Details | |------|------| | Goal | Operate Notion pages and databases from Claude Code using MCP/Notion API | | Duration | ~30 min | | Skills used | Notion API, MCP (Model Context Protocol) | | Prerequisites | Notion account, integration creation permissions | | Course page | [Module 12: Notion](https://ai-agent.camp/en/course/module-12) alongside this lesson |

**Session flow:** 1. Create a Notion integration 2. Obtain the API key and database ID 3. Read and write pages and databases

By the end of this session, you will be able to operate Notion from Claude Code.

> **๐Ÿ’ก Hint**: If the AI response stops midway, type "please continue" or "keep going" to resume. This is a Cursor behavior, not a malfunction.

---

๐ŸŽฏ Readiness Check

Let's first check that everything is ready.

**AskQuestion configuration:**

{
  "title": "๐ŸŽฏ Pre-session check",
  "questions": [{
    "id": "readiness",
    "prompt": "Are you ready?",
    "options": [
      {"id": "ready", "label": "Ready! Let's start"},
      {"id": "check_prereq", "label": "Check prerequisites"},
      {"id": "view_html", "label": "View the course page first"},
      {"id": "different_lesson", "label": "Go to a different lesson"}
    ]
  }]
}

(ready โ†’ Go to Step 1) (check_prereq โ†’ Run prerequisite verification) (view_html โ†’ Show course page path) (different_lesson โ†’ Display module list)

---

๐Ÿš€ Step 1: Create Notion Integration

**Prerequisite:** The Notion MCP server must be configured. If not configured, run `/setup-notion` first.

**What the AI automatically verifies:** 1. Verify that the `notion` server is defined in the MCP config file:

  • Claude Code: Read `~/.claude/mcp_settings.json` and verify `mcpServers.notion` exists
  • Cursor: Read `.cursor/mcp.json` and verify `mcpServers.notion` exists

2. If already configured -> proceed to Step 2 (MCP config file creation) 3. If not configured -> guide to run `/setup-notion`

**AskQuestion configuration:**

{
  "title": "๐Ÿš€ Step 1: Verify Notion Integration",
  "questions": [{
    "id": "step_action",
    "prompt": "Check NOTION_API_KEY configuration status.",
    "options": [
      {"id": "check", "label": "Check configuration status"},
      {"id": "setup_notion", "label": "Set up with /setup-notion"},
      {"id": "skip", "label": "Skip (if already configured)"}
    ]
  }]
}

(check โ†’ Verify the notion entry in the MCP config file. If configured, proceed to Step 2) (setup_notion โ†’ Guide to run /setup-notion) (skip โ†’ Proceed to Step 2)

---

๐Ÿš€ Step 2: Create MCP Configuration File

Use AskQuestion to choose "Proceed / Just review the example / Skip".

**AskQuestion configuration:**

{
  "title": "๐Ÿš€ Step 2: Create MCP Configuration File",
  "questions": [{
    "id": "step_action",
    "prompt": "What would you like to do with this step?",
    "options": [
      {"id": "practice", "label": "Proceed"},
      {"id": "review", "label": "Just review the example"},
      {"id": "skip", "label": "Skip"}
    ]
  }]
}

**Guidance after selection:** Input:

Please create the MCP configuration file for Claude Code.

File: ~/.claude/mcp_settings.json

Content (replace NOTION_API_KEY with your actual token):
{
  "mcpServers": {
    "notion": {
      "command": "npx",
      "args": [
        "-y",
        "@notionhq/notion-mcp-server"
      ],
      "env": {
        "NOTION_API_KEY": "secret_your_token_here"
      }
    }
  }
}

Please create the file.

**Expected result:** The MCP config file is created. Replace the actual token manually.

---

๐Ÿš€ Step 3: Grant Workspace Access Permission

Use AskQuestion to choose "Proceed / Just review the example / Skip".

**AskQuestion configuration:**

{
  "title": "๐Ÿš€ Step 3: Grant Workspace Access Permission",
  "questions": [{
    "id": "step_action",
    "prompt": "What would you like to do with this step?",
    "options": [
      {"id": "practice", "label": "Proceed"},
      {"id": "review", "label": "Just review the example"},
      {"id": "skip", "label": "Skip"}
    ]
  }]
}

**Guidance after selection:** Input:

Please explain how to grant access permissions to the integration in Notion.

Steps:
1. Open a page in Notion
2. Top-right "..." menu > Connections
3. Add the created integration "Claude MCP Integration"

Note: Only pages under the page where the integration is added will be accessible.

**Expected result:** The procedure for configuring access permissions to Notion pages is explained.

---

๐Ÿš€ Step 4: Connection Test

Use AskQuestion to choose "Proceed / Just review the example / Skip".

**AskQuestion configuration:**

{
  "title": "๐Ÿš€ Step 4: Connection Test",
  "questions": [{
    "id": "step_action",
    "prompt": "What would you like to do with this step?",
    "options": [
      {"id": "practice", "label": "Proceed"},
      {"id": "review", "label": "Just review the example"},
      {"id": "skip", "label": "Skip"}
    ]
  }]
}

**Guidance after selection:** Input:

We will perform a Notion MCP connection test.

Please verify the following:
1. The MCP configuration file (~/.claude/mcp_settings.json) exists
2. NOTION_API_KEY is configured
3. Restart Claude Code and verify MCP is loaded

As a connection test, connect to Notion and list the accessible pages.

**Expected result:** If MCP is configured correctly, a list of Notion pages is displayed.

---

๐Ÿš€ Step 5: Basic Operations Test

Use AskQuestion to choose "Proceed / Just review the example / Skip".

**AskQuestion configuration:**

{
  "title": "๐Ÿš€ Step 5: Basic Operations Test",
  "questions": [{
    "id": "step_action",
    "prompt": "What
Read more
Ships withai-agent-camp

AI Agent Training for Non-Engineers - Complete Guide to Claude Code / Cursor / Codex ### โš ๏ธ Before you clone Official repository (maintained by the authors): Running AI agents from this repo grants them shell, file-write, and external-API permissions on your

Get the whole plugin