npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@shin1ohno/sage

v1.0.3

Published

AI Task Management Assistant MCP Server for Claude Desktop and Claude Code

Readme

sage (賢者)

AI Task Management Assistant - MCP Server for Claude Desktop, Claude Code, and Remote clients.

npm version License: MIT

Overview

sage is an intelligent task management assistant that helps you:

  • Analyze tasks - Automatically assign priorities (P0-P3), estimate time, and extract stakeholders
  • Split complex tasks - Break down large tasks into actionable subtasks
  • Smart routing - Route tasks to Apple Reminders (≤7 days) or Notion (8+ days)
  • Calendar awareness - Find available time slots based on your schedule

sage is an MCP (Model Context Protocol) server that supports HTTP Transport for both local and remote connections.

Quick Start

For Claude Desktop / Claude Code (Local MCP)

# Claude Code - one command setup
claude mcp add sage -- npx -y @shin1ohno/sage

For Claude Desktop, see Local MCP Setup Guide.

For iOS / iPadOS / Web (Remote MCP)

See Remote MCP Setup Guide.

Documentation

| Document | Description | |----------|-------------| | Local MCP Setup | Step-by-step guide for Claude Desktop/Code | | Remote MCP Setup | Step-by-step guide for iOS/iPadOS/Web | | Configuration Guide | Detailed configuration options | | Architecture | System design and components | | Troubleshooting | Common issues and solutions |

Features

Task Analysis

Analyze text input (emails, meeting notes, etc.) and get structured task information:

User: analyze_tasks with input: "田中さんからの依頼: 明日までに報告書を提出。来週の会議資料も準備してください。"

sage:
  Task 1: 報告書を提出
  - Priority: P0 (due tomorrow)
  - Estimated: 50 minutes
  - Stakeholder: 田中さん

  Task 2: 会議資料を準備
  - Priority: P2 (due next week)
  - Estimated: 90 minutes

OAuth Token Persistence

sage now includes persistent OAuth token storage for Remote MCP server:

  • Automatic token persistence: OAuth refresh tokens, client registrations, and user sessions are automatically saved and restored across server restarts
  • Encrypted storage: All tokens are encrypted using AES-256-GCM before being stored on disk
  • Secure key management: Encryption keys can be provided via SAGE_ENCRYPTION_KEY environment variable or auto-generated at ~/.sage/oauth_encryption_key
  • No re-authentication needed: Users no longer need to re-authenticate after server restarts

Storage Location: All OAuth data is stored in ~/.sage/ directory:

  • oauth_refresh_tokens.enc - Encrypted refresh tokens
  • oauth_clients.enc - Encrypted client registrations
  • oauth_sessions.enc - Encrypted user sessions
  • oauth_encryption_key - Encryption key (auto-generated if not provided)

Setup: To use a custom encryption key (recommended for production), set the environment variable:

export SAGE_ENCRYPTION_KEY="your-secure-random-key-at-least-32-characters"
npx @shin1ohno/sage --remote

If no key is provided, sage will automatically generate one and store it securely with 600 file permissions.

Google Calendar Integration

sage now supports multiple calendar sources:

  • macOS: Use EventKit, Google Calendar, or both simultaneously
  • Linux/Windows: Use Google Calendar as your primary calendar source
  • Automatic fallback: If one source fails, sage automatically uses the other
  • Event deduplication: Intelligent merging prevents duplicate events

Supported Event Types: sage supports all Google Calendar event types:

  • default - Standard meetings and events
  • outOfOffice - Vacation and out-of-office blocks with auto-decline
  • focusTime - Focus time blocks with Google Chat status integration
  • workingLocation - Remote work, office, or custom location (all-day)
  • birthday - Birthday and anniversary events (all-day, yearly recurring)
  • fromGmail - Auto-generated events from Gmail (read-only, cannot be created)

Setup: See Configuration Guide for Google OAuth setup instructions.

Remote Server Google OAuth Setup

When running sage as a remote MCP server (e.g., on a VPS or cloud instance), you can use Google Calendar by setting up a Web Application OAuth client:

1. Create OAuth Client in Google Cloud Console

  1. Go to Google Cloud Console
  2. Navigate to "APIs & Services" → "Credentials" → "Create Credentials" → "OAuth client ID"
  3. Application type: Web application
  4. Authorized redirect URIs:
    • Local development: http://localhost:3000/oauth/callback
    • Production server: https://mcp.example.com/oauth/google/callback

2. Configure Environment Variables

export GOOGLE_CLIENT_ID="your-client-id.apps.googleusercontent.com"
export GOOGLE_CLIENT_SECRET="your-client-secret"
export GOOGLE_REDIRECT_URI="https://mcp.example.com/oauth/google/callback"

3. Authenticate

From Claude, run the authenticate_google tool:

  1. The tool returns an authorization URL
  2. Open the URL in your browser
  3. Complete Google authentication
  4. The server receives the callback automatically
  5. A success page is displayed - close the window and return to Claude

Troubleshooting

| Issue | Solution | |-------|----------| | redirect_uri_mismatch | Ensure the redirect URI in Google Cloud Console exactly matches GOOGLE_REDIRECT_URI | | Session expired | Complete authentication within 10 minutes | | 503 from callback | Verify GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET are set |

Smart Reminder Routing

Tasks are automatically routed to the appropriate system:

| Deadline | Destination | Reason | |----------|-------------|--------| | ≤ 7 days | Apple Reminders | Short-term, actionable | | 8+ days | Notion | Long-term planning | | No deadline | Notion | Assumed infinite future, long-term planning |

Platform Support

| クライアント | サーバー | Apple Reminders | Calendar | Notion | |--------------|----------|----------------|----------|--------| | Claude Desktop/Code | macOS (直接) | AppleScript | EventKit + Google Calendar | MCP | | Claude Desktop/Code | Linux/Windows (直接) | - | Google Calendar | MCP | | Claude iOS/iPadOS | macOS (Remote MCP) | AppleScript | EventKit + Google Calendar | MCP | | Claude iOS/iPadOS | Linux/Windows (Remote MCP) | - | Google Calendar | MCP | | Claude Web | macOS (Remote MCP) | AppleScript | EventKit + Google Calendar | MCP | | Claude Web | Linux/Windows (Remote MCP) | - | Google Calendar | MCP |

Apple Reminders requires macOS (AppleScript). Calendar support is available on all platforms via Google Calendar, with optional EventKit integration on macOS.

Tools

Setup & Configuration

| Tool | Description | |------|-------------| | check_setup_status | Check if sage is configured | | start_setup_wizard | Start interactive setup | | save_config | Save configuration | | update_config | Update configuration |

Task Management

| Tool | Description | |------|-------------| | analyze_tasks | Analyze tasks for priority, time, stakeholders | | set_reminder | Create a reminder | | list_todos | List all tasks from all sources | | update_task_status | Update task status | | find_available_slots | Find free time in calendar | | sync_to_notion | Sync task to Notion |

Requirements

  • Node.js >= 18.0.0
  • Notion MCP server (任意、Notion 統合用)

Platform-Specific Requirements

  • macOS: Full feature support (Apple Reminders, EventKit, Google Calendar)
  • Linux/Windows: Calendar features via Google Calendar API (Apple Reminders not available)

注意: Apple Reminders 機能を使用する場合は macOS が必要です。Google Calendar のみを使用する場合は、Linux/Windows でも動作します。

Development

# Clone repository
git clone https://github.com/shin1ohno/sage.git
cd sage

# Install dependencies
npm install

# Run in development mode
npm run dev

# Run tests
npm test

# Build
npm run build

License

MIT - see LICENSE for details.