经 AI Skill Hub 精选评估,Pensyve智能体内存运行时 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.8 分,适合有一定技术背景的用户使用。
Pensyve智能体内存运行时 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
Pensyve智能体内存运行时 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/major7apps/pensyve
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"pensyve--------": {
"command": "npx",
"args": ["-y", "pensyve"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Pensyve智能体内存运行时 执行以下任务... Claude: [自动调用 Pensyve智能体内存运行时 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"pensyve________": {
"command": "npx",
"args": ["-y", "pensyve"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
uv sync --extra dev
uv run maturin develop --release -m pensyve-python/Cargo.toml
pip install pensyve # Python (PyPI)
npm install pensyve # TypeScript (npm)
go get github.com/major7apps/pensyve/pensyve-go@latest # Go
Or use the MCP server directly with Claude Code, Cursor, or any MCP client — see MCP Setup.
When the consumer of recalled memories is another LLM (the dominant "memory for an AI agent" pattern), recall_grouped() returns memories already clustered by source session and ordered chronologically — ready to format as session blocks in a reader prompt.
```python import pensyve
p = pensyve.Pensyve() groups = p.recall_grouped("How many projects have I led this year?", limit=50)
<details> <summary>Prerequisites and build steps</summary>
git clone https://github.com/major7apps/pensyve.git && cd pensyve
uv sync --extra dev
uv run maturin develop --release -m pensyve-python/Cargo.toml
uv run python -c "import pensyve; print(pensyve.__version__)"
</details>
```bash
make build # Compile Rust + build PyO3 module
make test # Run all tests (Rust + Python)
make lint # clippy + ruff + pyright
make format # cargo fmt + ruff format
make check # lint + test (CI gate)
To run test suites individually:
cargo test --workspace # Rust tests
uv run maturin develop --release -m pensyve-python/Cargo.toml # Build PyO3 module first
uv run pytest tests/python/ -v # Python tests
cd pensyve-ts && bun test # TypeScript tests
cd pensyve-go && go test ./... # Go tests
pip install pensyve
Pensyve uses the following environment variables across its components:
| Variable | Default | Description |
|---|---|---|
PENSYVE_TIER2_ENABLED | false | Enable Tier 2 LLM extraction |
PENSYVE_TIER2_MODEL_PATH | _(none)_ | Path to GGUF model file |
PENSYVE_OTEL_ENDPOINT | _(none)_ | OpenTelemetry collector URL |
p.remember(entity=user, fact="Prefers dark mode and vim keybindings", confidence=0.95)
Pensyve exposes its core engine through multiple interfaces — use whichever fits your stack.
Direct in-process access via PyO3. Zero network overhead.
```python import pensyve
p = pensyve.Pensyve(namespace="my-agent") entity = p.entity("user", kind="user")
Rust/Axum gateway serving REST + MCP with auth, rate limiting, and usage metering.
cargo build --release --bin pensyve-mcp-gateway
./target/release/pensyve-mcp-gateway # listens on 0.0.0.0:3000
```bash
HTTP client with timeout, retry, and structured errors.
import { Pensyve } from "pensyve";
const p = new Pensyve({
baseUrl: "http://localhost:3000",
timeoutMs: 10000,
retries: 2,
});
await p.remember({ entity: "seth", fact: "Likes TypeScript", confidence: 0.9 });
const memories = await p.recall("programming", { entity: "seth" });
// Session-grouped recall — feed an LLM reader without rebuilding session blocks.
const { groups } = await p.recallGrouped("how many projects did I lead?", {
limit: 50,
order: "chronological",
});
for (const g of groups) {
console.log(`### Session ${g.sessionId} (${g.sessionTime})`);
for (const m of g.memories) console.log(` ${m.content}`);
}
Context-aware HTTP client with structured errors.
import pensyve "github.com/major7apps/pensyve/pensyve-go"
client := pensyve.NewClient(pensyve.Config{BaseURL: "http://localhost:3000"})
ctx := context.Background()
client.Remember(ctx, "seth", "Likes Go", 0.9)
memories, _ := client.Recall(ctx, "programming", nil)
| Variable | Default | Description |
|---|---|---|
PENSYVE_API_KEYS | _(empty)_ | Comma-separated valid API keys (standalone mode) |
PENSYVE_VALIDATION_URL | _(none)_ | Remote endpoint for API key validation |
PENSYVE_RATE_LIMIT | 300 | Max requests per minute per API key |
HOST | 0.0.0.0 | Server bind address |
PORT | 3000 | Server bind port |
cd pensyve-ts && bun test # TypeScript (38 tests)
cd pensyve-go && go test ./... # Go (17 tests)
cd pensyve-wasm && cargo check # WASM (standalone)
groups = p.recall_grouped("programming language", limit=50)
Full cognitive memory layer for Claude Code with 7 commands, 4 skills, 2 agents, and 6 lifecycle hooks.
Install from the marketplace:
/plugin marketplace add major7apps/pensyve
/plugin install pensyve@major7apps-pensyve
/reload-plugins
The plugin does not bundle an MCP server config — auth method and backend are user choices. Add an mcpServers.pensyve entry to your ~/.claude/settings.json (user-level) or .claude/settings.json (project-level). Pick one:
Pensyve Cloud — API key (recommended):
export PENSYVE_API_KEY="psy_your_key_here"
{
"mcpServers": {
"pensyve": {
"type": "http",
"url": "https://mcp.pensyve.com/mcp",
"headers": {
"Authorization": "Bearer ${PENSYVE_API_KEY}"
}
}
}
}
Pensyve Cloud — OAuth (browser sign-in):
{
"mcpServers": {
"pensyve": {
"type": "http",
"url": "https://mcp.pensyve.com/mcp"
}
}
}
Pensyve Local (self-hosted, no API key):
Build the MCP binary first (see Install), then:
{
"mcpServers": {
"pensyve": {
"command": "pensyve-mcp",
"args": ["--stdio"]
}
}
}
Note: UseheaderswithAuthorization: Bearerfor remote MCP (HTTP transport). Use the top-levelenvblock (Claude Code MCP schema) for local stdio servers that read environment variables at startup.
Plugin contents:
├── 7 slash commands /remember, /recall, /forget, /inspect, /consolidate, /memory-status, /using-pensyve
├── 4 skills session-memory, memory-informed-refactor, context-loader, memory-review
├── 2 agents memory-curator (background), context-researcher (on-demand)
└── 6 hooks SessionStart, Stop, PreCompact, UserPromptSubmit, PostToolUse (Write/Edit, Bash)
See integrations/claude-code/README.md for full documentation.
curl -X POST http://localhost:3000/v1/recall_grouped \ -H "Content-Type: application/json" \ -d '{"query": "How many books did I buy?", "limit": 50, "order": "chronological"}' ```
Endpoints: GET /v1/health, POST /v1/recall, POST /v1/recall_grouped, POST /v1/remember, POST /v1/entities, DELETE /v1/entities/{name}, POST /v1/inspect, GET /v1/stats, PATCH /v1/memories/{id}, DELETE /v1/memories/{id}
uv run python -c "import pensyve; print(pensyve.version)" ```
Note: ThepensyvePython package is a native Rust extension built with PyO3. You must runuv run maturin developbeforepytestor any Python import ofpensyve, otherwise you will getModuleNotFoundError: No module named 'pensyve'.
Pensyve填补了AI代理内存管理空白,Rust实现保证性能。MCP集成设计符合行业标准,具有较强的扩展性和可靠性。
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
AI Skill Hub 点评:Pensyve智能体内存运行时 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | pensyve |
| 原始描述 | 开源MCP工具:Universal memory runtime for AI agents。⭐29 · Rust |
| Topics | MCP协议智能体内存Rust实现Anthropic支持 |
| GitHub | https://github.com/major7apps/pensyve |
| License | NOASSERTION |
| 语言 | Rust |
收录时间:2026-05-21 · 更新时间:2026-05-22 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端