Skip to main content
Glama
agentprivacy

agentprivacy

by mitchuski

agentprivacy-mcp

The privacy guide, the 64-vertex sovereignty lattice and the City Key, exposed as MCP tools. This is the Mage's half of the Verifiable Trust Agent described in agentprivacy_master/docs/PLAN_KNOWLEDGE_GRAPH_TO_VTA_2026-09-03.md (Phase 3, read tools): every tool is a pure function over a City Key or a graph snapshot, so an agent can compose them and a human can audit the composition. Nothing here holds a secret.

Zero dependencies. Node ≥ 18. MCP over stdio.

claude mcp add agentprivacy -- node C:/Users/mitch/agentprivacy-mcp/server.mjs
node server.mjs --list          # what the bake holds + the tool roster
npm test                        # canon vectors + the scripted agent (bin/walk-demo.mjs)

What it reads

The bake, never the live farm, so a walk is reproducible (plan §7):

file

written by

carries

site/star-chart/data/pages.json

agentprivacy.guide/tools/star-chart.mjs

one row per page: vertex, postured, posture, sorted_links, element, forkedFrom, priorVertex

site/star-chart/data/sitemaps/<id>/system/sitemap.json

same

title · date · links · vertex · posture

site/star-chart/data/vpkb/

same (from ~/vpk/pathways)

the BM25 search core + per-site lexical indexes

site/<sub>/<slug>.json

tools/snapshot.mjs

the page itself

Point elsewhere with AGENTPRIVACY_GUIDE_SITE=<dir>.

Related MCP server: Member Directory

Tools

tool (plan name)

in

out

guide_search (guide.search)

query, limit?, sites?

an ordered walk: steps with site · slug · vertex · posture · PSI element · url

guide_page (guide.page)

slug, site?

text, weave (links), vertex + six bits, dims, stratum, element, copies across sites

guide_neighbours (guide.neighbours)

slug, site?

out-links and backlinks, each with the named lattice move: succ · neg · bnot · flip dim · jump ×k

lattice_move (lattice.move)

vertex, op

the resulting vertex, bits, dims, stratum, reading. op = succ · neg · bnot · flip <dim> · to <vertex>

key_derive (key.derive)

key (JSON · sigil PNG · path)

Law L5: canonical form → κ → verdict verified / mismatch / unlabelled, prior, 64 glyphs, lit + walked vertices

key_evolve (key.evolve)

key?, walk, name?

the evolved key: walks[] appended, prior chained, κ stamped, unsigned

sigil_render (sigil.render)

key, out?, size?

a PNG that carries the key (tEXt cityKey, base64 JSON) — imports on soulbis /star, /lattice, /sigil

compare_plain (compare.plain)

a, b

the ∩ in the open. Development only; hidden under VTA_MODE=1

Identity is the slug, never the host: guide_page and key_evolve take a slug and an optional site; the same page forked across sites is one reference.

The walk, as content

key_evolve appends to the City Key's additive walks field:

{ "chart": "https://guide.agentprivacy.ai/star-chart/", "name": "…",
  "steps": [ { "site": "guide", "slug": "the-private-knowledge-network", "vertex": 36,
               "element": "sha256:…" } ],            // element = sha256("<vertex>|<slug>|<sorted links>")
  "digest": "sha256:…",                              // over the canonical steps
  "moves": [ "flip connection", "jump ×2 (memory value)" ] }

It is deterministic: no timestamps, no randomness. The same key and the same walk give the same κ whoever calls, which is what lets a human's constellation on spellweb and an agent's walk on the guide evolve the same key (Phase 1). Consumers that do not know walks ignore it (the v1 extensibility clause); prior chains to the key it grew from (C87: the key accumulates).

The bit canon

