UNPKG

@kya-os/mcp-i

Version:

The TypeScript MCP framework with identity features built-in

49 lines (48 loc) 1.41 kB
/** * KTA (Know-That-AI) Registration Module * * Handles agent registration with the KTA registry. * Based on alpha implementation from @kya-os/mcp-i@0.1.0-alpha.3.9 */ /** * Registration options */ export interface KTARegistrationOptions { did: string; publicKey: string; kid: string; name: string; description: string; repository?: string; endpoint?: string; } /** * KTA Registration Result * Matches the structure from alpha implementation */ export interface KTARegistrationResult { agentDID: string; agentURL: string; agentId: string; agentSlug: string; claimURL: string; claimToken?: string; verificationEndpoint: string; conformanceCapabilities: readonly string[]; mirrorStatus: "pending" | "success" | "error"; mirrorLink: string; } /** * Register agent with Know-That-AI * * Makes an API call to the KTA registry to register the agent. * Returns registration details including claim URL. */ export declare function registerWithKTA(options: KTARegistrationOptions): Promise<KTARegistrationResult>; /** * Register agent with Know-That-AI using fast CLI endpoint * * Uses the /cli-register endpoint which returns immediately without polling. * Returns claimUrl and claimToken for browser-based claiming. */ export declare function registerWithKTACLI(options: KTARegistrationOptions): Promise<KTARegistrationResult>;