/people-context:people-contextfrom People Context
Installs, configures, and uses the people-context MCP server for managing people records, aliases, relationships, and knowledge capture via stdio or HTTP.
Ships in People Context. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Any work with the people-context MCP server: install/upgrade, client connection, people/aliases/affiliations/relationships/facts/interactions/reminders — or querying records.
For agent-facing usage patterns see skills/people-context-usage/, skills/remember/, skills/reminders/. This skill covers install, transport, session wiring, and raw tool call patterns only.
Pick the first route that works and stay on it for the whole session:
Native MCP tools. If people-context tools are already listed in your client, call them directly.
Their schemas are in context: do not re-list tools, read server source, or restart the connection to
rediscover them.
The installed CLI. Otherwise use pctx, which opens the same store with no bridge:
| Task | Command |
|---|---|
| Add an alias | pctx add-alias "Mei Tanaka" Mimi --kind nickname |
| Fix or drop a wrong alias | pctx update-alias "Mei Tanaka" mimi --kind nickname · pctx remove-alias "Mei Tanaka" [email protected] |
| One direct statement | pctx remember "Dana" "prefers short emails" |
| Staged import | pctx import stage-candidates --source <label> --input candidates.json --json → pctx import review <batch> --json → pctx import commit <batch> --accept 1-7 --json (or --all) |
Raw HTTP. Only when neither exists; see the appendix.
Every route keeps the same safeguards: resolve before writing, surface ambiguity, and commit extracted material only after the user accepts it. Report a compact receipt — changed ids, statuses, unresolved items, errors — rather than the full response, and read one representation of each result, never both the text and the structured copy.
uv tool install people-context # latest PyPI release
uv tool install --force \
"git+https://github.com/JinyangWang27/people-context.git@<tag>"
Zero-install: uvx --from people-context people-context-mcp (stdio) or add --http --host 127.0.0.1 --port 8765.
pctx setuppctx setup claude-desktop # writes/merges stdio entry into Claude Desktop config
pctx setup cursor # same for Cursor
pctx setup windsurf # same for Windsurf
pctx setup vscode # uses "servers" key with "type": "stdio"
pctx setup claude-code # drives: claude mcp add
pctx setup codex # drives: codex mcp add
Backs up existing config, writes atomically, refuses symlinks and invalid JSON. --dry-run to preview.
pctx init offers pctx setup at a TTY on first run.
stdio (default/preferred). JSON-RPC on stdin/stdout; pctx setup wires this. No port/firewall concern.
HTTP (opt-in). --http --host 127.0.0.1 --port 8765. Unauthenticated — interactive sessions only.
Wait for Application startup complete in the log before any tool call.
Examples from here on write call(name, args) for one tool call, whichever route makes it.
Write tools require person_id (ULID), never a name. Branch on ambiguous:
r = call("resolve_person", {"query": "Alice Ng", "hints": {"org": "Acme"}})
if not r.get("ambiguous") and r.get("candidates"):
c = r["candidates"][0]
if not c.get("match_reason", "").startswith("fuzzy"): # fuzzy = treat as ambiguous
pid = c["person_id"]
When ambiguous=true or match_reason starts with "fuzzy": surface candidates, confirm — never guess.
remember — single-call capture (new in M21)Resolves, optionally creates, and records one statement in one audited transaction. Use for direct statements in conversation. Not for extracted/inferred material from transcripts — use staged capture.
call("remember", {"person": "Alice Ng", "note": "prefers short emails", "org": "Acme", "role": "CTO"})
call("remember", {"person": "Bob", "kind": "affiliation", "org": "Etihad", "role": "Fleet Manager"})
call("remember", {"person": "Jiaxin", "relationship": "spouse"})
Check status — nothing is written when status ≠ recorded:
status | Meaning |
|---|---|
recorded | r["recorded"] lists {kind, id, summary} |
ambiguous | Several close candidates — r["candidates"] |
unconfirmed | One fuzzy-only match — confirm before retrying |
no_self | Relationship needs a self record (none exists) |
nothing_to_record | Bare name, no note/org/relationship |
invalid_request | Structural mismatch — checked before any write |
kind: auto classifies note by a fixed keyword table. org and relationship record their own rows
whatever kind says. All rows share one transaction_id; any failure rolls back everything.
call("remember_person", {"name": "Jinyang Wang", "is_self": True, "summary": "PhD physicist, AI engineer."})
# Do NOT fold affiliations/facts into summary. Do NOT pass aliases here.
add_alias — kind is a lowercase enum published in the tool schema; an unlisted value ("OTHER") is refused, not recorded:
kind values: native_script (CJK; add "script":"Hans"/"Hant") · transliteration · nickname · handle · former_name · other
An email address is an alias only with kind: "handle"; any other kind is refused. A wrong alias is fixed with update_alias (any of new_value, kind, lang, script) or dropped with remove_alias; both name the alias by value. Never forget or merge_people to fix a name.
call("set_relationship", {"subject_id": pid_a, "object_id": pid_b, "type": "spouse"})
call(
"set_affiliation",
{
"person_id": pid,
"org": "Etihad Airways", # "org", NOT "org_name"
"role": "Employee",
"valid_from": "2026-09-01",
},
)
call(
"record_education",
{
"person_id": pid,
"institution": "University of Edinburgh",
"degree": "MSc", # the level; one call per degree
"field_of_study": "Cognitive Science",
"valid_from": "2022-09-01",
"valid_to": "2024-06-30",
},
)
An affiliation is employment. A school or degree goes in record_education, never set_affiliation, and
never as a previous_experience/education fact: structured rows answer "who studied at X" and keep dates
queryable. One call per job or degree, not one summary of a whole CV.
person name shortcut on read toolsget_person_context, get_communication_guidance, list_reminders, get_relationship_graph,
get_person_timeline, get_consolidation_context, and upcoming_dates accept person (name string)
alongside person_id. Saves the resolve round-trip when the name is unambiguous.
On error, returns a structured payload (not an exception):
{"error": "ambiguous_person"|"unconfirmed_person"|"person_not_found"|"missing_person", "candidates": [...]}
r = call("get_person_context", {"person_id": pid, "include_communication": True})
person = r["***"] # ← "***", not "person"
# r["truncated"] == True means facts/interactions budget was hit
For extracted/inferred content from transcripts, emails, or external sources. Never auto-commit.
Put every candidate from one source in one stage_candidates call. aliases on a person is optional;
when present, entries are objects, not strings: {"value": "Al", "kind": "nickname"}. label needs source_kind.
bid = call(
"stage_candidates",
{
"source": "levey-2026-09-03",
"candidates": [
{
"type": "person",
"ref": "jiaxin",
"name": "Jiaxin",
"aliases": [{"value": "Jiaxin Wang", "kind": "other"}],
},
{
"type": "affiliation",
"person_ref": "jiaxin",
"org": "Etihad Airways",
"role": "Flight Attendant",
"valid_from": "2026-08-01",
},
],
},
)["batch_id"]
call("review_import", {"batch_id": bid}) # read-only, no approval needed
r = call("commit_import", {"batch_id": bid, "accepted_ids": [cid, ...]}) # user-approved only
The commit receipt is the verification: ids in committed_ids are stored. Read records back only for ids
in unresolved_ids or skipped_ids, or when the user asks to see them.
| Scenario | Tool |
|---|---|
| Stored value was wrong (typo, misheard) | correct_record — updates in-place |
| Stored value was right, world changed | supersede_fact — closes old row, opens replacement atomically |
supersede_fact requires effective_from within the old fact's validity window. Report the reason if refused.
The server advertises every tool by default. Started with --tools core (the Claude Code and Codex
plugins do this), it advertises only the core tools below; the rest need --tools all.
Core, read-only: resolve_person · search_people · get_person_context · get_person_timeline ·
get_communication_guidance · upcoming_dates · review_import · list_reminders
Core, write: remember · remember_person · add_alias · update_alias · remove_alias · rename_person ·
supersede_fact · correct_record · set_communication_philosophy · forget · stage_candidates ·
amend_candidate · withdraw_candidates · commit_import · set_reminder · complete_reminder
Full set only, read-only: semantic_search · get_relationship_graph · find_connection ·
explain_shared_connections · get_stale_relationships · get_consolidation_context · find_groups ·
get_group · list_group_memberships
Full set only, write: set_relationship · set_affiliation · record_education · record_fact · record_observation ·
record_trait · record_interaction · merge_people · import_content · create_group ·
add_group_membership · close_group_membership
Gated (never suggest enabling to work around a boundary): get_sensitive_person_context · export_data
| Kind | Name / URI | Purpose |
|---|---|---|
| resource | people-context://guide | Full usage skill body |
| resource | people-context://self | User's own record, or {"found": false} |
| prompt | who(name) | Resolve, then read context on confident match |
| prompt | remember(statement) | remember for direct statements; stage_candidates for extracted |
| prompt | meeting_prep(attendees) | Context + guidance per attendee; read-only |
| prompt | end_of_session_capture() | Propose via stage_candidates; never commit |
| prompt | maintenance_review(name) | Timeline + consolidation signals |
openclaw plugins install clawhub:openclaw-plugin-people-context
Connects to the opt-in loopback HTTP server (must be running; see §3).
See docs/openclaw-plugin.md in the upstream repo for config and security details.
Only when neither native tools nor pctx exist. Open one session and reuse it for every call;
call returns one representation (structuredContent, else the parsed text) — print a receipt, not
the envelope.
import urllib.request, json
BASE = "http://127.0.0.1:8765/mcp"
HEADERS = {"Content-Type": "application/json", "Accept": "application/json, text/event-stream"}
_id = 0
def _post(payload, session_id=None):
h = {**HEADERS, **({"mcp-session-id": session_id} if session_id else {})}
req = urllib.request.Request(BASE, json.dumps(payload).encode(), h, method="POST")
with urllib.request.urlopen(req) as r:
sid = r.headers.get("mcp-session-id")
for line in r.read().decode().splitlines():
if line.startswith("data:"):
return json.loads(line[5:]), sid
return None, sid
resp, S = _post(
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": {"name": "levey", "version": "1.0"},
},
}
)
_id = 1
def call(name, args):
global _id
_id += 1
r, _ = _post({"jsonrpc": "2.0", "id": _id, "method": "tools/call", "params": {"name": name, "arguments": args}}, S)
res = r["result"]
text = res.get("content", [{}])[0].get("text", "")
if res.get("isError"):
raise RuntimeError(f"{name} failed: {text}")
parsed = json.loads(text) if text else res.get("structuredContent")
if isinstance(parsed, dict) and parsed.get("error"): # servers <= 1.1.0 left isError unset
raise RuntimeError(f"{name} refused: {parsed.get('message', parsed['error'])}")
return res.get("structuredContent") or parsed
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/communication-coachHelp the user handle one real conversation with a specific person — drafting or answering a message, raising something difficult, refusing or setting a boundary, repairing a misunderstanding, asking for something, preparing for a conversation that has not happened yet, rehearsing one, or debriefing one that already has — at work, with friends, or in the family. Composes the existing people-context reads into a usable reply plus a short transferable lesson, and writes nothing unless the user asks. Not for every mention of a person: identifying someone, reading their context, or recording something about them is not a coaching request./people-context-usageUse the people-context MCP tools whenever the user mentions someone in their life, asks who a person is, prepares for a meeting or conversation, shares something worth remembering about a person, hands over a transcript, CV, or notes to capture from, or asks to review or tidy what is stored. Covers resolving identity first, context vs. guidance, and propose-review-commit capture./person-perspectiveHelp the user understand one person's documented perspective — what they prefer, how they tend to decide, what they value, and where their boundaries are — from stored records or material the user supplies, for a contact, the user themselves, or a public figure. Presents supported patterns with their sources, dates, contradictions, and unknowns, keeps the person's own statements apart from other people's reports and from inference, and writes nothing unless the user asks. Not for every mention of a person: identifying someone, drafting or rehearsing a reply to them, recording something about them, or exporting a package is a different request.npx claudepluginhub jinyangwang27/people-context --plugin people-contextOther plugins' skills for the same job