T1

t1nker-1220/memories-with-lessons-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

52 stars 12 forks 品質 69 トレンド 0MIT

t1nker-1220/memories-with-lessons-mcp-serverは[https://github.com/t1nker-1220/memories-with-lessons-mcp-server.からインポートされたMCPサーバー候補です

概要

t1nker-1220/memories-with-lessons-mcp-serverは[https://github.com/t1nker-1220/memories-with-lessons-mcp-server.からインポートされたMCPサーバー候補です

概要(AI 翻訳)

ローカルナレッジグラフを用いた持続的なメモリの基本的な実装。 これにより、Claudeはチャット全体でユーザーの情報を記憶し、過去のエラーからレッスンシステムから学習することができます。

コアコンセプト

##エントリー Entities はナレッジグラフのプライマリノードです。 各組織には以下のものがあります。

  • ユニークな名前(識別子)
  • 実体型(例えば、「人」、「組織化」、「発明」)
  • 観測の一覧

例:

##関係 関係は、エンティティティティ間の直接接続を定義します。 それらは常にアクティブな音声に保存され、エンティティティが相互にやり取りするか、または関連づける方法を記述しています。

例:

観測

観察は、実体に関する情報を分離しています。 それらは:

  • 文字列として保存
  • 特定の団体に Attached
  • 独立して追加または削除することができます
  • 原子(観察ごとの1つの事実)であるべき

例:

##レッスン レッスンは、エラーやソリューションについての知識をキャプチャする特別なエンティティティティです。 各レッスンには以下のものがあります。

  • ユニークな名前(識別子)
  • エラーパターン情報(タイプ、メッセージ、コンテキスト)
  • ソリューションの手順と検証
  • 成功率追跡
  • 環境のコンテキスト
  • メタデータ(重度、タイムスタンプ、周波数)

例:

API の

ツール

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Knowledge Graph Memory Server

A basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats and learn from past errors through a lesson system.

Core Concepts

Entities

Entities are the primary nodes in the knowledge graph. Each entity has:

  • A unique name (identifier)
  • An entity type (e.g., “person”, “organization”, “event”)
  • A list of observations

Example:

{
  "name": "John_Smith",
  "entityType": "person",
  "observations": ["Speaks fluent Spanish"]
}

Relations

Relations define directed connections between entities. They are always stored in active voice and describe how entities interact or relate to each other.

Example:

{
  "from": "John_Smith",
  "to": "Anthropic",
  "relationType": "works_at"
}

Observations

Observations are discrete pieces of information about an entity. They are:

  • Stored as strings
  • Attached to specific entities
  • Can be added or removed independently
  • Should be atomic (one fact per observation)

Example:

{
  "entityName": "John_Smith",
  "observations": [
    "Speaks fluent Spanish",
    "Graduated in 2019",
    "Prefers morning meetings"
  ]
}

Lessons

Lessons are special entities that capture knowledge about errors and their solutions. Each lesson has:

  • A unique name (identifier)
  • Error pattern information (type, message, context)
  • Solution steps and verification
  • Success rate tracking
  • Environmental context
  • Metadata (severity, timestamps, frequency)

Example:

{
  "name": "NPM_VERSION_MISMATCH_01",
  "entityType": "lesson",
  "observations": [
    "Error occurs when using incompatible package versions",
    "Affects Windows environments specifically",
    "Resolution requires version pinning"
  ],
  "errorPattern": {
    "type": "dependency",
    "message": "Cannot find package @shadcn/ui",
    "context": "package installation"
  },
  "metadata": {
    "severity": "high",
    "environment": {
      "os": "windows",
      "nodeVersion": "18.x"
    },
    "createdAt": "2025-02-13T13:21:58.523Z",
    "updatedAt": "2025-02-13T13:22:21.336Z",
    "frequency": 1,
    "successRate": 1.0
  },
  "verificationSteps": [
    {
      "command": "pnpm add shadcn@latest",
      "expectedOutput": "Successfully installed shadcn",
      "successIndicators": ["added shadcn"]
    }
  ]
}

API

Tools

  • create_entities
    • Create multiple new entities in the knowledge graph
    • Input: entities (array of objects)
      • Each object contains:
        • name (string): Entity identifier
GitHub で README 全文を見る

インストール

docker run -i -v claude-memory:/app/dist --rm mcp/memory
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "memory": { "command": "docker", "args": ["run", "-i", "-v", "claude-memory:/app/dist", "--rm", "mcp/memory"] } } }