Install asx
Install asx
These examples use published, verified artifacts. Keep signing keys on your server.
Script tag
The relay is a route on your server. It signs calls as your registered app.
<script src="https://cdn.comms.id/asx/1.1.0.js" integrity="sha384-gHeoeoXmBwKGb7A+MRwfcdQpqnvVDgY3vZe2lQ7L3WNg6+2sN2A29NBOJjuHOkvW" crossorigin="anonymous"></script>
<comms-id-asx relay="/api/comms-id/asx"></comms-id-asx>
React
pnpm add @comms-id/asx-react@0.2.2 @comms-id/asx@0.4.1
import { createAsxBrowserClient } from "@comms-id/asx/browser";
import { AsxLookup } from "@comms-id/asx-react";
const client = createAsxBrowserClient({ relayUrl: "/api/comms-id/asx" });
export const Example = () => <AsxLookup client={client} />;
Server SDK
pnpm add @comms-id/asx@0.4.1
import { createAsxClient } from "@comms-id/asx/server";
const client = createAsxClient({
clientId: process.env.COMMS_ID_CLIENT_ID!,
privateJwk: JSON.parse(process.env.COMMS_ID_PRIVATE_JWK!),
});
See the operation reference for request, response and command-line examples.
Relay
Install the server relay into your relying-party app:
pnpm dlx comms-id add asx-relay
Agent tools
Product tools are served at https://mcp.comms.id. The documentation MCP serves documentation only; it does not execute product operations.
Operations
lookup
Read the lookup API reference.
suggest
Read the suggest API reference.