Skip to content

feat(mcp): add list_grades - #19

Merged
bunizao merged 2 commits into
mainfrom
feat/grades-mcp
Nov 3, 2026
Merged

bunizao merged 2 commits into
mainfrom
feat/grades-mcp

Conversation

@bunizao

@bunizao bunizao commented Nov 3, 2026

Copy link
Copy Markdown
Owner

edstem grades shipped in 0.8.3 as CLI-only. This adds the matching MCP tool, list_grades, so agents on any of the three servers (local stdio, Docker, Worker) can answer "what did I get for assignment 1".

  • Input: courseId (ID, code, or part of the name) and optional queries, the same lesson/module-name words mark_lessons_read takes.
  • Output: the same rows as edstem grades via projectGrade, so Ed's name, email and other students' ids never reach the client.
  • Annotations: read-only.
  • The catalog description, server instructions and generated SKILL.md mention it.

The test covers the wiring against raw Ed responses: a graded and an unsubmitted lesson, content lessons skipped, no identifying fields in the result, and no requests for lessons that were never submitted. The grade logic itself is already covered in operations.test.ts.

npm run check, npm run test:node (331), Bun remote/worker tests (32) and npm run build pass. Also checked against a live account over stdio: same rows as the CLI.

Expose the grades listing from 0.8.3 to MCP clients. list_grades takes a
courseId and optional lesson-name words, like mark_lessons_read, and
returns the same allowlisted rows as edstem grades. The local, Docker and
Worker servers all get it through the shared server.
Copilot AI balanced review requested due to automatic review settings November 3, 2026 01:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T01:33:23.779958Z abe16f9 PR opened
🔒 Security Review ✅ Completed 2026-11-03T01:35:29.074646Z abe16f9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: abe16f9789

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/mcp/server.ts Resolved
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
edstem-mcp 41c81eb Commit Preview URL

Branch Preview URL
Nov 03 2026, 01:39 AM

@bunizao
bunizao merged commit 42a269e into main Nov 3, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants