Skip to main content
Glama

portflow-docent-mcp

Onofficiële, alleen-lezen MCP-server voor docenten die met Drieam Portflow en Canvas werken. Je bekijkt wat studenten hebben ingeleverd (Canvas-opdracht → Portflow-snapshot of -portfolio), haalt bestanden lokaal binnen en laat Claude een conceptoordeel opstellen langs de rubric. Dat oordeel wordt alleen als Markdown-bestand op je eigen computer opgeslagen.

Niet verbonden aan Drieam, Instructure of Fontys. Gebruikt Portflows interne API, die zonder aankondiging kan veranderen. Gebaseerd op portflow-mcp van christianchill (MIT).

Wat hij wel en niet doet

Wel

Niet

Canvas: je cursussen, opdrachten, rubric, inleveringen (met Portflow-links)

Cijfers of feedback in Canvas zetten

Portflow: collecties, evidence, doelen en feedback van portfolio's waar je toegang toe hebt

Iets in Portflow aanmaken, wijzigen of verwijderen

Bestanden van evidence downloaden naar je beoordelingsmap

Lokale bestanden uploaden

Conceptoordelen opslaan; een oudere versie blijft altijd bewaard

Buiten de beoordelingsmap schrijven

De server stuurt alleen GET-requests naar Portflow en Canvas. Dat controleert de test ook. De enige uitzondering is het optionele automatisch inloggen (zie hieronder), dat het LTI-loginformulier nabootst.

Related MCP server: canvas-session-mcp

Installatie (macOS)

cd ~/pad/naar/portflow-docent-mcp
npm install
npm link            # maakt de commando's portflow-docent-mcp en portflow-docent-token beschikbaar
npm test            # optioneel: test alle tools tegen een lokale nep-Portflow en nep-Canvas

Vereist Node.js 18 of nieuwer.

Configuratie

Alles via omgevingsvariabelen in de MCP-config. De standaardwaarden gaan uit van Fontys ICT.

Variabele

Standaard

Betekenis

CANVAS_BASE_URL

https://fontysict.instructure.com

Jouw Canvas-omgeving

PORTFLOW_BASE_URL

https://portfolio.drieam.app

Portflow-host (controleer in DevTools)

PORTFLOW_REVIEW_DIR

~/Portflow-beoordelingen

De enige map waarin de server schrijft

PORTFLOW_PSEUDONYMIZE

uit

true: studenten heten student-<canvas-id> in plaats van hun naam

PORTFLOW_MAX_OUTPUT_CHARS

120000

Maximale lengte van een tool-antwoord; zet lager (bv. 12000) voor lokale modellen met een klein contextvenster

PORTFLOW_AUTO_LOGIN

uit

true: Portflow-token automatisch vernieuwen via je Canvas-token (zie risico's)

PORTFLOW_LTI_TOOL_PATH

/accounts/1/external_tools/23360?launch_type=global_navigation

Alleen voor automatisch inloggen: het pad in de adresbalk als je in Canvas op Portfolio klikt

Tokens instellen (in Terminal, nooit in de chat)

  1. Canvas-token (nodig voor inleveringen en rubrics): Canvas → Account → Instellingen → Nieuw toegangstoken. Kies een korte vervaldatum. Kopieer het token en voer dit uit:

    portflow-docent-token canvas
  2. Portflow-token (8 uur geldig): open in Chrome Canvas → Portfolio, open DevTools → Network, filter op api/v1, rechtsklik een request → Copy as cURL. Voer dan dit uit:

    portflow-docent-token
  3. Controleren: portflow-docent-token status

Tokens staan in ~/.portflow-docent-token en ~/.portflow-docent-canvas-token (rechten 600) en het klembord wordt gewist. Opruimen doe je met portflow-docent-token clear all.

Koppelen aan Claude

Claude Code:

claude mcp add portflow-docent --scope user -- node /VOLLEDIG/PAD/portflow-docent-mcp/server.js

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "portflow-docent": {
      "command": "/opt/homebrew/bin/node",
      "args": ["/VOLLEDIG/PAD/portflow-docent-mcp/server.js"],
      "env": {
        "CANVAS_BASE_URL": "https://fontysict.instructure.com",
        "PORTFLOW_REVIEW_DIR": "/Users/pascal/Portflow-beoordelingen",
        "PORTFLOW_PSEUDONYMIZE": "true"
      }
    }
  }
}

Gebruik het volledige pad naar node (which node).

Koppelen aan AnythingLLM (Desktop, v1.8.0 of nieuwer)

