canvas-mcp

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Canvas MCP Development Guide

Environment Setup

Commands

Repository Structure

canvas-mcp/
├── src/canvas_mcp/        # Main application code
│   ├── core/             # Core utilities (client, config, validation)
│   ├── tools/            # MCP tool implementations
│   ├── resources/        # MCP resources and prompts
│   └── server.py         # FastMCP server entry point
├── docs/                 # Essential documentation
├── archive/              # Legacy code and development specs (git-ignored)
├── .env                  # Configuration
└── start_canvas_server.sh # Server startup script

Architecture Overview

Core Design Patterns

MCP Tool Organization

API Layer Architecture

Key Components

Parameter Validation System

Course Identifier Handling

Analytics Engine

Messaging System

Coding Standards

Discussion Forum Interaction Workflow

Canvas Messaging Workflow

Peer Review Comment Analysis Workflow

Canvas API Specifics

Psychology

Do not be afraid to question what I say. Do not always respond with “You’re right!” Question the assertions I make and decide whether they are true. If they are probably true, don’t question them. If they are probably false, question them. If you are unsure, question them. Always think critically about what I say and decide for yourself whether it is true or false