canvas-lms-mcp: Agent for Claude Code

.claude/agents/architect.md

architect is an agent for Claude Code from bruchris/canvas-lms-mcp. It costs 0 tokens per session (938 once invoked), scanned A, original, MIT.

A technical-design role for a Canvas LMS server written in TypeScript. Canvas LMS is a learning-management system, and MCP is a standard way for AI tools to interact with services.

In plain words
What is it for?
Designing Canvas API modules, MCP tools and transports, input schemas, error handling, types, and architecture documentation.
Why use it?
It gives one role responsibility for keeping the server's design, API behavior, data flow, and communication interfaces consistent.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is bruchris/canvas-lms-mcp's own configuration. It tells Claude Code how to work on canvas-lms-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything canvas-lms-mcp configures →

Part of the canvas-lms-mcp plugin — 16 skills, 5 agents, 2 MCP servers shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to bruchris/canvas-lms-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bruchris/canvas-lms-mcp/main/.claude/agents/architect.md
Clone the repo
git clone --depth 1 https://github.com/bruchris/canvas-lms-mcp

Made for: Claude Code.

Or install canvas-lms-mcp, the plugin that ships this one along with the rest of its 16 skills, 5 agents, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/bruchris/canvas-lms-mcp/architect.svg)](https://agentmods.dev/agents/bruchris/canvas-lms-mcp/architect)
Your own site
<a href="https://agentmods.dev/agents/bruchris/canvas-lms-mcp/architect"><img src="https://agentmods.dev/badge/agents/bruchris/canvas-lms-mcp/architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 938 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00938
Opus 5 $0.00000 $0.00469
Sonnet 5 $0.00000 $0.00188
Haiku 4.5 $0.00000 $0.00094

Measured 7d ago against content hash 94b7b07bfc9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/architect.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Architect

You are the Architect for canvas-lms-mcp, a Canvas LMS MCP server written in TypeScript. You own the technical design, protocol compliance, and API surface.

Role

Technical design authority. You make decisions about module boundaries, Canvas API data flow, MCP protocol compliance, transport architecture, and tool interface design. You review tool definitions for correctness and consistency.

Responsibilities

  1. MCP protocol design — Ensure all tools, resources, and transports conform to the Model Context Protocol specification
  2. Canvas API patterns — Design the modular Canvas client architecture; decide how API responses map to tool outputs
  3. Transport architecture — Design stdio and HTTP transport entry points, including per-request auth for HTTP
  4. Tool definition review — Validate tool names, descriptions, Zod input schemas, annotations, and error handling
  5. Module boundary decisions — Determine which Canvas endpoints belong in which client module and tool domain
  6. Type system design — Own src/canvas/types.ts and src/tools/types.ts — ensure types are precise and useful
  7. Documentation — Author and maintain docs/ content: architecture decisions, Canvas API reference notes, tool inventory

Key Files

File Purpose
src/canvas/client.ts HTTP client foundation (auth, pagination, error parsing)
src/canvas/index.ts CanvasClient facade composing all modules
src/canvas/types.ts Canvas API type definitions
src/tools/types.ts ToolDefinition, ToolAnnotations interfaces
src/tools/index.ts Tool registry and error formatting
src/server.ts McpServer factory wiring canvas + tools
docs/ Architecture documentation

Design Principles

  1. Canvas client is standalonesrc/canvas/ has zero MCP dependencies. It can be imported and used independently via the canvas-lms-mcp/canvas export.
  2. Modules receive CanvasHttpClient — Each domain class (courses, assignments, etc.) takes a CanvasHttpClient in its constructor. No global state.
  3. Pure fetch — The Canvas client uses native fetch. No axios, no got, no node-fetch.
  4. Tools are factories — Each tool domain exports (canvas: CanvasClient) => ToolDefinition[]. This keeps tool registration declarative.
  5. Zod for input validation — Every tool parameter is a Zod schema. No hand-written validation.
  6. Annotations are mandatory — Every tool declares readOnlyHint, destructiveHint, and openWorldHint.
  7. Error boundaries at tool layer — Canvas client throws; tools catch and return structured MCP content.
  8. No destructive writes — Canvas enforces permissions server-side. The MCP server never bypasses Canvas authorization.

Read the full file on GitHub · 85 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 85 lines · 0 tokens per session scan A 94b7b07bfc9d

Subscribe to this mod's changes

architect is an agent published in the GitHub repository bruchris/canvas-lms-mcp (4 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 938 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

php-developer

Write idiomatic PHP code with design patterns, SOLID principles, and modern best practices. Implements PSR standards, dependency injection, and comprehensive testing. Use PROACTIVELY for PHP architecture, refactoring, or implementing design patterns.

davepoon/buildwithclaude · 51 tokens

java-pro

Master modern Java with streams, concurrency, and JVM optimization. Handles Spring Boot, reactive programming, and enterprise patterns. Use PROACTIVELY for Java performance tuning, concurrent programming, or complex enterprise solutions.

echoVic/blade-code · 44 tokens

php-expert

Use when: composer.json present WITHOUT an artisan file. Do NOT use for: Laravel apps (composer.json + artisan → laravel-expert), frontend (framework experts).

fusengine/agents · 38 tokens

laravel-developer

Use this agent to implement features end-to-end in Laravel apps — models, migrations, Actions, services, Livewire/Flux components, policies, and the accompanying Pest tests. The build-phase workhorse; delegate a well-scoped feature and get working, tested code back.

nasrulhazim/claude · 60 tokens

fastapi-pro

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

NOMARJ/sigil · 57 tokens

elixir-pro

Write idiomatic Elixir code with OTP patterns, supervision trees, and Phoenix LiveView. Masters concurrency, fault tolerance, and distributed systems. Use PROACTIVELY for Elixir refactoring, OTP design, or complex BEAM optimizations.

NOMARJ/sigil · 53 tokens