UNPKG

mcp-cisco-support

Version:

MCP server for Cisco Support APIs including Bug Search and future tools

54 lines 1.66 kB
import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { Tool, Prompt, PromptMessage } from '@modelcontextprotocol/sdk/types.js'; interface CiscoApiResponse { bugs?: Array<{ bug_id: string; headline: string; status: string; severity: string; last_modified_date: string; [key: string]: any; }>; total_results?: number; [key: string]: any; } interface Logger { info: (message: string, data?: any) => void; error: (message: string, data?: any) => void; warn: (message: string, data?: any) => void; } interface ToolArgs { [key: string]: any; } export declare const logger: Logger; export declare function setLogging(enabled: boolean): void; export declare function getAvailableTools(): Tool[]; export declare function getAvailablePrompts(): Prompt[]; export declare function generatePrompt(name: string, args: Record<string, any>): PromptMessage[]; export declare function executeTool(name: string, args: ToolArgs): Promise<CiscoApiResponse>; export declare function createMCPServer(): Server; export declare const mcpServer: Server<{ method: string; params?: { [x: string]: unknown; _meta?: { [x: string]: unknown; progressToken?: string | number | undefined; } | undefined; } | undefined; }, { method: string; params?: { [x: string]: unknown; _meta?: { [x: string]: unknown; } | undefined; } | undefined; }, { [x: string]: unknown; _meta?: { [x: string]: unknown; } | undefined; }>; export {}; //# sourceMappingURL=mcp-server.d.ts.map