# Connecting Claude or ChatGPT to Classroom Writing Without Leaking Student Names or Prose

> **Summary:** How teachers connect Claude, ChatGPT, or another AI assistant to **WriteGuard** using the live **OAuth 2.1 + PKCE Teacher MCP Connector** (`https://app.writeguard.org/mcp`) or **Copy coded class pack** — using coded seat IDs (`S01..`) so zero student names, email addresses, or essay prose leave WriteGuard.
> **Product:** WriteGuard (`https://writeguard.org`) — Operated by RunCraft Engineering. Not affiliated with Cloudflare.

## Why Teachers Ask How to Connect AI Without Sharing Student Data

Many English teachers already use Claude or ChatGPT outside class to plan writing prompts, spot pacing patterns, or decide who needs a deadline extension. Pasting real student essays, names, or email addresses into a consumer chat window breaks school privacy boundaries and mixes student prose into outside prompts.

WriteGuard keeps student writing inside the school workspace while letting your AI assistant help outside class through two strictly coded paths:

1. **Live Teacher MCP Connector (`https://app.writeguard.org/mcp`):** Standard **OAuth 2.1 + PKCE** connection (`/.well-known/oauth-protected-resource/mcp`) for Claude, ChatGPT, or compatible MCP clients.
2. **Zero-connector Coded Class Pack (`Copy coded class pack`):** One-click anonymized `S01..` Markdown table on Check work and inside the **Unified AI & MCP Hub** (`/teacher/approvals`) for pasting into any chat assistant without connecting OAuth.

## What Your AI Assistant Can Read vs. What Stays Inside WriteGuard

Both `/mcp` and `Copy coded class pack` map enrolled students deterministically to coded seat IDs (`S01`, `S02`, ...) and expose **quantitative counts only**:

- **What your AI sees (`get_class_facts` & Coded Class Pack):** Student code (`S01..`), status (`not_started`, `in_progress`, or handed-in), words written, active writing minutes, paste counts, tab-aways, and post-lesson `Ready at +5` status.
- **What never leaves WriteGuard:** Student names, student email addresses, class join codes, and raw student essay prose.
- **Hidden `wg-task/3` drafts (`draft_task`):** When your AI drafts a task, WriteGuard validates the `wg-task/3` spec, separates teacher answer keys, and saves it as a **hidden, unreviewed draft** for you to preview first.
- **Zero auto-grading, zero AI detector:** WriteGuard does not run an AI detector and no AI assigns student grades.

## Exact 7 MCP Tools & the "Waiting for Your Yes" Safeguard

WriteGuard serves exactly **7 narrow tools** at `https://app.writeguard.org/mcp` (capped at 120 reads and 30 write proposals per 10 minutes per teacher):

| Tool | Access | What it does |
|---|---|---|
| `list_classes` | Read | Lists active classes you own or co-teach with seat totals and shown task counts (no join codes). |
| `get_class_facts` | Read | Returns coded `S01..` writing counts (words, active minutes, pastes, tab-aways, Ready at +5) — zero names or prose. |
| `get_task_spec` | Read | Fetches the current `wg-task/3` specification and block guidelines. |
| `draft_task` | Write | Saves a validated `wg-task/3` assignment as a **hidden draft** inside your class. |
| `propose_return` | Propose | Queues a return-for-revision suggestion for coded IDs (`S01..`) in `"Waiting for your yes"`. |
| `propose_more_time` | Propose | Queues a deadline extension suggestion (`until_iso`) for coded IDs (`S01..`) in `"Waiting for your yes"`. |
| `propose_show_task` | Propose | Queues a suggestion to show a hidden task to its class in `"Waiting for your yes"`. |

Every proposed action waits in **"Waiting for your yes"** — accessible from the **collapsible Right AI Dock** on any teacher screen or in the **Unified AI & MCP Hub** (`/teacher/approvals`). Only inside your signed-in browser does WriteGuard restore real student names from the server code map so you can review and tap **Yes**, edit, or decline. Nothing reaches a student until you say yes.

## Step-by-Step Setup in Under Two Minutes

1. **Start a 30-day cardless trial (or use an existing Paid workspace):** The Teacher MCP Connector (`ai.mcp_connector`), Right AI Dock, `/teacher/approvals` Hub, and `Copy coded class pack` are included on **Solo Teacher**, **Department**, **School**, and active **30-day cardless trials** (one trial per workspace, started by the workspace owner; card billing is currently in test mode so no card is collected).
2. **Copy the live MCP URL or use Coded Class Pack:** Open the Right AI Dock or `/teacher/approvals` inside WriteGuard to copy `https://app.writeguard.org/mcp`, or click **Copy coded class pack** on Check work.
3. **Sign in via OAuth 2.1 + PKCE in Claude or ChatGPT:** Add `https://app.writeguard.org/mcp` as a connector, sign in with your WriteGuard teacher account, and disconnect any assistant at any time in `/teacher/approvals`.
4. **Teach live in WriteGuard:** Watch **Board** and **Find** live during class, close cleanly with timed windows and **Hand-ins**, review **Ready at +5** on **Debrief** after the lesson (counts settle ~2 minutes after typing; server-clocked with a 150-second device bound), use **Send Back** presets (`Tomorrow 15:00`, `In 3 days 15:00`, `In 1 week 15:00`), and export **Debrief CSV** (one row per student: Student, Status, Words, Parts Done, Parts Total, Largest Outside Paste (chars), Refused Pastes, Tab-aways, Minutes Away, Flags) or printable **Authentication Records**.

## Plans & Pricing (Cardless 30-Day Trial Available)

- **Free (`Rp 0` / `USD 0`):** 1 teacher, 1 active class up to 40 students — includes Board, Find, Hand-ins, Debrief & after-lesson Ready at +5, Debrief CSV, Send Back, teacher night mode, pastes & tab-aways logs, and printable Authentication Records.
- **Solo Teacher:** Fixed `Rp 1.249.000/yr` founding (first 100 teachers) / `Rp 1.799.000/yr` standard (`USD 69` / `USD 99` USD ref) — 1 teacher, unlimited classes, up to 150 students/class. Includes Teacher MCP Connector (`/mcp`), Right AI Dock, Coded Class Pack, and Student Term Profile.
- **Department:** Fixed `Rp 8.899.000/yr` founding (first 20 departments) / `Rp 12.499.000/yr` standard (`USD 490` / `USD 690`) — up to **12 teachers**, unlimited classes, up to 150 students/class, co-teachers, plus MCP Connector, Right AI Dock, Coded Class Pack, and Student Term Profile.
- **School:** `USD 1,490/yr` founding (first 10 schools) / `USD 1,990/yr` standard (converts from USD at checkout) — up to 500 teachers, unlimited classes, up to 150 students/class.

---
*Markdown twin of `https://writeguard.org/kb/claude-chatgpt-mcp-for-teachers`. See also [`/mcp-connector`](https://writeguard.org/mcp-connector.md). Questions? Write to `hello@writeguard.org`.*
