Second Opinion MCP Server logo

Second Opinion MCP Server

by MCP-Mirror

The Second Opinion MCP Server provides AI-powered assistance for coding problems by combining insights from Google's Gemini AI, Stack Overflow, and Perplexity AI. It offers detailed solutions and context from multiple sources to help developers resolve coding issues efficiently.

View on GitHub

Last updated: N/A

What is Second Opinion MCP Server?

The Second Opinion MCP Server is an MCP server designed to provide AI-powered assistance for coding problems. It leverages Google's Gemini AI, Stack Overflow accepted answers, and Perplexity AI analysis to offer comprehensive solutions.

How to use Second Opinion MCP Server?

To use the server, first install the dependencies using npm install and build the server with npm run build. Then, configure the necessary environment variables (GEMINI_API_KEY, PERPLEXITY_API_KEY, STACK_EXCHANGE_KEY) in your MCP settings. The server provides a single tool, get_second_opinion, which accepts a JSON input schema containing details about the coding problem, such as the goal, error messages, code snippets, and solutions already tried.

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 React useEffect dependency errors

  • Finding solutions to complex coding problems

  • Understanding error messages and their root causes

  • Generating code snippets to fix coding issues

FAQ from Second Opinion MCP Server

What API keys are required to run this server?

You need a Google Gemini API key, a Perplexity AI API key, and optionally a Stack Exchange API key.

How does the server determine the programming language?

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

What kind of input does the get_second_opinion tool expect?

The tool expects a JSON object with fields like 'goal', 'error', 'code', 'solutionsTried', and 'filePath' to describe the coding problem.

Where can I find information about known issues and workarounds?

Check the errors.md file in the repository for a list of known issues and potential workarounds.

Can I use this server without providing a Stack Exchange API key?

Yes, the server can use anonymous access to Stack Exchange if you don't provide an API key. However, providing a key may improve performance and access limits.