Voeg dezelfde mcpServers-entry toe aan ~/Library/Application Support/anythingllm-desktop/storage/plugins/anythingllm_mcp_servers.json, zet de server aan onder Agent Skills → MCP Servers, en roep hem in een workspace aan met @agent. Voeg voor een lokaal model "PORTFLOW_MAX_OUTPUT_CHARS": "12000" toe aan env.

Werkwijze

Bijvoorbeeld: "Beoordeel de inleveringen voor opdracht 'Portfolio eind' in cursus Cyber Security S3. Maak per student een conceptoordeel langs de rubric en noem bij elk criterium op welke evidence je je baseert."

Claude doorloopt dan:

  1. list_my_courses → list_assignments → get_assignment_rubric

  2. list_submissions → per student een student_label en portflow_links

  3. get_submitted_portfolio (met frozen_portfolio_id) of resolve_portflow_link → de ingeleverde snapshot

  4. get_collection / get_evidence → de inhoud

  5. download_evidence_file → bijlagen in <map>/<opdracht>/<student>/bestanden/

  6. save_assessment_draft → <map>/<opdracht>/<student>/oordeel.md

Het oordeel is een concept. Jij leest het na, past het aan en zet het cijfer zelf in Canvas.

Ingeleverde snapshots ("frozen portfolios")

Een ingeleverd portfolio is in Portflow een frozen portfolio. In SpeedGrader haalt Portflow /api/v1/frozen-portfolios/<id> op en leest daarna met de gewone portfolio-endpoints, met datzelfde id. Zie API-NOTES.md.

  • get_submitted_portfolio haalt het overzicht op en geeft een portfolio_id terug voor de andere tools.

  • Het id komt idealiter uit list_submissions → frozen_portfolio_id. Is dat leeg, open dan de inlevering in SpeedGrader met DevTools (Network, filter drieam) en zoek de request frozen-portfolios/<id>.

  • Token: kopieer het Portflow-token bij voorkeur uit een request in SpeedGrader (bijvoorbeeld frozen-portfolios/<id>), niet uit de gewone Portfolio-pagina. Het is nog niet getest of een gewoon token ook bij de snapshots van studenten kan.

Risico's en afspraken

  • AVG: met deze server gaan portfolio's van studenten (persoonsgegevens) naar een AI-dienst. Stem dat af met je instelling (privacy officer of FG) voordat je hem met echte studentdata gebruikt. Zet in elk geval PORTFLOW_PSEUDONYMIZE=true, maar besef dat de inhoud van portfolio's zelf ook namen kan bevatten.

  • Portflow-AUP: Drieam verbiedt het gebruik van Portflow om AI te "trainen of te voeden", en ook onredelijk veel of herhaalde API-aanroepen. Vraag Drieam of dit gebruik is toegestaan.

  • Canvas-token: met een docenttoken kan alles wat jij in Canvas kunt. Geef het een korte vervaldatum. Laat PORTFLOW_AUTO_LOGIN uit tenzij je het echt nodig hebt: dan wordt het token omgezet in een volledige Canvas-websessie.

  • Interne API: kan na een Portflow-update ongemerkt breken.

Licentie

MIT. Zie LICENSE (met naamsvermelding van het oorspronkelijke project).

Available Tools

18 tools
download_evidence_fileA

