@kya-os/cli
Version:
CLI for MCP-I setup and management
24 lines • 919 B
TypeScript
/**
* Persistent agent metadata written at registration time so later commands
* (notably `mcpi dco setup`) know the agent's public name, slug, and URL
* without another API round trip. Lives next to identity.json but contains
* no key material (claimUrl may embed a short-lived claim capability; the
* whole .mcpi directory is gitignored).
*/
export interface AgentMetadata {
id?: string;
slug?: string;
name?: string;
url?: string;
did?: string;
claimUrl?: string;
registeredAt?: string;
}
export declare function readAgentMetadata(cwd: string): AgentMetadata | null;
/**
* Merge the given fields into .mcpi/agent.json, creating the directory and
* file when needed. Existing fields are preserved unless overwritten by a
* defined value in `meta`.
*/
export declare function writeAgentMetadata(cwd: string, meta: AgentMetadata): void;
//# sourceMappingURL=agent-metadata.d.ts.map