Repository navigation
Conversation
aikhanjum
marked this pull request as ready for review
November 20, 2026 04:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Students can currently use Princeton course tools through PI chat. This adds a remote MCP connector so they can research courses and plan semesters from their existing Claude account, with Princeton CAS sign-in and explicit consent.
The connector exposes 24 read tools from TigerJunction, PrincetonCourses, and TigerPath. A separate, unchecked permission enables 5 saved-plan operations. Students can revoke their connections from PI. The assistant handles model usage under its own account limits. The connector does not import memories or register students for courses.
Implementation
/mcp, OAuth discovery, PKCE authorization, token refresh, and revocation using Cloudflare's OAuth provider.app/COURSE_CONNECTOR.md.Validation
npm run typecheckpassed.npm testpassed all 72 tests. New coverage exercises actual MCP transports and OAuth handlers in workerd with local KV and a mocked engine, including consent, PKCE, refresh, identity isolation, write permissions, revocation ownership, and session cleanup.npm run buildandgit diff --checkpassed. The deployment dry run passed during implementation.Before rollout
OAUTH_KVnamespace and confirm that the engine requires its service credential before trusting identity headers and enforces ownership of schedule IDs.This PR is based directly on
mainand does not depend on the earlier planner/demo PR stack. No production deployment or real plan changes have been made.