Download a file attached to an evidence version into the local review folder (//bestanden/), so you can open it yourself. file_id comes from get_evidence → latest_version.files[].id.

Inputs: file_id (required), student (required), assignment (required), portfolio_id (required), +1 more.

get_assignment_rubricA
Read-only

Assignment description and its Canvas rubric (criteria, ratings, points). Use this as the assessment framework when drafting an oordeel.

Inputs: course_id (required), assignment_id (required).

get_collectionA
Read-only

Full view of one collection: description, goals with their evidence, evidence not in a goal, and feedback.

Inputs: portfolio_id (required), collection_id (required).

get_evidenceA
Read-only

Full view of one evidence item: details, latest version (with file ids), version history, goals, collections and feedback.

Inputs: evidence_id (required), portfolio_id (required).

get_submitted_portfolioA
Read-only

Overview of a submitted portfolio snapshot (Portflow 'frozen portfolio'): its metadata plus sections and collections. The returned portfolio_id works with list_collections, get_collection, list_evidence, get_evidence and list_goals. Get the id from list_submissions → frozen_portfolio_id, from resolve_portflow_link, or from DevTools in SpeedGrader (request /api/v1/frozen-portfolios/).

Inputs: frozen_portfolio_id (required).

list_assignmentsC
Read-only

Assignments in a Canvas course (id, name, due date, submission types, whether a rubric is attached).

Inputs: course_id (required), search.

list_collectionsA
Read-only

Collections in a portfolio, grouped by section. portfolio_id = the student's portfolio (from a link or portflow_get).

Inputs: portfolio_id (required).

list_evidenceC
Read-only

Evidence items in a portfolio, newest first.

Inputs: portfolio_id (required), page, per_page.

list_goalsC
Read-only

Goals and goal sets (learning outcomes) in a portfolio, plus progress reviews.

Inputs: portfolio_id (required).

list_my_coursesC
Read-only

Canvas courses where you are a teacher.

Inputs: no named parameters.

list_review_folderB
Read-only

List the files in the local review folder (all assignments, or one).

Inputs: assignment.

list_submissionsB
Read-only

Submissions for a Canvas assignment, with any Portflow links (submitted snapshots) extracted. Returns a student_label per submission: use that label for download_evidence_file and save_assessment_draft.

Inputs: course_id (required), assignment_id (required), only_submitted.

portflow_getA
Read-only

Read-only GET on any Portflow API path under /api/v1 (for endpoints this server has no dedicated tool for, e.g. snapshots or portfolios shared with you). Example path: /portfolios/123/shares?page=1. Set all_pages to follow pagination.

Inputs: path (required), all_pages.

read_assessment_draftB
Read-only

Read the current draft assessment for a student.

Inputs: student (required), assignment (required).

save_assessment_draftA

Save a DRAFT assessment (oordeel) as a Markdown file in the local review folder: //oordeel.md. An existing draft is kept as oordeel-.md, never overwritten. Nothing is sent to Canvas or Portflow. Structure it along the rubric criteria (get_assignment_rubric), cite the evidence you based each judgement on, and mark anything the teacher still has to verify. The teacher decides the final grade.

Inputs: student (required), markdown (required), assignment (required), user_id, +3 more.

token_statusB
Read-only

Check the Portflow and Canvas login, and show where local review files are stored.

Inputs: no named parameters.

whoamiA
Read-only

Your own Portflow user profile (to confirm you are logged in as the teacher).

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 18 tools

    Disambiguation3/5

    Most tools target a clear resource+action (list_assignments, get_evidence, save_assessment_draft), but three tools overlap on fetching portfolio data: get_submitted_portfolio, resolve_portflow_link (explicitly 'EXPERIMENTAL') and portflow_get all aim at the same goal via different paths. token_status and whoami also both answer 'am I logged in?', which invites misselection.

    Naming Consistency4/5

    The dominant pattern is verb_noun snake_case (list_collections, get_evidence, download_evidence_file, save_assessment_draft), applied consistently across most of the surface. Deviations are minor: whoami and token_status are not verb_noun, and portflow_get inverts the convention (namespace_verb instead of get_portflow).

    Tool Count3/5

    At 18 tools the set is on the heavy side for a single review workflow, and a few slots are arguably redundant (resolve_portflow_link as an experimental fallback alongside the generic portflow_get). The core read/write pipeline does justify most of the count, so it is borderline rather than bloated.

    Completeness4/5

    The surface covers the full teacher workflow end to end: auth check, course/assignment/rubric discovery, submissions, portfolio and evidence traversal, file download, and draft assessment read/write plus folder listing. Gaps are minor—no delete/cleanup of drafts, no edit-in-place beyond re-save, and no way to push feedback back, though that appears intentionally out of scope.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to automatically pull Canvas LMS course materials into Obsidian, syncing files, assignments, grades, and announcements organized by course and module.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Connects Claude, Cursor, Codex and other AI assistants to Canvas LMS through a normal browser sign-in (SSO and MFA included) instead of an access token, letting them read courses, assignments, rubrics, announcements, discussions, grades, calendar and inbox, and read or save course files locally. It is strictly read-only, sending only GET requests, and keeps all session data on the user's own machine.
      4
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Lets AI assistants read a student's Canvas LMS courses, modules, deadlines, announcements and course files through the Canvas REST API, using university single sign-on with MFA instead of an API token, and download lecture slides into per-course folders. All access is read-only and works with any Canvas site, defaulting to Oxford.
      9
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables querying Canvas LMS courses, assignments, deadlines, announcements, modules, files, pages, discussions, grades, and calendar events through a personal API token, plus a locally computed grade-progress dashboard. All Canvas access is read-only, with only local state ever written.
      MIT