UNPKG

@aashari/boilerplate-mcp-server

Version:

TypeScript Model Context Protocol (MCP) server boilerplate providing IP lookup tools/resources. Includes CLI support and extensible structure for connecting AI systems (LLMs) to external data sources like ip-api.com. Ideal template for creating new MCP in

24 lines (23 loc) 803 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IpAddressToolArgs = void 0; const zod_1 = require("zod"); /** * Zod schema for the IP address tool arguments. */ exports.IpAddressToolArgs = zod_1.z .object({ // Note: The ipAddress itself is handled as a separate optional positional argument in the tool/CLI, // not as part of the options object validated by this schema. includeExtendedData: zod_1.z .boolean() .optional() .default(false) .describe('Whether to include extended data (ASN, host, organization, etc.). Requires API token.'), useHttps: zod_1.z .boolean() .optional() .default(true) .describe('Whether to use HTTPS for the API call (recommended).'), }) .strict();