test: bind MCP validation and cleanup faults to selected inputs

This commit is contained in:
morluto committed 2026-10-26 23:06:36 +08:00
1 parent fef76a02fb
commit 99062feaa7
7 files changed
+53 -26

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import type {
Client,
CallToolRequestOptions,
} from "@modelcontextprotocol/client";
/** Call with the server's advertised schema; callers cannot replace it. */
export function artifactMcpCall(
client: Client,
parameters: Parameters<Client["callTool"]>[0],
options?: Omit<CallToolRequestOptions, "toolDefinition">,
): ReturnType<Client["callTool"]>;