agent-passport-system-mcp 5.0.2 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CONTRIBUTING.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Contributing to Agent Passport System MCP Server
2
2
 
3
- Thanks for your interest in contributing! This is the MCP server for the [Agent Passport System](https://github.com/aeoess/agent-passport-system) — 132 tools across the full protocol surface for AI agent identity, trust, governance, and commerce.
3
+ Thanks for your interest in contributing! This is the MCP server for the [Agent Passport System](https://github.com/aeoess/agent-passport-system), 152 tools across the full protocol surface for AI agent identity, trust, governance, and commerce.
4
4
 
5
5
  ## Getting Started
6
6
 
@@ -60,7 +60,7 @@ If you're adding new MCP tools, follow the existing pattern in `src/index.ts`:
60
60
  1. **Build passes.** `npm run build` succeeds with zero TypeScript errors.
61
61
  2. **SDK alignment.** If you're exposing a new SDK capability as an MCP tool, the SDK function must already exist and be tested. This repo wraps; it doesn't redefine.
62
62
  3. **Tool naming consistency.** Follow existing naming conventions (`snake_case`, verb-first for actions).
63
- 4. **Zod schemas.** Every tool registers a zod input schema — no untyped parameters.
63
+ 4. **Zod schemas.** Every tool registers a zod input schema, and no untyped parameters.
64
64
  5. **README table updated.** New tools show up in the README tool table with their category.
65
65
  6. **Scope discipline.** One concern per PR. Refactors ride alongside in separate PRs.
66
66
 
@@ -71,8 +71,8 @@ Follows semantic versioning. New tools land in minor releases. Changes to tool s
71
71
  ## Out of scope
72
72
 
73
73
  - **New protocol logic.** All protocol behavior lives in `agent-passport-system`. This repo exposes it via MCP.
74
- - **Disabling zod validation** for convenience — validation is load-bearing for MCP client safety.
75
- - **Named integrations woven into tool implementations** — integration examples belong in documentation or a sibling adapter repo.
74
+ - **Disabling zod validation** for convenience: validation is load-bearing for MCP client safety.
75
+ - **Named integrations woven into tool implementations**: integration examples belong in documentation or a sibling adapter repo.
76
76
  - **Breaking changes to tool signatures** without major version bump and migration documentation.
77
77
 
78
78
  ---
@@ -98,7 +98,7 @@ Substantive declines include the reason.
98
98
  - **CLA / DCO:** no CLA is required. Contributions accepted on the understanding that the submitter has the right to contribute under the Apache-2.0 license.
99
99
  - **Publishing:** maintainers handle npm release publishing. Please do not bump version numbers in PRs. If your change requires a version bump, call that out in the PR description.
100
100
  - **Security issues:** open a private security advisory via GitHub rather than a public issue.
101
- - **Code of Conduct:** Contributor Covenant 2.1 — see [`CODE_OF_CONDUCT.md`](./CODE_OF_CONDUCT.md).
101
+ - **Code of Conduct:** Contributor Covenant 2.1, see [`CODE_OF_CONDUCT.md`](./CODE_OF_CONDUCT.md).
102
102
 
103
103
  ---
104
104
 
package/README.md CHANGED
@@ -12,7 +12,9 @@ Enforcement and accountability layer for AI agents. Bring your own identity. 152
12
12
  npx agent-passport-system-mcp
13
13
  ```
14
14
 
15
- The default profile is `full` — all 152 tools. Set `APS_PROFILE=essential` for a 25-tool slim profile covering the primitives most integrations need (identity, delegation, enforcement, commerce, reputation).
15
+ agent-passport-system-mcp 6.0.0 targets SDK 6.0.0; 5.0.2 targets SDK 5.x.
16
+
17
+ The default profile is `full`, all 152 tools. Set `APS_PROFILE=essential` for a 25-tool slim profile covering the primitives most integrations need (identity, delegation, enforcement, commerce, reputation).
16
18
 
17
19
  Available profiles: full (default), essential, identity, governance, coordination, commerce, data, gateway, comms, minimal.
18
20
 
@@ -71,17 +73,17 @@ Or for remote SSE:
71
73
 
72
74
  ## Tools (152)
73
75
 
74
- ### Identity (Layer 1) — 5 tools
76
+ ### Identity (Layer 1): 5 tools
75
77
 
76
78
  | Tool | Description |
77
79
  |------|-------------|
78
80
  | `generate_keys` | Generate Ed25519 keypair for agent identity |
79
81
  | `issue_passport` | One-call passport issuance with keys, attestation, and issuer countersignature |
80
82
  | `verify_passport` | Verify another agent's passport signature |
81
- | `verify_issuer` | Verify passport was officially issued by AEOESS (CA model) |
83
+ | `verify_issuer` | Verify a passport's issuer signature against the configured issuer key |
82
84
  | `join_social_contract` | Create agent passport with values attestation and beneficiary |
83
85
 
84
- ### Coordination (Layer 6) — 11 tools
86
+ ### Coordination (Layer 6): 11 tools
85
87
 
86
88
  | Tool | Description |
87
89
  |------|-------------|
@@ -89,7 +91,7 @@ Or for remote SSE:
89
91
  | `assign_agent` | [OPERATOR] Assign agent to role with delegation |
90
92
  | `accept_assignment` | Accept your task assignment |
91
93
  | `submit_evidence` | [RESEARCHER] Submit research evidence with citations |
92
- | `review_evidence` | [OPERATOR] Review evidence packet — approve, rework, or reject |
94
+ | `review_evidence` | [OPERATOR] Review evidence packet: approve, rework, or reject |
93
95
  | `handoff_evidence` | [OPERATOR] Transfer approved evidence between roles |
94
96
  | `get_evidence` | [ANALYST/BUILDER] Get evidence handed off to you |
95
97
  | `submit_deliverable` | [ANALYST/BUILDER] Submit final output tied to evidence |
@@ -97,7 +99,7 @@ Or for remote SSE:
97
99
  | `get_my_role` | Get your current role and instructions |
98
100
  | `get_task_detail` | Get full task details including evidence and deliverables |
99
101
 
100
- ### Delegation (Layer 1) — 4 tools
102
+ ### Delegation (Layer 1): 4 tools
101
103
 
102
104
  | Tool | Description |
103
105
  |------|-------------|
@@ -106,7 +108,7 @@ Or for remote SSE:
106
108
  | `revoke_delegation` | Revoke delegation with optional cascade to sub-delegations |
107
109
  | `sub_delegate` | Sub-delegate within parent scope and depth limits |
108
110
 
109
- ### Agora (Layer 4) — 6 tools
111
+ ### Agora (Layer 4): 6 tools
110
112
 
111
113
  | Tool | Description |
112
114
  |------|-------------|
@@ -117,24 +119,24 @@ Or for remote SSE:
117
119
  | `register_agora_agent` | Register agent in local session registry |
118
120
  | `register_agora_public` | Register agent in the PUBLIC Agora at aeoess.com (via GitHub API) |
119
121
 
120
- ### Values / Policy (Layers 2 & 5) — 4 tools
122
+ ### Values / Policy (Layers 2 & 5): 4 tools
121
123
 
122
124
  | Tool | Description |
123
125
  |------|-------------|
124
126
  | `load_values_floor` | Load YAML floor with principles and enforcement modes |
125
127
  | `attest_to_floor` | Cryptographically attest to loaded floor (commitment signature) |
126
128
  | `create_intent` | Declare action intent before execution (signature 1 of 3) |
127
- | `evaluate_intent` | Evaluate intent against policy engine — returns real pass/fail verdict |
129
+ | `evaluate_intent` | Evaluate intent against policy engine, returns real pass/fail verdict |
128
130
 
129
- ### Commerce (Layer 8) — 3 tools
131
+ ### Commerce (Layer 8): 3 tools
130
132
 
131
133
  | Tool | Description |
132
134
  |------|-------------|
133
- | `commerce_preflight` | Run 4-gate preflight: passport, delegation, merchant, spend |
135
+ | `commerce_preflight` | Returns `commerce_preflight_moved_to_gateway`; the preflight orchestration left the SDK and this server in SDK 3.3.0 |
134
136
  | `get_commerce_spend` | Get spend analytics: limit, spent, remaining, utilization |
135
137
  | `request_human_approval` | Create human approval request for purchases |
136
138
 
137
- ### Comms (Agent-to-Agent) — 4 tools
139
+ ### Comms (Agent-to-Agent): 4 tools
138
140
 
139
141
  | Tool | Description |
140
142
  |------|-------------|
@@ -143,26 +145,26 @@ Or for remote SSE:
143
145
  | `broadcast` | Send a signed message to all agents (writes to comms/broadcast.json) |
144
146
  | `list_agents` | List registered agents from the agent registry |
145
147
 
146
- ### Agent Context (Enforcement Middleware) — 3 tools
148
+ ### Agent Context (Enforcement Middleware): 3 tools
147
149
 
148
150
  | Tool | Description |
149
151
  |------|-------------|
150
- | `create_agent_context` | Create enforcement context — every action goes through 3-signature chain |
152
+ | `create_agent_context` | Create enforcement context: every action goes through 3-signature chain |
151
153
  | `execute_with_context` | Execute action through policy enforcement (intent → evaluate → verdict) |
152
154
  | `complete_action` | Complete action and get full proof chain (intent + decision + receipt) |
153
155
 
154
- ### Principal Identity — 6 tools
156
+ ### Principal Identity: 6 tools
155
157
 
156
158
  | Tool | Description |
157
159
  |------|-------------|
158
160
  | `create_principal` | Create principal identity (human/org behind agents) with Ed25519 keypair |
159
- | `endorse_agent` | Endorse an agent — cryptographic chain: principal → agent |
161
+ | `endorse_agent` | Endorse an agent, cryptographic chain: principal → agent |
160
162
  | `verify_endorsement` | Verify a principal's endorsement signature |
161
163
  | `revoke_endorsement` | Revoke endorsement ("I no longer authorize this agent") |
162
164
  | `create_disclosure` | Selective disclosure of principal identity (public/verified-only/minimal) |
163
165
  | `get_fleet_status` | Status of all agents endorsed by the current principal |
164
166
 
165
- ### Reputation-Gated Authority — 5 tools
167
+ ### Reputation-Gated Authority: 5 tools
166
168
 
167
169
  | Tool | Description |
168
170
  |------|-------------|
@@ -172,7 +174,7 @@ Or for remote SSE:
172
174
  | `update_reputation` | Bayesian (mu, sigma) updates from task results |
173
175
  | `get_promotion_history` | List all promotion reviews this session |
174
176
 
175
- ### Proxy Gateway — 6 tools
177
+ ### Proxy Gateway: 6 tools
176
178
 
177
179
  | Tool | Description |
178
180
  |------|-------------|
@@ -183,13 +185,13 @@ Or for remote SSE:
183
185
  | `gateway_execute` | Two-phase: execute previously approved request (rechecks revocation) |
184
186
  | `gateway_stats` | Get gateway counters (requests, permits, denials, replays, revocation rechecks) |
185
187
 
186
- ### Intent Network (Agent-Mediated Matching) — 6 tools
188
+ ### Intent Network (Agent-Mediated Matching): 6 tools
187
189
 
188
190
  | Tool | Description |
189
191
  |------|-------------|
190
192
  | `publish_intent_card` | Publish what your human needs, offers, and is open to. Signed, scoped, auto-expiring |
191
- | `search_matches` | Find relevant IntentCards — ranked by need/offer overlap, tags, budget compatibility |
192
- | `get_digest` | "What matters to me right now?" — matches, pending intros, incoming requests |
193
+ | `search_matches` | Find relevant IntentCards, ranked by need/offer overlap, tags, budget compatibility |
194
+ | `get_digest` | "What matters to me right now?": matches, pending intros, incoming requests |
193
195
  | `request_intro` | Propose connecting two humans based on a match. Both sides must approve |
194
196
  | `respond_to_intro` | Approve or decline an introduction request |
195
197
  | `remove_intent_card` | Remove your card when needs/offers change |
@@ -197,14 +199,14 @@ Or for remote SSE:
197
199
  ## Architecture
198
200
 
199
201
  ```
200
- Layer 8 — Agentic Commerce (4-gate pipeline, human approval)
201
- Layer 7 — Integration Wiring (cross-layer bridges)
202
- Layer 6 — Coordination Protocol (task lifecycle)
203
- Layer 5 — Intent Architecture (policy engine, 3-signature chain)
204
- Layer 4 — Agent Agora (signed communication)
205
- Layer 3 — Beneficiary Attribution (Merkle proofs)
206
- Layer 2 — Human Values Floor (8 principles)
207
- Layer 1 — Agent Passport Protocol (Ed25519 identity)
202
+ Layer 8: Agentic Commerce (primitives only; the preflight orchestration lives outside this server)
203
+ Layer 7: Integration Wiring (cross-layer bridges)
204
+ Layer 6: Coordination Protocol (task lifecycle)
205
+ Layer 5: Intent Architecture (policy engine, 3-signature chain)
206
+ Layer 4: Agent Agora (signed communication)
207
+ Layer 3: Beneficiary Attribution (Merkle proofs)
208
+ Layer 2: Human Values Floor (8 principles)
209
+ Layer 1: Agent Passport Protocol (Ed25519 identity)
208
210
  ```
209
211
 
210
212
  ## Recognition
@@ -215,9 +217,10 @@ Layer 1 — Agent Passport Protocol (Ed25519 identity)
215
217
 
216
218
  ## Links
217
219
 
218
- - npm SDK: [agent-passport-system](https://www.npmjs.com/package/agent-passport-system) (v4.4.0, 4,500 tests)
219
- - Python SDK: [agent-passport-system](https://pypi.org/project/agent-passport-system/) (v2.11.0)
220
- - Go SDK: [agent-passport-go](https://pkg.go.dev/github.com/aeoess/agent-passport-go) (v0.5.0; `go get github.com/aeoess/agent-passport-go@v0.5.0`)
220
+ - npm SDK: [agent-passport-system](https://www.npmjs.com/package/agent-passport-system) (v6.0.0, 5,281 tests)
221
+ - Python SDK: [agent-passport-system](https://pypi.org/project/agent-passport-system/) (v3.0.0)
222
+ - Rust SDK: [agent-passport-system](https://crates.io/crates/agent-passport-system) (v0.3.0; library crate `agent_passport`)
223
+ - Go SDK: [agent-passport-go](https://pkg.go.dev/github.com/aeoess/agent-passport-go) (v0.7.0; `go get github.com/aeoess/agent-passport-go@v0.7.0`)
221
224
  - Paper (Social Contract): [doi.org/10.5281/zenodo.18749779](https://doi.org/10.5281/zenodo.18749779)
222
225
  - Paper (Monotonic Narrowing): [doi.org/10.5281/zenodo.18932404](https://doi.org/10.5281/zenodo.18932404)
223
226
  - Paper (Faceted Authority Attenuation): [doi.org/10.5281/zenodo.19260073](https://doi.org/10.5281/zenodo.19260073)
@@ -229,6 +232,7 @@ Layer 1 — Agent Passport Protocol (Ed25519 identity)
229
232
  - Paper (Plausibly Wrong): [doi.org/10.5281/zenodo.21208555](https://doi.org/10.5281/zenodo.21208555)
230
233
  - IETF Internet-Draft: [`draft-pidlisnyi-aps`](https://datatracker.ietf.org/doc/draft-pidlisnyi-aps/)
231
234
  - Docs: [aeoess.com/llms-full.txt](https://agent-passport.org/llms-full.txt)
235
+ - Security: [SECURITY.md](SECURITY.md), advisories at https://github.com/aeoess/agent-passport-mcp/security/advisories
232
236
  - Agora: [aeoess.com/agora.html](https://aeoess.com/agora.html)
233
237
 
234
238
  ## License
package/build/index.js CHANGED
@@ -1757,7 +1757,7 @@ server.registerTool("create_delegation", { description: "[OPERATOR] Create a sco
1757
1757
  }],
1758
1758
  };
1759
1759
  });
1760
- server.registerTool("verify_delegation", { description: "Verify a delegation's cryptographic signature and validity.", inputSchema: z.object({
1760
+ server.registerTool("verify_delegation", { description: "Check a delegation's signature and its stated window. The signature is checked against the delegatedBy key the delegation itself carries, so what a valid result establishes is that the artifact is intact and internally consistent, not that the delegator held the authority it granted. Revocation is not consulted here. An expiresAt the verifier cannot read now fails closed instead of being skipped.", inputSchema: z.object({
1761
1761
  delegation_id: z.string().describe("Delegation ID to verify"),
1762
1762
  }) }, async (args) => {
1763
1763
  const delegation = state.delegations.get(args.delegation_id);
@@ -2513,7 +2513,7 @@ server.registerTool("endorse_agent", { description: "Endorse an agent as a princ
2513
2513
  }],
2514
2514
  };
2515
2515
  });
2516
- server.registerTool("verify_endorsement", { description: "Verify a principal's endorsement of an agent. Checks cryptographic signature.", inputSchema: z.object({
2516
+ server.registerTool("verify_endorsement", { description: "Check an endorsement's signature against the principalPublicKey the endorsement itself carries. What a valid result establishes: the endorsement is intact and signed by that key. What it does not establish: that the key belongs to the principal it names, which needs a trust anchor you supply out of band.", inputSchema: z.object({
2517
2517
  endorsement_id: z.string().describe("Endorsement ID to verify"),
2518
2518
  }) }, async (args) => {
2519
2519
  const endorsement = state.endorsements.get(args.endorsement_id);
@@ -3575,7 +3575,7 @@ server.registerTool("generate_governance_block", { description: "Generate a cryp
3575
3575
  });
3576
3576
  return { content: [{ type: "text", text: `📋 Governance Block Generated\n\nDID: ${block.source_did}\nContent Hash: ${block.content_hash}\nTerms: inference=${p.inference || 'not set'}, training=${p.training || 'not set'}\n\n--- HTML EMBED (script tag) ---\n${html}\n\n--- META EMBED (base64) ---\n${meta}` }] };
3577
3577
  });
3578
- server.registerTool("verify_governance_block", { description: "Verify a governance block's signature, content hash, and DID consistency against the original content.", inputSchema: z.object({
3578
+ server.registerTool("verify_governance_block", { description: "Verify a governance block's signature, content hash, DID consistency and expiry against the original content. A block whose expiry cannot be read now fails closed rather than being treated as unexpired.", inputSchema: z.object({
3579
3579
  block: z.string().describe("Governance block JSON string"),
3580
3580
  content: z.string().describe("Original content to verify against"),
3581
3581
  publicKey: z.string().describe("Publisher's Ed25519 public key (hex)"),
@@ -3749,11 +3749,14 @@ server.registerTool("create_charter", { description: "Create a new institutional
3749
3749
  state.charters.set(charter.charterId, charter);
3750
3750
  return { content: [{ type: "text", text: `🏛️ Charter Created\n\nID: ${charter.charterId}\nName: ${charter.name}\nVersion: ${charter.version}\nOffices: ${charter.offices.map(o => o.name).join(', ')}\nSignatures: ${charter.foundingSignatures.length}` }] };
3751
3751
  });
3752
- server.registerTool("verify_charter", { description: "Verify a charter's integrity: content hash, signatures, office consistency, incompatibility.", inputSchema: z.object({ charter_id: z.string().describe("Charter ID to verify") }) }, async (args) => {
3752
+ server.registerTool("verify_charter", { description: "Verify a charter's integrity: content hash, signatures, quorum, dissolution, office consistency, incompatibility, and, when the charter declares citations, the AttributionConsent gate over the receipts you supply. What a valid result establishes: the charter is intact and signed by the keys it names, and any citation it declares is backed by a receipt the cited principal consented to. What it does not establish: that those signers hold the authority your decision needs. A charter declaring citations cannot be valid without attribution_receipts, and fails closed with 'citations present but no receipts supplied'.", inputSchema: z.object({
3753
+ charter_id: z.string().describe("Charter ID to verify"),
3754
+ attribution_receipts: z.array(z.any()).optional().describe("Signed AttributionReceipts backing the charter's citations. Required for a charter that declares any; each receipt's parties must be named by self-certifying DIDs."),
3755
+ }) }, async (args) => {
3753
3756
  const charter = state.charters.get(args.charter_id);
3754
3757
  if (!charter)
3755
3758
  return { content: [{ type: "text", text: `❌ Charter ${args.charter_id} not found` }] };
3756
- const result = verifyCharter(charter);
3759
+ const result = verifyCharter(charter, args.attribution_receipts);
3757
3760
  const status = result.valid ? '✅ VALID' : '❌ INVALID';
3758
3761
  return { content: [{ type: "text", text: `${status}\n\nContent integrity: ${result.contentIntegrity}\nSignatures valid: ${result.signaturesValid}\nQuorum met: ${result.quorumMet}\nNot dissolved: ${result.notDissolved}\nOffices valid: ${result.officesValid}\nIncompatibility clean: ${result.incompatibilityClean}${result.errors.length ? '\n\nErrors:\n' + result.errors.join('\n') : ''}` }] };
3759
3762
  });
@@ -3829,7 +3832,7 @@ server.registerTool("sign_amendment", { description: "Add a signature to a propo
3829
3832
  const roles = signed.signatures.map(sig => sig.role).join(', ');
3830
3833
  return { content: [{ type: "text", text: `✅ Signature added to ${signed.amendmentId}\n\nsignatures: ${signed.signatures.length}\nroles collected: ${roles || '(none)'}\nstatus: ${signed.status}\n\nSignature counting and threshold evaluation happen in verify_amendment.` }] };
3831
3834
  });
3832
- server.registerTool("verify_amendment", { description: "Verify an amendment against its charter's amendment policy. Reports each field of the SDK's verdict separately: a signature can verify while the threshold is short, or the threshold arithmetic can pass while a signature fails, and one boolean would hide both. Session state is not an authoritative registry: amendments live only in this process, are lost on restart, and carry no external trust.", inputSchema: z.object({
3835
+ server.registerTool("verify_amendment", { description: "Verify an amendment against its charter's amendment policy. Reports each field of the SDK's verdict separately: a signature can verify while the threshold is short, or the threshold arithmetic can pass while a signature fails, and one boolean would hide both. Session state is not an authoritative registry: amendments live only in this process, are lost on restart, and carry no external trust. The proposed charter's citations are NOT checked here: verifyAmendment calls verifyCharter without receipts and then keeps only its office and incompatibility findings, so a citation refusal is computed and discarded. Check a proposed charter's citations with verify_charter and attribution_receipts before relying on this verdict.", inputSchema: z.object({
3833
3836
  charter_id: z.string(),
3834
3837
  amendment_id: z.string(),
3835
3838
  }) }, async (args) => {
@@ -3974,7 +3977,7 @@ server.registerTool("compute_action_ref", { description: "Compute content-addres
3974
3977
  agent_id: z.string(),
3975
3978
  action_type: z.string(),
3976
3979
  scope_required: z.array(z.string()),
3977
- timestamp: z.string().optional().describe("ISO 8601 timestamp; defaults to now"),
3980
+ timestamp: z.string().optional().describe("RFC 3339 timestamp carrying an explicit offset or Z; defaults to now. A zone-less value is refused, because it names no instant and would produce a different action_ref on every machine."),
3978
3981
  }) }, async (args) => {
3979
3982
  const intent = {
3980
3983
  agentId: args.agent_id,
@@ -4068,11 +4071,11 @@ server.registerTool("is_key_active", { description: "Check if a public key is cu
4068
4071
  // HumanEscalationFlag. Representation, commitment, escalation boundaries.
4069
4072
  // ═══════════════════════════════════════════════════════════════
4070
4073
  // ── AttributionConsent (representation boundary) ────────────────
4071
- server.registerTool("aps_create_attribution_receipt", { description: "Representation boundary: build a citer-signed AttributionReceipt attributing a claim to a third-party principal. The receipt is not yet valid — the cited principal must sign consent via aps_sign_attribution_consent before checkArtifactCitations accepts it.", inputSchema: z.object({
4072
- citer: z.string().describe("DID/public key of the citing agent"),
4074
+ server.registerTool("aps_create_attribution_receipt", { description: "Representation boundary: build a citer-signed AttributionReceipt attributing a claim to a third-party principal. Each party is named by a self-certifying DID that commits to the key beside it, so a receipt naming a party by a bare public key or by a did:web style identifier will not verify. The receipt is not yet valid: the cited principal must sign consent via aps_sign_attribution_consent before checkArtifactCitations accepts it.", inputSchema: z.object({
4075
+ citer: z.string().describe("Self-certifying DID of the citing agent, from the SDK createDID (multibase did:aps). A bare public key or the hex did:aps form from createDIDHex does not self-certify and will not verify."),
4073
4076
  citer_public_key: z.string().describe("Hex public key of citer"),
4074
4077
  citer_private_key: z.string().describe("Hex private key of citer"),
4075
- cited_principal: z.string().describe("DID/public key of the cited principal"),
4078
+ cited_principal: z.string().describe("Self-certifying DID of the cited principal, from the SDK createDID (multibase did:aps). It must commit to cited_principal_public_key."),
4076
4079
  cited_principal_public_key: z.string().describe("Hex public key of cited principal"),
4077
4080
  citation_content: z.string().describe("The quoted or paraphrased claim"),
4078
4081
  binding_context: z.string().describe("ID of the binding artifact this citation is scoped to"),
@@ -4102,7 +4105,7 @@ server.registerTool("aps_create_attribution_receipt", { description: "Representa
4102
4105
  return { content: [{ type: "text", text: safeError("createAttributionReceipt failed", e) }], isError: true };
4103
4106
  }
4104
4107
  });
4105
- server.registerTool("aps_sign_attribution_consent", { description: "Representation boundary: the cited principal adds their consent signature to an AttributionReceipt. Without this signature, verifyAttributionConsent and checkArtifactCitations reject the receipt.", inputSchema: z.object({
4108
+ server.registerTool("aps_sign_attribution_consent", { description: "Representation boundary: the cited principal adds their consent signature to an AttributionReceipt. Without this signature, verifyAttributionConsent and checkArtifactCitations reject the receipt. The signature is checked against the key the receipt carries for that party, and that key must be the one the party DID commits to.", inputSchema: z.object({
4106
4109
  receipt: z.any().describe("AttributionReceipt JSON from aps_create_attribution_receipt"),
4107
4110
  cited_principal_private_key: z.string().describe("Hex private key of cited principal"),
4108
4111
  }) }, async (args) => {
@@ -4114,14 +4117,14 @@ server.registerTool("aps_sign_attribution_consent", { description: "Representati
4114
4117
  return { content: [{ type: "text", text: safeError("signAttributionConsent failed", e) }], isError: true };
4115
4118
  }
4116
4119
  });
4117
- server.registerTool("aps_verify_attribution_consent", { description: "Representation boundary: verify an AttributionReceipt end-to-end (id, citer signature, consent signature, expiry). Returns {valid, reason?}.", inputSchema: z.object({
4120
+ server.registerTool("aps_verify_attribution_consent", { description: "Representation boundary: verify an AttributionReceipt end-to-end (id, citer signature, consent signature, expiry) and bind each named party to the key beside it. What a valid result establishes: the receipt is intact, unexpired, and signed by the keys its party DIDs commit to. What it does not establish: that either party is authorized for your relying-party decision, or who they are outside the protocol. A party named by an identifier that does not self-certify is refused as unresolved rather than assumed. Returns {valid, reason?}.", inputSchema: z.object({
4118
4121
  receipt: z.any().describe("AttributionReceipt JSON"),
4119
4122
  now: z.any().optional().describe("Optional HybridTimestamp to pin the evaluation moment"),
4120
4123
  }) }, async (args) => {
4121
4124
  const result = verifyAttributionConsent(args.receipt, args.now);
4122
4125
  return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
4123
4126
  });
4124
- server.registerTool("aps_check_artifact_citations", { description: "Representation boundary: gate a binding artifact's citations. Each citation must resolve to a provided, signed, unexpired receipt whose content + principal match, with per-artifact replay protection.", inputSchema: z.object({
4127
+ server.registerTool("aps_check_artifact_citations", { description: "Representation boundary: gate a binding artifact's citations. Each citation must resolve to a provided, signed, unexpired receipt whose content + principal match, with per-artifact replay protection, and each receipt must bind its parties to the keys beside them. What a valid result establishes: every citation is backed by a receipt the cited principal consented to. What it does not establish: authority to act on the artifact. Receipts whose parties are named by identifiers that do not self-certify stop passing this gate.", inputSchema: z.object({
4125
4128
  artifact: z.any().describe("CitingArtifact with optional citations[] array"),
4126
4129
  receipts: z.array(z.any()).describe("AttributionReceipts backing each citation"),
4127
4130
  binding_context: z.string().optional().describe("Require receipts to be scoped to this binding context"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-passport-system-mcp",
3
- "version": "5.0.2",
3
+ "version": "6.0.1",
4
4
  "mcpName": "io.github.aeoess/agent-passport-mcp",
5
5
  "description": "MCP server for the Agent Passport System, protocol-layer tools only. Identity, delegation, reputation, attestation, coordination, commerce, charter amendment lifecycle, attribution. Counts and the SDK version it tracks live in the README.",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "watch": "tsc --watch",
21
21
  "inspector": "npx @modelcontextprotocol/inspector build/index.js",
22
22
  "prepublishOnly": "npm run build && npm test",
23
- "postinstall": "echo '\\n\ud83d\udd11 Agent Passport MCP installed! Run: npx agent-passport-system-mcp setup\\n Or for zero-install remote: npx agent-passport-system-mcp setup --remote\\n'",
23
+ "postinstall": "echo '\\n🔑 Agent Passport MCP installed! Run: npx agent-passport-system-mcp setup\\n Or for zero-install remote: npx agent-passport-system-mcp setup --remote\\n'",
24
24
  "postversion": "if [ -f ~/aps-web/scripts/sync-project-state.mjs ]; then node ~/aps-web/scripts/sync-project-state.mjs mcp $npm_package_version; else echo 'postversion: ~/aps-web/scripts/sync-project-state.mjs not found, skipping project-state sync'; fi"
25
25
  },
26
26
  "keywords": [
@@ -51,7 +51,7 @@
51
51
  "homepage": "https://github.com/aeoess/agent-passport-mcp",
52
52
  "dependencies": {
53
53
  "@modelcontextprotocol/server": "2.0.0",
54
- "agent-passport-system": "^5.0.0",
54
+ "agent-passport-system": "^6.0.0",
55
55
  "zod": "^4.2.0"
56
56
  },
57
57
  "overrides": {