dsh-plugin-google-classroom: Read-Only Access to Google Classroom in DSH

Introduction

When building agents with web connectivity in DeepSeek Harness (DSH), course schedules, assignment deadlines, and rosters are often still looked up in Google Classroom web pages or standalone scripts. If the model cannot directly call structured APIs, it has to rely on user narration or copy-paste, which is slow and prone to missing cross-course summaries (e.g., “what’s due this week”).

Below is the community plugin dsh-plugin-google-classroom (npm package name dsh-google-classroom): it mounts google-classroom-mcp into DSH as an MCP tool, allowing the model to make read-only queries about courses, assignments, announcements, rosters, and submission statuses via mcp__google-classroom__*. The plugin itself contains no Host/Client code; it merely inserts a @deepseek-ai/dsh-mcp-client configuration via cordis.patch.yml.

What Is This

DSH’s ecosystem philosophy is “everything is a plugin”; directories like SkillHub are maintained by the community and have no official affiliation with DeepSeek / HF Trading. This plugin is a configuration-only bundle: package.json declares dsh.bundle.patch, the patch writes an MCP client line into Cordis, and at runtime it fetches and starts the google-classroom-mcp service on demand via uvx.

Core Features

All tools exposed to the model are read-only, under the namespace mcp__google-classroom__*:

Tool Returns
list_courses Courses you teach or are enrolled in
get_course Details of a single course (including description, join code)
list_coursework Assignments, quizzes, questions, and materials (including due dates)
list_due_soon Assignments about to be due across all active courses
list_announcements Recent announcements within courses
list_teachers / list_students Rosters (names, emails)
list_submissions Submission status and grades for an assignment

Prerequisites

Before enabling the plugin, complete Google OAuth and a one-time login (follow steps 1–3 of google-classroom-mcp — Setup):

  1. Create an OAuth Desktop client for the Classroom API in Google Cloud and save it as ~/.google-classroom-mcp/client_secret.json.
  2. Install uv (which provides uvx), available from astral.sh/uv, or via pip install uv. The bundle uses uvx to run the server on demand, so no separate pip install of the MCP package is needed.
  3. Perform a one-time login:
uvx --from git+https://github.com/praisethefacts/google-classroom-mcp@v0.1.0 google-classroom-mcp-auth

Credentials and tokens are stored in ~/.google-classroom-mcp/. When DSH starts stdio subprocesses it scrubs environment variables whose names resemble credentials (KEY, PASSWORD, SECRET, TOKEN), so this bundle depends on the token files above rather than environment variable injection.

Installation and Activation

Open Plugins in the DSH sidebar, fill in one of the following specs, and click Enable now:

  • github:praisethefacts/dsh-plugin-google-classroom
  • or the absolute path to this repository directory (if you already have a local copy)

Or run in the terminal (replace <profile> with your profile name, e.g., web or desktop):

dsh plugin --profile <profile> add github:praisethefacts/dsh-plugin-google-classroom

The default patch runs via uvx:

uvx --from git+https://github.com/praisethefacts/google-classroom-mcp@v0.1.0 google-classroom-mcp

If you have already installed or cloned the MCP server locally, you can edit cordis.patch.yml before installation to change command / args, for example:

- insert:
    - id: mcp-google-classroom
      name: '@deepseek-ai/dsh-mcp-client'
      config:
        serverName: google-classroom
        transport: stdio
        command: google-classroom-mcp

Typical Usage and Verification

After installation and completing the Prerequisites, you can directly ask the model: What do I have due this week?, or have the model call mcp__google-classroom__list_courses.

The first tool call may be slow (uvx needs to download the server and dependencies); subsequent calls are usually much faster.

If every call returns No valid Google credentials found..., it means the one-time sign-in has not been completed—go back to the Prerequisites. If Google API errors are scope-related, it means the OAuth consent screen did not authorize the Classroom read-only scope: delete ~/.google-classroom-mcp/token.json and sign in again.

Use Cases and Notes

Suitable for: Developers or teachers/students who manage or learn in Google Classroom and want to summarize due assignments, check announcements, or rosters within DSH conversations; scenarios where the model needs to read Classroom in a structured way inside the Harness rather than manually exporting CSVs.

Notes:

  • The plugin runs with the permissions of the current DSH process user, and the MCP subprocess also reads ~/.google-classroom-mcp/ in that environment. Before installing, you should read the repository source code and LICENSE to confirm the read-only scope and data egress policy meet your organization’s requirements.
  • The capability boundary is the read-only tools listed in the README; write operations are not in scope for this bundle.
  • OAuth, Classroom API quotas, and consent screen configuration are your responsibility on the Google Cloud side.

Conclusion

dsh-plugin-google-classroom packages Google Classroom read-only queries into an MCP toolset inside DSH, with lightweight configuration and on-demand server fetching via uvx. After completing OAuth and google-classroom-mcp-auth, you can look up courses, due dates, and submission statuses right in your conversations.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye