MemGPT Sample
@gm2552
MemGPT Sample について
A simple, abridged MemGPT agent written in Spring Boot. Includes a running as a REST API or MCP server. Also includes a simple ChatBot App to interact with the agent.
基本情報
設定
ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is MemGPT Sample?
MemGPT Sample is a proof-of-concept implementation of the MemGPT research paper that provides an agent with self-editing memory management. It is designed for developers who want to integrate hierarchical memory (core memory, archival memory, and message summarization) into chat applications via REST or MCP protocols.
How to use MemGPT Sample?
Set the OPENAI_API_KEY environment variable, build the desired server application with Gradle, and run the JAR. Then configure and launch the simple-chat-bot-app command-line client, choosing one of four modes: rest, mcp, restadvisor, or mdcadvisor via the spring.profiles.active setting.
Key features of MemGPT Sample
- Implements MemGPT’s core memory, archival memory, and self-editing context window.
- Exposes agent functionality as both a REST service and an MCP server.
- Provides a command-line chat application that can use either transport.
- Supports tool calling, message compilation, and LLM communication.
- Configurable archival memory using a vector store (pgvector profile).
- Built with Spring Boot and Spring AI; requires Java 17+, Gradle, and an OpenAI API key.
Use cases of MemGPT Sample
- Integrate MemGPT-like memory management into existing chat applications.
- Prototype conversational agents that retain long-term context across sessions.
- Compare REST and MCP transports for agent-based chat systems.
- Evaluate different memory delegation modes (full agent vs. memory‑only advisor).
FAQ from MemGPT Sample
What does the MemGPT Sample agent manage?
It manages system prompts, tools, core memory, archival memory, message persistence (including messages outside the context window), and performs automatic context window editing.
How do I enable archival memory?
By default archival memory is disabled. Activate it by enabling the pgvector Spring profile. If using OpenAI embeddings and PostgreSQL, no extra configuration is needed.
What runtime dependencies are required?
Java 17 or later, Gradle, and an OpenAI API key. For archival memory, a PostgreSQL instance with the pgvector extension may be required.
Can the chatbot communicate over MCP instead of REST?
Yes. Set the profile to mcp or mdcadvisor in simple-chat-bot-app/src/main/resources/application.yaml to use MCP as the transport.
What are the two memory delegation modes?
The advisor profiles (restadvisor or mdcadvisor) let the chatbot create chat completions directly with the LLM while using the MemGPT server only for memory management; the standard profiles delegate both memory and completion to the server.
「AI とエージェント」の他のコンテンツ
MCP-NixOS - Because Your AI Assistant Shouldn't Hallucinate About Packages
utensilsMCP-NixOS - Model Context Protocol Server for NixOS resources
Solon Ai
opensolonJava AI application development framework (supports LLM-tool,skill; RAG; MCP; Agent-ReAct,Team-Agent). Compatible with java8 ~ java25. It can also be embedded in SpringBoot, jFinal, Vert.x, Quarkus, and other frameworks.
MCP Client for Ollama (ollmcp)
joniglHarness the power of local LLMs with this TUI MCP Client for Ollama. Featuring all core MCP primitives (tools, prompts, resources), agent mode, multi-server, model switching, streaming responses, human-in-the-loop, thinking mode, model params config, system prompts, and saved pre
1Panel
1Panel-dev🔥 1Panel is a modern, open-source VPS control panel — and the only one with native AI agent support. Run Ollama models, deploy OpenClaw agents, and manage your entire server stack from one clean web interface.
MCP Server - Remote MacOs Use
baryhuangThe only general AI agent that does NOT requires extra API key, giving you full control on your local and remote MacOs from Claude Desktop App
コメント