You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Retrieve the Perplexity API key from environment variables
@@ -455,13 +476,24 @@ export async function performSearch(
455
476
// Initialize the server with tool metadata and capabilities
456
477
constserver=newServer(
457
478
{
458
-
name: "example-servers/perplexity-ask",
459
-
version: "0.1.0",
479
+
name: "io.github.perplexityai/mcp-server",
480
+
version: "0.4.0",
460
481
},
461
482
{
462
483
capabilities: {
463
484
tools: {},
464
485
},
486
+
instructions: `You are the Perplexity MCP Server. Use these tools appropriately:
487
+
488
+
- perplexity_search: For quick web searches when you need current information or facts. Returns ranked search results.
489
+
490
+
- perplexity_ask: For general questions and conversational queries with real-time web search using the sonar-pro model.
491
+
492
+
- perplexity_research: For deep, comprehensive research requiring thorough analysis using the sonar-deep-research model. Use this for complex topics that require detailed investigation.
493
+
494
+
- perplexity_reason: For complex analytical tasks requiring advanced reasoning using the sonar-reasoning-pro model. Use this for logical problems, analysis, and decision-making.
495
+
496
+
When using perplexity_research or perplexity_reason, consider setting strip_thinking=true to save context tokens if the reasoning process isn't needed in the final output.`,
0 commit comments