UNPKG

perplexity-mcp-server

Version:

A Perplexity API Model Context Protocol (MCP) server that unlocks Perplexity's search-augmented AI capabilities for LLM agents. Features robust error handling, secure input validation, and transparent reasoning with the showThinking parameter. Built with

31 lines (30 loc) 882 B
export interface McpContent { type: "text"; text: string; } export interface McpToolResponse { content: McpContent[]; isError?: boolean; } export interface ResourceContent { uri: string; text: string; mimeType?: string; } export interface ResourceResponse { contents: ResourceContent[]; } export interface PromptMessageContent { type: "text"; text: string; } export interface PromptMessage { role: "user" | "assistant"; content: PromptMessageContent; } export interface PromptResponse { messages: PromptMessage[]; } export declare const createToolResponse: (text: string, isError?: boolean) => McpToolResponse; export declare const createResourceResponse: (uri: string, text: string, mimeType?: string) => ResourceResponse; export declare const createPromptResponse: (text: string, role?: "user" | "assistant") => PromptResponse;