d1 protection = 32 · d2 delegation = 16 · d3 memory = 8 · d4 connection = 4 · d5 computation = 2 · d6 value = 1 (game42 axisSpace, soulbis /sigil, agentprivacy_master/src/lib/lattice-vertex.ts, spellweb's vertex nodes, and agentprivacy.guide/tools/lattice.mjs all agree; test/canon.test.mjs checks this package against the game42 file when it is present).

The Swordsman ⚔️ (Rung 1) — a second process, no LLM

swordsman/swordsman.mjs holds the bearer's ed25519 seed and signs what it is handed after a fixed policy check it will not argue about. It is its own MCP server, so a prompt-injected Mage can request a bad signature and still not get one.

node swordsman/swordsman.mjs init [--seed <ceremony privateKeyHex>] [--card AgentCard.json]
node swordsman/swordsman.mjs status
claude mcp add swordsman -- node C:/Users/mitch/agentprivacy-mcp/swordsman/swordsman.mjs

Keystore ~/.agentprivacy/swordsman/ (identity.json 0600 · policy.json · ledger.jsonl). --seed imports the identity /ceremony minted, so the Swordsman IS the AgentCard that mages.city admits.

tool

does

policy it enforces

key_sign

signs a City Key evolution → the VTA record {publicKeyHex, participantId, did, kappa, prior, at, walks, vrcs, sig}

κ must re-derive (L5) · own bearer only · prior = ledger head (no history rewrites; unchanged content not re-signed) · no unbaked steps · rate limit from the ledger

vta_publish

what a VTA publishes: public key · κ · prior · VRC commitments, plus a ready proofs page item for <name>.mages.city

never the key, never the walk, never the seed

sigil_seal

writes the record into a sigil PNG as a cityKeySig chunk beside cityKey

record must verify

policy_show

the policy + ledger head

read-only; the seed is never returned

Public verification lives on the Mage side, holding nothing: key_verify (record ± key ± PNG, and the liveness predicate evolved_since(t)) and card_verify (an AgentCard as /ceremony signs it). The signed record travels beside the key, so the κ rule is unchanged everywhere.

node bin/walk-demo.mjs --sign runs the whole Phase 3 done-when across the two processes.

Not here yet

Rungs 2–5 of agentprivacy_master/docs/PLAN_CITY_KEY_CRYPTO_UPGRADE_2026-09-03.md: carrier.seal, psi.blind/unblind, proof.predicate, vrc.issue, and the two human-consent tools. Designed there; not built.

Browser game integration (in progress)

browser_action_prepare creates an exact, short-lived spell/sticker proposal for extension review. It does not dispatch or authorise a browser effect. See browser action boundary for receipt folding, durable effect idempotency and missing live adapters. The server is trusted local stdio software; filesystem-capable tools must not be exposed directly as a public network service.

VTA + Star: agent knowledge spaces (2026-09-08)

MCP task engine records this surface's responsibilities and acceptance gates. The shared design places FedWiki records, browser-carried Star state, first-contact intent, MCP Trust Tasks, VTA permission enforcement and earned Mages City names in one continuing journey. Status is explicitly partial; follow the note's source and deployment distinctions.

City invitation and experience entry

Use experience_route to select arrival, learning, key custody, casting or collaboration. city_invitation_draft prepares a private public-summary candidate in the City's visitor-event shape; publish remains false. See City entry workflow. These tools neither sign nor send messages, and an invitation does not establish membership, credentials or MyTerms agreement validity.

Complete capability overview

Begin with experience_overview: one source inventory covers the key, journey, invitation, game action, Star orb, VTA pair, agreements/tasks/VRCs, City access and core-artefact proposal. lib/experience-overview.json is the source; the City serves its current copy at /experience-overview.json. Keep this copy byte-identical when updating capability status. No status here substitutes for live service discovery.

Available Tools

10 tools
card_verifycard.verify (public)A

Verify an AgentCard as agentprivacy /ceremony signs it (ed25519 over the card payload; participantId = ap-<16 hex of the public key>). Returns participantId, did:key, displayName, trustTier, Drake Orb tier. This is the identity mages.city admits with; the board never re-issues it.

Inputs: card (required).

compare_plaincompare.plain (development only)B

The ∩ of two keys (walked + lit vertices, shared PSI elements) computed IN THE OPEN by reading both keys. Development only: Rung 3 replaces it with DH-PSI, and it is hidden when VTA_MODE=1.

Inputs: a (required), b (required).

guide_neighboursguide.neighboursD

Linked pages (outgoing and backlinks) of a page, each with the NAMED LATTICE MOVE from this page to it: succ · neg · bnot · flip · jump ×k (dimensions), per the 64-vertex sovereignty lattice.

Inputs: slug (required), site.

guide_pageguide.pageA

One page by slug (site optional — identity is the slug, never the host): its text, weave (links), lattice vertex + six-bit posture, PSI element and public URL.

Inputs: slug (required), site.

key_derivekey.deriveC

Law L5 — a κ is never trusted, only re-derived. Canonical form (keys sorted recursively, no whitespace, kappa excluded) → sha256 → compare with the stamped κ. Accepts a City Key JSON or a sigil PNG (the image carries the key). Returns verdict, derived κ, prior, the 64 glyphs, lit and walked vertices.

Inputs: key (required).

key_evolvekey.evolveA

Append a walk to a City Key — pure and deterministic. Walk = an array of {site?, slug} steps (or slugs), a pathway.v1, or a star-chart constellation. Each step is resolved against the bake to its vertex and PSI element; the evolved key gains walks[], prior = κ of the key it grew from, and a fresh κ. UNSIGNED — a Swordsman signs (Rung 1). Omit key to start from the default key.

Inputs: walk (required), key, name.

key_verifykey.verify (Rung 1, public)A

Verify a signed VTA record (kind agentprivacy.vta/1: bearer public key, κ, prior, at, walks, vrcs, ed25519 sig) — and, when the key is given, that the record names THIS key (L5: κ re-derived from the key equals the signed κ). Accepts the record as JSON or a sigil PNG carrying a cityKeySig chunk. With since, also evaluates the liveness predicate evolved_since(t). Holds no secret.

Inputs: vta (required), key, since, horizonDays.

lattice_movelattice.moveA

Apply a lattice operator to a vertex (0-63): succ (the wheel, +1 mod 64), neg (Swordsman reflection, 64−x), bnot (Mage antipode, 63−x), "flip " (one bit), or "to " (names the move). Returns the resulting vertex, its six bits (d1 protection … d6 value), dimensions, stratum, and a derived reading.

Inputs: op (required), vertex (required).

sigil_rendersigil.renderC

Draw the key's sigil — 64 glyphs, one per vertex, lit by the RE-DERIVED κ (never the stamped claim), coloured by the key's palette by stratum; lit vertices ring coral, walked vertices ring cyan — as a PNG that CARRIES the key (tEXt cityKey), importable on soulbis.com/star, /lattice, /sigil. Returns the image; writes it to out when given.

Inputs: key (required), out, size.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool targets a distinct operation: key derivation, guide search/page/neighbours, lattice moves, key evolution, sigil rendering, key and card verification, and a dev-only comparison. The descriptions clearly separate overlapping functions like key_derive vs key_verify.

    Naming Consistency3/5

    Most tools follow noun_verb (key_derive, guide_search, lattice_move), but guide_page and guide_neighbours are noun_noun and compare_plain is verb_adj. The mix is still readable but not uniformly consistent.

    Tool Count5/5

    10 tools is well-scoped for the domain: 5 key-related, 3 guide-related, 1 lattice, 1 card verification. Each tool earns its place without redundancy.

    Completeness4/5

    Covers key lifecycle (derive, evolve, verify, render), guide exploration (search, page, neighbours), and lattice operations. Missing explicit signing, but that is described as an external Swordsman step, and dev-only compare_plain is clearly marked.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides evidence-oriented MCP service for cryptographically identified agents, bounded public contracts, privacy-preserving records, and append-only audit.
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides deterministic MCP tools for managing encrypted member profiles, including self/other lookups, responsible-person contacts, and birthday queries with privacy-focused local encryption.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Free seven-tool proof loop for MCP agents: scoped sessions, bounded authorization, typed outcomes, evidence-bound claims, and tamper-evident local closure. Upgrade to Complete Local for durable memory, recovery, signed traces, release verification, and multi-agent workflows.
      7
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents and gateways to seal each action into a tamper-evident W3C PROV record backed by a signed Merkle transparency log, and to fetch tree heads, inclusion and consistency proofs, verify records, and trace artifact lineage through six typed MCP tools.
      Apache 2.0