UNPKG

@iqai/mcp-near-agent

Version:
18 lines (17 loc) 472 B
import { Server } from "@modelcontextprotocol/sdk/dist/server/index.js"; import type { z } from "zod"; export type AgentEvent = { eventType: string; requestId: string; payload: any; sender: string; timestamp: number; }; export interface Tool<P = any, S extends z.ZodTypeAny = z.ZodTypeAny> { name: string; description: string; parameters: S; execute: (params: z.infer<S>, context: { server: Server; }) => Promise<string>; }