Skip to content

Releases

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 05 Dec 12:19

Changelog

0.2.1 — 2026-12-05

Changed

  • Product renamed to Westlake Knowledge MCP (brand: Westlake Knowledge). The
    GitHub repository (westlake-drawer/mcp), npm package (westlake-drawer-mcp),
    server key (westlake-drawer), and MCP Registry name
    (io.github.westlake-drawer/mcp) are unchanged — existing setups keep working.

Added

  • One-click install for Claude Desktop: a .mcpb bundle (MCP Bundle spec 0.3)
    is built by npm run mcpb and attached to GitHub Releases. Users double-click
    the file and hit Install — no Node.js, no JSON editing. The bundle carries a
    self-contained server build and an offline data snapshot, and is smoke-tested
    during the build.
  • setup command: npx -y westlake-drawer-mcp setup auto-registers the
    server into detected clients (Claude Desktop, Claude Code, Codex, OpenCode).
    Every modified file is backed up (*.bak-wdkmcp), other entries are never
    touched, existing entries are skipped unless --force is given, and
    --dry-run previews everything. On Windows the cmd-wrapper form is written
    automatically. Undetected clients get a manual-paste JSON in the report.
  • Detailed installation guides for every supported client (Claude Desktop,
    Claude Code, Codex, OpenCode, Zcode, DeepSeek/DSH, Workbuddy, generic MCP
    clients), with Windows cmd-wrapper instructions: docs/installation.md /
    docs/installation_zh.md.
  • Bilingual README cross-links (English ↔ 简体中文).

Fixed

  • Security: HTTP mode now refuses to bind a non-loopback address
    (e.g. --host 0.0.0.0) without --token; an unauthenticated endpoint can no
    longer be exposed beyond the local machine by accident.

0.2.0 — 2026-12-05

First standalone release. The MCP server moves out of the
westlake-drawer/westlake-drawer.github.io site repository into its own
package: westlake-drawer-mcp.

Added

  • Standalone npm package with npx -y westlake-drawer-mcp entry point and
    westlake-drawer-mcp bin.
  • Data source layer: remote fetch from the Westlake Drawer mirror
    (westlake-drawer.betasdc.duckdns.org) with local cache, ETag/304
    revalidation, stale-while-revalidate, offline mode (WD_OFFLINE,
    WD_DATA_DIR), and a bundled snapshot as last-resort fallback.
  • Schema validation for both data files after every load.
  • Optional stateless Streamable HTTP mode (--http) with optional bearer
    token.
  • doctor command: prints effective configuration and probes the data source.
  • MCP resources (westlake-drawer://catalog, westlake-drawer://paths) and
    prompts (find_resources, plan_learning).
  • refresh_cache tool for forcing a data refresh.
  • Server instructions + per-tool descriptions and titles.
  • Offline test suite (30 tests): search ranking, catalog fallbacks, in-memory
    MCP client↔server integration, HTTP transport.
  • GitHub Actions CI (Node 18/20/24) and a release workflow skeleton.

Fixed

  • Streamable HTTP mode works on Node 18 (the SDK's HTTP transport needs
    globalThis.crypto, which Node 18 does not expose; a webcrypto polyfill is
    installed when missing).

Changed

  • Search quality: field-weighted scoring (title > course > subject >
    description > repo/path), whole-word > substring > prefix tiers, CJK
    character-bigram matching for Chinese queries, AND semantics with OR
    fallback, optional subject/course/kind filters, locale-aware descriptions,
    and a score field on results. The original scored every field equally with
    plain substring matching.
  • get_learning_path matches on English and Chinese keywords, boosts full
    title matches, and resolves step titles from the index (as before).
  • Protocol layer now uses the official TypeScript SDK (@modelcontextprotocol/sdk)
    instead of a hand-rolled JSON-RPC loop, with proper capability negotiation,
    resources, and prompts.
  • Tool results keep the original tool names and argument compatibility
    (search_resources, get_learning_path, get_resource, list_majors),
    adding only optional filter parameters.

Removed

  • The need to clone the whole site repository: data now comes from the origin
    (cache + bundled snapshot make it work offline too).

Full Changelog: https://github.com/westlake-drawer/mcp/commits/v0.2.1