@kya-os/mcp-i
Version:
The TypeScript MCP framework with identity features built-in
57 lines (56 loc) • 1.58 kB
TypeScript
/**
* CLI Adapter for XMCP-I
*
* Provides a bridge between CLI commands and the runtime identity system.
* This adapter recreates the functionality from alpha @kya-os/mcp-i@0.1.0-alpha.3.9
* using the new runtime architecture.
*/
import { AgentIdentity } from "../runtime/identity";
/**
* Progress event stages matching alpha implementation
*/
export type ProgressStage = "checking_existing" | "generating_keys" | "registering" | "saving" | "complete";
/**
* Progress event structure
*/
export interface ProgressEvent {
stage: ProgressStage;
message?: string;
data?: {
claimUrl?: string;
[key: string]: any;
};
}
/**
* CLI options matching alpha implementation
*/
export interface CLIIdentityOptions {
name?: string;
description?: string;
repository?: string;
endpoint?: string;
logLevel?: "silent" | "info" | "debug";
onProgress?: (event: ProgressEvent) => void | Promise<void>;
skipRegistration?: boolean;
}
/**
* CLI identity result matching alpha implementation
*/
export interface CLIIdentityResult {
identity: AgentIdentity;
metadata: {
isNewIdentity: boolean;
did: string;
claimUrl?: string;
registryUrl: string;
agentId?: string;
agentSlug?: string;
};
}
/**
* Enable MCP Identity for CLI
*
* This is the main entry point that CLI commands use to initialize identity.
* It recreates the alpha `enableMCPIdentityCLI` function.
*/
export declare function enableMCPIdentityCLI(options?: CLIIdentityOptions): Promise<CLIIdentityResult>;