@kya-os/mcp-i
Version:
COMING SOON:Production-ready MCP Identity with automatic registration, key rotation, and optimized performance
44 lines • 1.39 kB
TypeScript
/**
* KnowThat.ai Registry Adapter
* Primary registry that can host DIDs
*/
import { RegistryAdapter, RegistryPublishData, RegistryPublishResult, RegistryStatus, MCPIdentityOptions } from '../types';
import { Transport } from '../transport';
export declare class KnowThatRegistry implements RegistryAdapter {
name: string;
type: 'primary' | 'secondary';
private endpoint;
private transport;
private options?;
constructor(endpoint?: string, transport?: Transport, options?: MCPIdentityOptions);
/**
* Use the fast CLI registration endpoint
*/
private publishViaCLI;
/**
* Determine which endpoint to use based on configuration and context
*/
private shouldUseCLIEndpoint;
/**
* Primary registration - creates DID and hosts DID document
* Now supports both CLI (fast) and auto-register (async) endpoints
*/
publish(data: RegistryPublishData): Promise<RegistryPublishResult>;
/**
* Original auto-register implementation
*/
private publishViaAutoRegister;
/**
* Verify agent exists and is valid
*/
verify(did: string): Promise<boolean>;
/**
* Get agent status in KnowThat registry
*/
getStatus(did: string): Promise<RegistryStatus>;
/**
* Extract agent slug from DID
*/
private extractAgentSlug;
}
//# sourceMappingURL=knowthat.d.ts.map