一键导入
pieces-mcp
Connect ArgentOS to Pieces long-term memory via MCP. Query past activity, create durable memories, and search across devices using PiecesOS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Connect ArgentOS to Pieces long-term memory via MCP. Query past activity, create durable memories, and search across devices using PiecesOS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | pieces-mcp |
| description | Connect ArgentOS to Pieces long-term memory via MCP. Query past activity, create durable memories, and search across devices using PiecesOS. |
| metadata | {"argent":{"emoji":"🧩","homepage":"https://pieces.app","requires":{"bins":["curl","npm"]},"install":[{"id":"mcp-remote","kind":"npm-global","package":"mcp-remote@0.1.38","bins":["mcp-remote"],"label":"Install mcp-remote (MCP bridge)"}]}} |
Connect ArgentOS to Pieces long-term memory via MCP. Pieces captures ambient context (browser, clipboard, meetings, code) across devices. This skill teaches you how to wire it into ArgentOS so you can query that memory and create durable summaries.
Trigger when:
Three components:
gateway.mcp.servers config./mcp endpoint and exposes it locally as a stdio MCP server.Important: This integration is MCP-only. Always use
/mcp, never/sse.
Ask the human to confirm:
"Make sure PiecesOS is installed and running on your machine (or remote machine), and that Long-Term Memory (LTM) is enabled in the Pieces Desktop App."
The human needs to expose PiecesOS's MCP server via HTTPS:
For ngrok:
"On the machine running PiecesOS, run:
ngrok http 39300Paste the HTTPS forwarding URL here (e.g.,
https://abc123.ngrok-free.dev)."
For custom tunnels: Any HTTPS URL that forwards to localhost:39300 works.
Construct the MCP URL:
MCP_URL = <tunnel_url>/model_context_protocol/2025-03-26/mcp
Quick sanity check:
curl -i "<MCP_URL>"
Expected: HTTP 400 with "mcp-session-id header or sessionId query parameter is required". This means the server is alive and ready.
If you get 404, 502, or timeout — the tunnel is down. Ask the human to check PiecesOS and the tunnel.
Add the Pieces MCP server to ~/.argentos/argent.json under gateway.mcp.servers:
{
"gateway": {
"mcp": {
"servers": {
"pieces": {
"command": "mcp-remote",
"args": ["<MCP_URL>"]
}
}
}
}
}
Example with ngrok:
{
"gateway": {
"mcp": {
"servers": {
"pieces": {
"command": "mcp-remote",
"args": ["https://abc123.ngrok-free.dev/model_context_protocol/2025-03-26/mcp"]
}
}
}
}
}
npm install -g mcp-remote@0.1.38
argent gateway restart
The Pieces MCP tools are now available to all agent sessions.
Once connected, three Pieces tools become available:
Query long-term memory with a natural language question:
{
"name": "ask_pieces_ltm",
"arguments": {
"question": "What did I work on today?",
"chat_llm": "gpt-4"
}
}
Returns summaries[] and events[] as structured JSON. Parse this and synthesize a natural language answer for the human.
Use for:
When you answer, attribute it:
"According to your Pieces long-term memory, ..."
Write a durable memory:
{
"name": "create_pieces_memory",
"arguments": {
"summary_description": "Profile: Jason — MSP Owner",
"summary": "# Profile: Jason\n\n## Role\nMSP owner, AI developer\n\n## Current Focus\nArgentOS development",
"project": "ArgentOS"
}
}
Use for:
Search tools (names vary by PiecesOS version) provide keyword-based search across all captured context.
ngrok may have restarted)~/.argentos/argent.json has the gateway.mcp.servers.pieces entrymcp-remote is installed: mcp-remote --helpgrep pieces /tmp/argent/argent-*.logNarrow the query:
This is normal. Pieces returns structured JSON with summaries[] and events[]. You (the agent) parse it and synthesize a natural language answer. The raw JSON is not an error.
If MCPorter/mcp-remote isn't working, test the MCP server directly:
Create init.json:
{
"jsonrpc": "2.0",
"method": "initialize",
"params": {
"protocolVersion": "0.1.0",
"capabilities": {},
"clientInfo": { "name": "argentos-agent", "version": "1.0" }
},
"id": "1"
}
curl -i -X POST "<MCP_URL>" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "mcp-session-id: init-001" \
--data-binary @init.json
Extract the mcp-session-id from the response headers (13-digit timestamp like 1774202062499). Use that for all subsequent requests.
Common mistakes: Use
--data-binary @file.json(not inline-d), use string IDs ("id": "1"not"id": 1), always include bothContent-TypeandAcceptheaders.
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes). Use when a user asks ArgentOS to add a note, list notes, search notes, or manage note folders.
Manage Apple Reminders via the `remindctl` CLI on macOS (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
Create, search, and manage Bear notes via grizzly CLI.
X/Twitter CLI for reading, searching, posting, and engagement via cookies.
Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
BluOS CLI (blu) for discovery, playback, grouping, and volume.