Skip to main content
Glama
auuduu

dsh-timem-memory

by auuduu

dsh-timem-memory

TiMEM 長期記憶のための DeepSeek Harness(DSH)プラグイン。 1 つの cordis エントリで 2 つのことを行います:

  1. MCP ブリッジ —— @deepseek-ai/dsh-mcp-client を介して TiMEM クラウド MCP (https://api.timem.cloud/mcp)に接続し、17 個のツールを mcp__timem__* という名前でモデルに登録 (記憶 4 個、ルール 8 個、ナレッジベース 4 個、ready 1 個);

  2. 記憶スキル —— 5 個の組み込みスキルを DSH スキルシステム(ランタイムレイヤー、rank 250)に登録し、 モデルが自動的に「毎ターンまず記憶を検索 → 作業 → 記憶を書き込む」というワークフローを実行できるようにします。ユーザーが S0–S6 の階層を理解する必要はありません。

認証情報は ctx.credentials で解析します(TiMEM_API_KEY / TiMEM_USER_ID)。設定ファイルにキーをハードコードすることはありません。認証情報が変更されると、イベントがトリガーされて MCP ブリッジが自動的に再マウントされ、再起動は不要です。

インストール

前提条件:DSH がインストールされており、pnpm が PATH に存在すること(dsh plugin が依存)。

# 1. 把插件装进目标 profile(任意名字,web / headless / 自定义皆可)
#    GitHub 渠道(当前即可用):
dsh plugin --profile web add git+https://github.com/auuduu/dsh-timem-memory.git
#    npm 官方商店渠道(发布后):
# dsh plugin --profile web add dsh-timem-memory

# 2. 在 <DSH_HOME>/profiles/web/cordis.patch.yml 中插入一条目(保存即热生效)
- insert:
    - id: timem-memory
      name: 'dsh-timem-memory'

初心者向けの原理説明(パッケージとは何か、インストール先、DSH がどのように「起動」するか): docs/principles.ja.md(※原文は docs/principles.zh.md、日本語版は必要に応じて作成)

Related MCP server: r3 (Recall)

認証情報の設定

認証情報は認証情報ストア(~/.dsh/.credentials.yaml、パーミッション 0600、DSH ウェブ画面の認証情報ページで管理可能)か、環境変数 / ~/.dsh/.env(起動時に読み込み)に保存します。.credentials.yaml の例:

DEEPSEEK_API_KEY: sk-…
TiMEM_API_KEY: sk-…          # https://console.timem.cloud/settings/api-key
TiMEM_USER_ID: usr_…         # TiMEM 控制台个人资料页

書き込み後、プラグインは自動的に MCP ブリッジを再マウントします(DSH の再起動は不要)。TiMEM の認証情報がない場合、プラグインはブリッジをスキップしてエラーログを記録するだけですが、スキルは登録されます。

設定項目

フィールド

デフォルト値

説明

serverName

timem

MCP 名前空間。モデルに表示されるツール名は mcp__<serverName>__<tool>

url

https://api.timem.cloud/mcp

TiMEM クラウド MCP エンドポイント

apiKeyRef

TiMEM_API_KEY

ctx.credentials 内の API Key 参照名

userIdRef

TiMEM_USER_ID

ctx.credentials 内の User ID 参照名

enableSkills

true

組み込みスキルを登録するかどうか

skillNames

5 個の組み込みスキル

登録するスキルのリスト

toolCallTimeoutMs

60000

MCP クライアントにそのまま渡す

failOnStartupError

false

MCP クライアントにそのまま渡す

reconnect.*

クライアントデフォルト

MCP クライアントにそのまま渡す

検証

再起動 / ホットリロード後、会話の中で「TiMEM 接続できた?」とモデルに尋ねると、mcp__timem__ready を呼び出して 17 個のツールが利用可能であることを確認します。または、設定 → プラグインページで timem-memory エントリのステータスを確認できます。

動作原理

  • lib/index.js:cordis プラグイン本体(inject: ['credentials', 'skills'])。 アクティブ化時:① 認証情報を解析 → ctx.plugin(mcpClient, …) で MCP ブリッジをマウント; ② パッケージ内の skills/*/SKILL.md を読み込み → ctx.skills.register() で登録(コンテキストに応じて自動破棄)。

  • skills/:5 個のスキルパッケージ(TiMEM 公式スキルの DSH 対応版、ツール名は mcp__timem__* に書き換え、可用性チェックと S3/S0/S6 階層を内蔵)。

  • 認証情報のホットアップデート:credentials/updated イベントをリッスンし、apiKeyRef / userIdRef に一致する場合、古いブリッジを解放し、新しい認証情報で再マウントします。

ライセンス

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    A fully self-hosted MCP server that integrates the Mem0 framework to provide persistent memory capabilities for AI assistants using local models and vector storage. It enables users to store, search, and manage contextual information across conversations through a Docker-based deployment.
    3
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    An intelligent memory MCP server that provides AI applications with semantic search, entity extraction, and knowledge graph capabilities using local Redis caching and optional cloud sync. It enables LLMs to store and retrieve long-term context across sessions with high-performance multi-tier storage.
    12
    11
    2
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server providing persistent memory and context for AI tools, including semantic memory, knowledge graph, and session history to avoid starting from scratch in every conversation.
    34
    14
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    MCP server that provides AI agents with persistent memory, cross-agent sharing, and context management, enabling them to remember conversations, track complex tasks, and evolve skills across tools.
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • Cloud-hosted MCP server for durable AI memory

  • Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.

  • Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/auuduu/dsh-timem-memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server