---
agent:
  instructions: "Use this search API to find Trusteed documentation (pages, blog posts, FAQ, error codes, the agent checkout guide and MCP tools) with keywords, instead of crawling individual pages. Results are returned in Markdown. It does not search store catalogues: for products use POST /api/v1/search."
  endpoint: "https://trusteed.xyz/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---
Source: https://trusteed.xyz/en/for-agents/security/manifest-signing

[![](/sol46/shield.svg)**Trusteed** Control and evidence for delegated operations](https://trusteed.xyz/en)

[ES](https://trusteed.xyz/es/for-agents/security/manifest-signing?setlang=es)[EN](https://trusteed.xyz/en/for-agents/security/manifest-signing?setlang=en)

[Log in](https://trusteed.xyz/en/login)[Audit your store for free↗](https://trusteed.xyz/en/audit)

Tool Manifest Signing

# Ed25519 signing of the MCP tools manifest

Trusteed signs the public MCP tools manifest with Ed25519 (compact JWS with signed claims). Each tool carries separate SHA-256 hashes of its description and inputSchema, letting agents and operators detect any silent change before executing a tool.

Status: Available

## Signed documents measured on 2026-11-30

Measured on trusteed.xyz. This is the measured list; always check the header or the field: if it is missing, that document is not signed. mcp.json and the checkout guides, measured, do not carry one. Trust Receipts and their revocation lists carry their own signature; see /trust/trust-receipt.

### Signature in the X-JWS-Signature header

- `/.well-known/agent-policy.json`
- `/.well-known/agent-commerce.json`
- `/.well-known/merchant-index.json`
- `/.well-known/trust-components.json`
- `/.well-known/mcp-tools-manifest.json` — header format kid:jws; own recipe, see below
- `/.well-known/ucp-capabilities.json` — per store: requested with ?store=<slug>

### Signature embedded in the document

- `/.well-known/trusteed-capabilities.json` — signature field (JCS) inside the body
- `/.well-known/agent-capabilities.json` — alias: same document and same signature
- `/.well-known/agent-card.json` — Agent Card signature field (JWS), with its own key
- `/.well-known/agent.json` — alias: same bytes and same signature as agent-card.json

### Outside .well-known (X-JWS-Signature header)

- `/api/v1/stores/directory`
- `/api/v1/stores/<slug>/trust-score`

## Public endpoint

The manifest is available at a stable canonical URL with HTTP headers that expose the signature and hash directly, without needing to parse the JSON body for quick verification.

### Canonical URL

https://trusteed.xyz/.well-known/mcp-tools-manifest.json

Cache-Control:

public, max-age=3600, s-maxage=3600

Content-Type:

application/json

### Response headers

X-JWS-Signature

Format: <kid>:<compact\_jws>. The kid identifies the key in jwks.json. The JWS payload carries signed claims (iss, sub, iat, exp, manifest\_hash, kid, v); manifest\_hash binds the signature to the manifest body.

X-Manifest-Version

Version in YYYY-MM-DD.N format (e.g. 2026-05-02.1).

X-Manifest-Hash

SHA-256 hex, no prefix, of the canonical body without \_jws, \_kid and manifest\_hash\_sha256; it equals the body field manifest\_hash\_sha256. It is not the JWS manifest\_hash, which carries a sha256: prefix and is computed without \_jws and \_kid but with that field.

## Signature scheme

The signature follows the JWS Compact Serialization profile (RFC 7515) whose payload is a JSON claims object (iss, sub, iat, exp, manifest\_hash, kid, v): the manifest JSON is not inside the token, it is bound to it by manifest\_hash, the SHA-256 of the canonical body without \_jws and \_kid.

### Algorithm

**EdDSA** (Ed25519): 255-bit key, 64-byte signature, resistant to side-channel attacks.

alg: "EdDSA", crv: "Ed25519"

### Public key

Published at the standard JWKS endpoint. The `kid` field in the JWS header identifies which key to use.

https://trusteed.xyz/.well-known/jwks.json

### Key rotation

Grace period: the previous key remains in the JWKS after the new key is introduced. Both are valid during that window to allow seamless transitions.

## Per-tool hashes

In addition to the global manifest signature, each tool entry includes two independent SHA-256 hashes covering the tool's description and inputSchema.

### `description_sha256`

SHA-256 hash of the tool description. Allows detecting changes to the agent-visible text without needing to compare the full manifest.

### `schema_sha256`

SHA-256 hash of the tool inputSchema. Schema changes (new parameters, types, required fields) always alter this hash, even if the description stays the same.

### Example tool entry structure

```
{
  "name": "search_products",
  "version": "1.0",
  "description_sha256": "a3f2...c1d9",
  "schema_sha256": "7b04...e82a"
}
```

## Why it matters: tool poisoning

"Tool poisoning" (MCP-08 in the MCP-38 taxonomy) consists of silently modifying a tool's description or inputSchema to induce the agent to escalate privileges, exfiltrate data, or execute unauthorized actions. Manifest signing enables three protection levels:

1. 1 
  
  ### Global integrity verification
  
  The Ed25519 JWS signature over the full manifest guarantees that no content has been modified in transit or on the server. A signature failure invalidates the entire manifest.
  
2. 2 
  
  ### Per-tool hash pinning
  
  A client can store the hashes of the tools it uses and compare on each invocation. If description\_sha256 or schema\_sha256 change without a version bump, the client can reject the call.
  
3. 3 
  
  ### Granular policies
  
  Separate hashes for description and inputSchema enable distinct policies: an operator can tolerate cosmetic changes to the description while rejecting any schema mutation.
  

## Manifest versioning

The version field follows the YYYY-MM-DD.N format, where N is an ordinal counter incremented if more than one manifest is issued on the same day. The superseded\_at field indicates when an older version stops being valid, enabling graceful transitions.

### Version fields in the manifest

```
{
  "version": "2026-05-02.1",
  "previous_version": "2026-04-15.1",
  "superseded_at": "2026-05-09T00:00:00Z",
  "tools": [ ... ]
}
```

version

Current version in YYYY-MM-DD.N format.

previous\_version

Reference to the previous version for clients that need to trace history.

superseded\_at

ISO 8601. Date from which the previous version should be considered expired.

## Full verification (Node.js + jose)

The following snippet downloads the manifest and JWKS, verifies the JWS signature, checks that the body is the signed one, and prints the hashes of a specific tool. Requires the `jose` package (v5+) and Node.js 18+.

### verify-manifest.mjs

```
import { createHash } from 'node:crypto';
import { compactVerify, createLocalJWKSet } from 'jose';

const MANIFEST_URL = 'https://trusteed.xyz/.well-known/mcp-tools-manifest.json';
const JWKS_URL     = 'https://trusteed.xyz/.well-known/jwks.json';
const EXPECTED_SUB = 'mcp-tools-manifest.json';

// Canonical JSON: keys sorted at every level, no whitespace.
function canonical(v) {
  if (v === null || typeof v !== 'object') return JSON.stringify(v);
  if (Array.isArray(v)) return `[${v.map(canonical).join(',')}]`;
  return `{${Object.keys(v).sort()
    .map((k) => `${JSON.stringify(k)}:${canonical(v[k])}`).join(',')}}`;
}

async function fetchJson(url) {
  const res = await fetch(url);
  if (!res.ok) throw new Error(`HTTP ${res.status} fetching ${url}`);
  return res.json();
}

const manifest = await fetchJson(MANIFEST_URL);
const keySet   = createLocalJWKSet(await fetchJson(JWKS_URL));

// 1. The body carries a compact JWS in "_jws" (and the key id in "_kid").
const { _jws, _kid, ...body } = manifest;
if (!_jws) throw new Error('No _jws field found in manifest');

// 2. Verify the Ed25519 signature. The JWS payload is NOT empty: it is a
//    JSON claims object {iss, sub, iat, exp, manifest_hash, kid, v}.
const { payload, protectedHeader } = await compactVerify(_jws, keySet, {
  algorithms: ['EdDSA'],
});
const claims = JSON.parse(new TextDecoder().decode(payload));

// 3. Check the claims, then bind the signature to THIS body.
if (claims.sub !== EXPECTED_SUB) throw new Error('unexpected sub');
if (claims.kid !== protectedHeader.kid) throw new Error('kid mismatch');
if (!(claims.exp > Math.floor(Date.now() / 1000))) throw new Error('signature expired');

const bodyHash = 'sha256:' + createHash('sha256').update(canonical(body), 'utf8').digest('hex');
if (bodyHash !== claims.manifest_hash) {
  throw new Error('manifest_hash mismatch: the body was modified after signing');
}

// => Signature and body verified — kid: protectedHeader.kid, version: manifest.version

// 4. Pin the per-tool hashes for later comparison (tool entries carry
//    description_sha256 and schema_sha256, not the description itself).
const tool = manifest.tools?.find((t) => t.name === 'search_products');
if (!tool) throw new Error('Tool "search_products" not found in manifest');
console.log(tool.description_sha256, tool.schema_sha256);
```

For a minimal curl + signature verification script, see also the parent page: [MCP Security](https://trusteed.xyz/en/for-agents/security).

## JWKS endpoint

The Ed25519 public keys used to sign the manifest are published at the standard RFC 7517 JWKS endpoint. Use the `use` and `kid` values from the JWS header to select the correct key.

### Example key entry in jwks.json

```
{
  "keys": [
    {
      "kty": "OKP",
      "crv": "Ed25519",
      "use": "sig",
      "alg": "EdDSA",
      "kid": "<opaque_key_id>",
      "x": "<base64url_encoded_public_key>"
    }
  ]
}
```

[https://trusteed.xyz/.well-known/jwks.json](https://trusteed.xyz/.well-known/jwks.json): 3600s cache. Updated automatically during key rotation.

[Back to MCP Security page](https://trusteed.xyz/en/for-agents/security)
