mcp-decisive
Version:
MCP server for WRAP decision-making framework with structured output
67 lines • 1.87 kB
TypeScript
import { z } from 'zod';
import { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
/**
* Minimal MCP Tool Example
*
* This demonstrates the basic MCP Tool pattern with structured output:
* - Zod schema for input/output validation
* - Title field for human-friendly display name
* - Simple handler function
* - Structured output response
*/
declare const exampleSchema: z.ZodObject<{
message: z.ZodString;
count: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
message: string;
count?: number | undefined;
}, {
message: string;
count?: number | undefined;
}>;
export type ExampleParams = z.infer<typeof exampleSchema>;
export declare const exampleParams: {
message: z.ZodString;
count: z.ZodOptional<z.ZodNumber>;
};
export declare const exampleHandler: (args: ExampleParams) => Promise<CallToolResult>;
export declare const exampleTool: {
name: string;
title: string;
description: string;
parameters: {
message: z.ZodString;
count: z.ZodOptional<z.ZodNumber>;
};
outputSchema: z.ZodObject<{
processed: z.ZodString;
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
value: z.ZodString;
}, "strip", z.ZodTypeAny, {
value: string;
id: string;
}, {
value: string;
id: string;
}>, "many">;
timestamp: z.ZodString;
}, "strip", z.ZodTypeAny, {
processed: string;
items: {
value: string;
id: string;
}[];
timestamp: string;
}, {
processed: string;
items: {
value: string;
id: string;
}[];
timestamp: string;
}>;
handler: (args: ExampleParams) => Promise<CallToolResult>;
};
export {};
//# sourceMappingURL=mcp-tool-example.d.ts.map