UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

107 lines • 3.98 kB
import type { Client } from "@modelcontextprotocol/sdk/client/index.js"; import type { RequestOptions } from "@modelcontextprotocol/sdk/shared/protocol.js"; import { z } from "zod"; import type { McpJsonSchema } from "../tool-contracts.ts"; export declare function listModernTools(client: Client, params?: Parameters<Client["listTools"]>[0], options?: RequestOptions): Promise<{ nextCursor?: string | undefined; tools: { description?: string | undefined; annotations?: { title?: string | undefined; readOnlyHint?: boolean | undefined; destructiveHint?: boolean | undefined; idempotentHint?: boolean | undefined; openWorldHint?: boolean | undefined; } | undefined; execution?: { taskSupport?: "forbidden" | "optional" | "required" | undefined; } | undefined; _meta?: Record<string, unknown> | undefined; icons?: { src: string; mimeType?: string | undefined; sizes?: string[] | undefined; theme?: "dark" | "light" | undefined; }[] | undefined; name: string; title?: string | undefined; inputSchema: boolean | Record<string, z.JSONType>; outputSchema?: boolean | Record<string, z.JSONType> | undefined; }[]; }>; export declare function callModernTool(client: Client, params: Parameters<Client["callTool"]>[0], outputSchema: McpJsonSchema | undefined, options?: RequestOptions): Promise<{ isError?: boolean | undefined; structuredContent?: z.JSONType | undefined; content?: ({ type: "text"; text: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record<string, unknown> | undefined; } | { type: "image"; data: string; mimeType: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record<string, unknown> | undefined; } | { type: "audio"; data: string; mimeType: string; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record<string, unknown> | undefined; } | { uri: string; description?: string | undefined; mimeType?: string | undefined; size?: number | undefined; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: { [x: string]: unknown; } | undefined; icons?: { src: string; mimeType?: string | undefined; sizes?: string[] | undefined; theme?: "dark" | "light" | undefined; }[] | undefined; name: string; title?: string | undefined; type: "resource_link"; } | { type: "resource"; resource: { uri: string; mimeType?: string | undefined; _meta?: Record<string, unknown> | undefined; text: string; } | { uri: string; mimeType?: string | undefined; _meta?: Record<string, unknown> | undefined; blob: string; }; annotations?: { audience?: ("assistant" | "user")[] | undefined; priority?: number | undefined; lastModified?: string | undefined; } | undefined; _meta?: Record<string, unknown> | undefined; })[] | undefined; }>; //# sourceMappingURL=tools.d.ts.map