brightspace-mcp-server
AGENTS.md71 starsChanged 10 months agoMITView on GitHub
For people and AI agents changing this repository. CLAUDE.md imports this file, so every agent reads the same rules. Installing the server for someone instead? That is LLMs.md. The server lets an AI app read a student's Brightspace courses. It signs in through a headless Playwright browser, so sign-in is what users run into most and what breaks most often. Find the area you are changing. Read its doc first, and update that doc in the same PR. New to…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- course-summarySkill
- download-courseSkill
- grade-checkSkill
- sign-in-helpSkill
- study-planSkill
- weekly-briefingSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Every fact has one home. Everywhere else links to it.
- Distinctive: line 40
One home: Do not paste a fact into a second file.
- Distinctive: line 43
A doc that misled you is a bug: If you wrote something wrong because a doc or an example pointed you there, fix that doc or example in the …
- Very specific: line 57
Commit subjects are conventional commits: feat:, fix:, docs:, test:, ci:, chore:.
- Very specific: line 58
No AI attribution anywhere: no Co-Authored-By trailers and no "Generated with" lines in commits, PR text, code comments or docs.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Brightspace MCP Server: rules for contributors
For people and AI agents changing this repository. CLAUDE.md imports this file, so every agent reads the same rules. Installing the server for someone instead? That is LLMs.md.
The server lets an AI app read a student's Brightspace courses. It signs in through a headless Playwright browser, so sign-in is what users run into most and what breaks most often.
Read before you change
Find the area you are changing. Read its doc first, and update that doc in the same PR.
| You are changing | Read first | Also update when a user would notice |
Sign-in: src/auth/, src/auth-cli.ts, sign-in text in src/tools/tool-helpers.ts | docs/internals/sign-in.md | docs/sign-in.md, docs/troubleshooting.md |
Downloads and course sync: src/sync/, src/utils/download-helpers.ts, src/utils/sensitive-paths.ts | docs/internals/downloads.md | README "Download a whole course" |
A tool's arguments or output: src/tools/ | docs/reference/tools.md, STABILITY.md | README tool list, for a new tool |
A command or flag: src/index.ts, src/setup/, src/doctor.ts, src/repair.ts | docs/reference/cli.md | LLMs.md, for anything the install steps use |
A setting, a saved file or an environment variable: src/utils/config.ts | docs/reference/settings.md | .env.example; README "Settings you might want" |
A school preset: src/setup/presets.ts | Adding a school | the school tables in README.md and LLMs.md |
The shared server: src/runtime-relay.ts, src/shared-runtime.ts, src/http-server.ts | docs/internals/architecture.md | docs/shared-server.md |
CI, versions, publishing: .github/workflows/ | docs/internals/releasing.md |
New to the code? Start with docs/internals/architecture.md.
Where each fact lives
Every fact has one home. Everywhere else links to it.
| Doc | Reader | Holds |
README.md | a student | what it does, install, schools, things to ask, common settings |
LLMs.md | an agent installing it for a student | the install steps, and nothing else |
docs/sign-in.md, docs/troubleshooting.md, docs/shared-server.md, docs/dev-mode.md | a student with a question or a problem | how to use it and how to fix it |
docs/reference/ | anyone who needs the exact behaviour | every tool, command and setting |
docs/internals/ | someone changing the code | how it works and why it is that way |
STABILITY.md | someone building on the server | what will not break |
CHANGELOG.md | anyone asking "did this change?" | what changed in each version |
How to keep the docs true
- One home. Do not paste a fact into a second file. Link to its home.
- Write the reason next to the rule. When the code does something because of a failure someone hit, add a
**Why:**line with the issue or PR number, and the date for anything seen on a live school. The next person must be able to tell a deliberate rule from an accident. - Delete what stopped being true in the same PR. History goes in
CHANGELOG.md, not in "previously" notes. - A doc that misled you is a bug. If you wrote something wrong because a doc or an example pointed you there, fix that doc or example in the same PR. Fix the cause, not only your change.
LLMs.mdand this file stay short. Both are read in full every time, so both have a word limit that CI enforces. Detail goes indocs/.
Changing behaviour
- Additive only for everything in STABILITY.md: tool names, response fields, flags, settings, files on disk. Add a field; never rename, remove or repurpose one.
- "Could not read it" is never "there is none." A request that failed, or a sign-in still in progress, must not come back as an empty list or a zero. Keep the response shape callers already get and add a field that says what is unknown, plus a notice.
- A running agent sees only tool descriptions and tool answers. It never reads these docs. Guidance an agent needs while using the server (relay this number, call again now) belongs in the tool text, mainly
src/tools/tool-helpers.ts.
Every PR
npm run buildandnpm run test:runpass.- Docs updated as above, or the PR says the change is not user-visible.
- A change that ships to users (anything under
src/,README.mdorpackage.json) bumpsversioninpackage.json,package-lock.jsonandserver.json, and adds a line under that version inCHANGELOG.md. See docs/internals/releasing.md. - Commit subjects are conventional commits:
feat:,fix:,docs:,test:,ci:,chore:. - No AI attribution anywhere: no
Co-Authored-Bytrailers and no "Generated with" lines in commits, PR text, code comments or docs. - Browser tests are opt-in behind
BRIGHTSPACE_TEST_BROWSER=1. CI installs withnpm ci --ignore-scriptsand has no Chromium, so nothing in the default suite may need one.
What CI checks for you
tests/docs/ runs in npm run test:run. It fails, and names what to fix, when:
- a relative link or
#anchorin a tracked Markdown file points at nothing; - a doc names a
src/ortests/path that does not exist; LLMs.mdorAGENTS.mdgrows past its word limit;CHANGELOG.mdhas no entry for the version inpackage.json;- an
AuthFailureKindis missing fromdocs/sign-in.mdanddocs/troubleshooting.md; - a
D2L_*variable the code reads is missing fromdocs/reference/settings.md, or from the docs a user reads; - a school preset is missing from
README.mdorLLMs.md, or a tool is missing fromREADME.mdordocs/reference/tools.md.
These check names and links, not wording. Whether the text is right is still a review job.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

