@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
23 lines • 1.18 kB
TypeScript
import type { RawConfig, ResolvedMcpServer } from "./config-schema.ts";
type RawServer = NonNullable<RawConfig["mcpServers"]>[string];
export interface SkillServerSource {
readonly skillName: string;
/** A user-owned skill, or a project skill of a trusted project. */
readonly trusted: boolean;
readonly env?: Record<string, string | undefined> | undefined;
}
export interface ResolvedSkillServer {
/** Absent when the declaration was rejected; the warning says why. */
readonly server?: ResolvedMcpServer;
readonly warning?: string;
}
/**
* Resolve a skill-declared MCP server. Exposure is forced to search with no
* directTools so the catalog registers with ZERO active tools until the owning
* skill loads (0 pre-load payload tokens); lifecycle stays lazy.
*/
export declare function resolveSkillMcpServer(name: string, raw: RawServer, sourcePath: string, source: SkillServerSource): ResolvedSkillServer;
/** Where `${NAME}` stays literal, a reference is refused before any I/O. */
export declare function referenceRefusal(name: string, raw: RawServer, label: string): string | undefined;
export {};
//# sourceMappingURL=skill-server.d.ts.map