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
13 lines (12 loc) • 610 B
TypeScript
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
/**
* Creates, configures, and connects the main MCP server instance.
* This function initializes the server with configuration values, registers
* available resources and tools, and establishes communication via stdio.
*
* @async
* @function createMcpServer
* @returns {Promise<McpServer>} A promise that resolves with the configured and connected McpServer instance.
* @throws {Error} Throws an error if critical failures occur during registration or connection.
*/
export declare const createMcpServer: () => Promise<McpServer>;