Second Opinion MCP Server logo

Second Opinion MCP Server

by PoliTwit1984

The Second Opinion MCP Server provides AI-powered assistance for coding problems by combining insights from Google's Gemini AI, Stack Overflow accepted answers, and Perplexity AI analysis. It offers detailed solutions with context from multiple sources.

View on GitHub

Last updated: N/A

What is Second Opinion MCP Server?

The Second Opinion MCP Server is a tool that leverages multiple AI and knowledge sources to provide comprehensive solutions for coding problems. It integrates Google's Gemini AI, Stack Overflow accepted answers, and Perplexity AI to offer context-rich assistance.

How to use Second Opinion MCP Server?

  1. Install dependencies using npm install. 2. Build the server using npm run build. 3. Configure the server in your MCP settings, providing the path to the built index.js file and API keys for Gemini, Perplexity, and Stack Exchange. The server exposes a get_second_opinion tool which takes a JSON input describing the coding problem and returns AI-powered insights and solutions.

Key features of Second Opinion MCP Server

  • Detailed solutions for coding problems with context from multiple sources

  • Automatic language detection from file extensions

  • Code snippet extraction and formatting

  • Markdown report generation for solutions

  • Git-aware file context gathering

Use cases of Second Opinion MCP Server

  • Debugging code errors

  • Finding alternative solutions to coding problems

  • Understanding complex code concepts

  • Generating documentation for code

  • Improving code quality and performance

FAQ from Second Opinion MCP Server

What API keys are required to run the server?

You need API keys for Google's Gemini AI and Perplexity AI. A Stack Exchange API key is optional; if not provided, the server will use anonymous access.

How does the server determine the programming language of the code?

The server automatically detects the language based on the file extension of the provided code file.

What kind of input does the get_second_opinion tool expect?

The tool expects a JSON object with fields for the goal, error message, code snippet, solutions tried, and file path (optional).

How are the solutions presented?

Solutions are presented in a markdown report format, including explanations, code examples, and best practices.

What if I don't have a Stack Exchange API key?

The server will still function, but it will use anonymous access to Stack Exchange, which may have rate limits.