dsh-plugin-google: DSH Native Plugin for Google Calendar and Tasks

Preface

The design philosophy of DeepSeek Harness (DSH) is “Everything is a Plugin.” Existing solutions for Google Calendar and Tasks integration typically require Python or Node.js middleware, sidecar MCP servers, or involve complex OAuth credential management. dsh-plugin-google is a native plugin designed to resolve this, connecting Google Calendar and Google Tasks directly to DSH, allowing daily management through conversation.

Core Capabilities

The plugin focuses on high-frequency scenarios and possesses the following core features:

  1. Conversational CRUD: Perform Create, Read, Update, and Delete operations on events, calendars, todos, and task lists directly via natural language.
  2. Event & Task Management: Supports creating, modifying, moving, and deleting events, as well as CRUD operations on task lists and tasks.
  3. Intelligent Querying: Supports free/busy checks (multi-calendar conflict detection) and daily schedule summaries (including pending todos, overdue tasks, and time conflicts).
  4. Natural Language Parsing: Supports parsing time and intent, such as creating events by directly inputting a time or modifying an existing time.
  5. Zero Dependencies & Native OAuth: Relies on no Python or Node runtime, built-in OAuth 2.0 desktop authorization flow, requiring no additional token storage setup.

Installation

Install using the DSH plugin manager:

dsh plugin --profile <profile> add dsh-plugin-google

Upon installation, the package’s bundled cordis.patch.yml will automatically insert a plugin configuration with id: google into your profile.

Authorization & Configuration

Credentials and tokens are stored by default in the $DSH_HOME directory; no additional configuration files are required:

  • $DSH_HOME/google-oauth-client.json: OAuth client credentials downloaded from Google Cloud.
  • $DSH_HOME/google-oauth-token.json: Access token automatically written by the plugin after authorization.

Mainland China Network Configuration:
Google APIs are generally not directly accessible and require a proxy configuration. You can explicitly specify this in the plugin configuration or allow the DSH process to inherit the HTTPS_PROXY environment variable.

Important Note:
If the OAuth application in Google Cloud is in “Testing” publishing status, refresh tokens will expire after 7 days. It is recommended to change the application publishing status to “Production” in the Google Cloud Console.

Typical Usage

Once installed and authorized, you can invoke tools directly through conversation:

  • Query Schedule: Say “What are my plans today?” or “What are my pending todos?”, and the plugin will return a summary of your calendar and todos.
  • Create Event: Say “From 3 PM to 4 PM tomorrow, project review with Mr. Zhang, add a Tencent Meeting link,” and the plugin will automatically parse the time and create the event.
  • Modify Event: Say “Move next Wednesday’s dentist appointment to Friday at 10 AM.”
  • Schedule Meeting: Say “Help me schedule a 1-hour meeting for next Monday morning when both parties are free,” and the plugin will check free slots and create the meeting.

Notes

  • Permission Scopes: By default, it requests .../auth/calendar (full read/write for calendars and events) and .../auth/tasks permissions. These scopes can be replaced with narrower ones in the configuration.
  • Authorization Flow: On first use, you need to trigger google_auth_status, google_auth_begin (to get the link), browser confirmation, and google_auth_complete (to finish authorization) in sequence within the conversation.

Conclusion

dsh-plugin-google provides a complete solution for integrating Google productivity tools, reducing environment setup complexity through DSH’s native capabilities. The relevant directories and source code can be accessed at: SkillHub Directory or GitHub.

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

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

Xiaoye