@agentlair/mcp-demo-attested
v0.1.0
Published
Minimal reference MCP server demonstrating @agentlair/mcp-trust-attestation: a single 'echo' tool plus the BHC-S descriptor and per-subject attestation routes wired in 3 LOC.
Maintainers
Readme
@agentlair/mcp-demo-attested
Minimal reference MCP server that proves the
@agentlair/mcp-trust-attestation SDK
works end-to-end: one echo tool over stdio plus the BHC-S descriptor
and per-subject attestation routes wired in three lines.
Run
npx @agentlair/mcp-demo-attestedThe HTTP attestation surface comes up on localhost:8787 (override with
ATTESTED_HTTP_PORT). The MCP stdio transport connects on the standard
streams, ready for any MCP client.
What it demonstrates
GET /.well-known/agentlair-trustreturns the BHC-S issuer descriptor.GET /agentlair/trust-attestation/:subjectreturns the per-subject attestation JWT (proxied from AgentLair, cached locally).GET /returns the MCP server-card payload, including thedev.agentlair/trust-attestationextension.
Config
| Env var | Default | Notes |
|---|---|---|
| ATTESTED_SERVER_ID | url_sha256:0000... | Subject identifier |
| ATTESTED_HTTP_PORT | 8787 | Port for the HTTP attestation surface |
| ATTESTED_DISABLE_HTTP | unset | Set to 1 to run stdio-only |
Licensed under Apache-2.0.
