- Home
- MCP servers
- Second Opinion
Second Opinion
- typescript
0
GitHub Stars
typescript
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"mcp-mirror-politwit1984_second-opinion-mcp-server": {
"command": "node",
"args": [
"/path/to/second-opinion-server/build/index.js"
],
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY",
"PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY",
"STACK_EXCHANGE_KEY": "YOUR_STACK_EXCHANGE_KEY"
}
}
}
}Second Opinion MCP Server provides AI-powered coding problem assistance by combining insights from Gemini AI, Stack Exchange, and Perplexity AI. It detects language from file context, extracts and formats code snippets, and can generate Markdown reports while staying aware of your project’s Git history for contextual answers.
How to use
You connect to the server through an MCP client and request solutions for coding problems. Use it when you want a detailed, source-backed explanation of a problem, including relevant code context, language detection, and a formatted solution report. The server is designed to return actionable guidance that you can apply directly to your project.
How to install
Prerequisites: you need Node.js and npm installed on your development machine.
Step 1: Install dependencies for the MCP server package.
npm install
Step 2: Build the MCP server project.
npm run build
Step 3: Configure the MCP settings with the second opinion server. Use the provided mcpServers configuration to enable the stdio-based local server. Replace paths and API keys with your own values.
{
"mcpServers": {
"second_opinion": {
"command": "node",
"args": ["/path/to/second-opinion-server/build/index.js"],
"env": {
"GEMINI_API_KEY": "YOUR_GEMINI_API_KEY",
"PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY",
"STACK_EXCHANGE_KEY": "YOUR_STACK_EXCHANGE_KEY"
}
}
}
}
Step 4: Start the server by running the runtime command shown in your MCP configuration. A typical start command mirrors the runtime shown in the setup snippet.
Additional setup notes
Environment variables are required to enable AI integrations. Provide your Gemini, Perplexity, and Stack Exchange keys. The Stack Exchange key is optional and allows anonymous access if not supplied.
You can monitor and adjust settings in the MCP management interface to ensure the second-opinion service has access to the AI APIs and the build output path is correct.
Available tools
get_second_opinion
Primary MCP tool to obtain AI-powered insights and solutions for coding problems.
auto_language_detect
Automatic language detection from file extensions or code snippets to tailor responses.
snippet_extraction
Extracts and formats code snippets from context to present clean, copy-ready code.
markdown_report
Generates a Markdown-formatted report with the proposed solution and rationale.
git_context
Gathers file context informed by Git history to improve relevance of recommendations.