UNPKG

@kya-os/mcp-i

Version:

The TypeScript MCP framework with identity features built-in

72 lines (71 loc) 1.85 kB
/** * XMCP-I Demo Features - Optional identity badge and development helpers * * Provides opt-in demo features for showcasing identity capabilities. * All features are disabled by default and must be explicitly enabled. */ import { AgentIdentity } from "./identity"; /** * Demo configuration */ export interface DemoConfig { identityBadge?: boolean; environment?: "development" | "production"; } /** * Demo manager for optional features */ export declare class DemoManager { private config; private identity; constructor(identity: AgentIdentity, config?: DemoConfig); /** * Generate identity badge if enabled */ generateIdentityBadge(): string | null; /** * Add identity badge to response if enabled */ addIdentityBadgeToResponse(response: any): any; /** * Check if identity badge is enabled */ isIdentityBadgeEnabled(): boolean; /** * Extract short DID identifier for display */ private extractShortDid; /** * Get demo configuration */ getConfig(): DemoConfig; /** * Update demo configuration */ updateConfig(updates: Partial<DemoConfig>): void; } /** * Create demo manager */ export declare function createDemoManager(identity: AgentIdentity, config?: DemoConfig): DemoManager; /** * Utility to format verify link for console output */ export declare function formatVerifyLink(baseUrl?: string): string; /** * Console output helpers for development */ export declare const DemoConsole: { /** * Print verify link if enabled */ printVerifyLink(enabled: boolean, environment: string, baseUrl?: string): void; /** * Print identity badge if enabled */ printIdentityBadge(badge: string | null): void; /** * Print demo warning */ printDemoWarning(): void; };