MCP Coding Advisor
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Coding Advisor troubleshoot why my NestJS JWT guard blocks WebSocket connections"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Coding Advisor
Senior developer escalation MCP server that provides troubleshooting and implementation guidance.
Overview
This MCP server exposes a single advise tool that coding agents (like Kilo Code) can call to get senior-engineer guidance. It enriches requests with skills lookup, Context7 documentation, and web search when needed, then calls Claude via APIPie.ai to generate structured responses.
Related MCP server: MCP Help Request Server
Features
Two modes: Troubleshoot bugs/errors or get implementation plans for new features
Enrichment pipeline: Parallel skills lookup and Context7 documentation search
Intelligent fallback: Web search augmentation when no enrichment data is found
Structured output: Consistent markdown formatting for both modes
Production-ready: Robust error handling, timeouts, and logging to stderr
Installation
npm installDevelopment
# Run in development mode (uses tsx)
npm run dev
# Type check
npm run type-check
# Build for production
npm run build
# Run built version
npm startConfiguration
Environment Variables
Create a .env file (for development) or set these in your MCP server configuration:
# Required
APIPIE_API_KEY=your-apipie-key-here
# Optional
APIPIE_MODEL=claude-sonnet-4-5 # or any APIPie-supported model
CONTEXT7_API_KEY=your-context7-key-here # for higher rate limitsKilo Code MCP Configuration
Add the following to your Kilo Code MCP settings file:
Linux: ~/.config/Code/User/globalStorage/kilocode.kilo-code/settings/mcp_settings.json
macOS: ~/Library/Application Support/Code/User/globalStorage/kilocode.kilo-code/settings/mcp_settings.json
Windows: %APPDATA%\Code\User\globalStorage\kilocode.kilo-code\settings\mcp_settings.json
{
"mcpServers": {
"coding-advisor": {
"command": "npx",
"args": ["tsx", "/home/kilroy/build/escalate_mcp/src/index.ts"],
"env": {
"APIPIE_API_KEY": "your-apipie-key-here",
"CONTEXT7_API_KEY": "your-context7-key-here"
}
}
}
}Important: Use the absolute path to your project directory. The example above assumes the project is at
/home/kilroy/build/escalate_mcp.
Usage
The agent calls the advise tool with a JSON string payload. Two modes are supported:
Troubleshoot Mode
{
"mode": "troubleshoot",
"tech": "nestjs",
"task": "JWT guard blocking WebSocket connections",
"errorOutput": "UnauthorizedException: Unauthorized...",
"failedAttempts": [
{
"description": "Added @UseGuards(JwtAuthGuard) to gateway class",
"outcome": "All connections rejected immediately"
}
],
"codeSnippets": [
{
"filename": "chat.gateway.ts",
"code": "@UseGuards(JwtAuthGuard)\n@WebSocketGateway()\nexport class ChatGateway {}"
}
]
}Implement Mode
{
"mode": "implement",
"tech": "react",
"featureDescription": "Add dark mode toggle to the header",
"filesTouched": [
{
"path": "src/components/Header.tsx",
"relevantContent": "export default function Header() {\n return (\n <header>\n <h1>My App</h1>\n </header>\n );\n}"
}
],
"constraints": "Must use existing theme context, no new dependencies"
}Response Format
Troubleshoot Mode Response
Issue: One clear sentence naming the problem
Why previous attempts missed: Explanation of why each failed attempt didn't work
Root cause: The actual technical reason, specific
Solution: Step-by-step fix, no fluff
Example: Minimal targeted code snippet showing the fix
Watch out for: Gotchas, follow-up issues, things to verify after the fix
Implement Mode Response
Overview: 2-3 sentences on the approach and why
Files to modify: Markdown table with File, Change, Reason
Implementation steps: Numbered, in the order to implement them
Key code patterns: Critical interfaces, function signatures, or tricky logic
Integration points: How this feature wires into the existing system
Risks / watch out for: Gotchas specific to this codebase or stack
Architecture
The server follows a clean pipeline:
Input Validation: Zod schema validation of the JSON payload
Enrichment: Parallel skills lookup (via
npx skills find) and Context7 documentation searchPrompt Building: System prompt assembly with enrichment data, user message with structured format requirements
LLM Call: APIPie.ai call with optional web search prefix
Response Assembly: Metadata header + LLM response
Error Handling
Schema validation errors return clear messages for agent self-correction
Skills and Context7 failures degrade gracefully (treated as
found: false)LLM call failures return
isError: truewith descriptive messagesAll unexpected errors are caught and logged to stderr
Project Structure
src/
index.ts # MCP server entrypoint, tool registration, orchestration
schema.ts # Zod schemas for both request modes
prompt-builder.ts # System prompt + user message assembly
skills.ts # npx skills find subprocess runner
context7.ts # Context7 REST API client
llm.ts # APIPie.ai call (OpenAI-compatible)Dependencies
@modelcontextprotocol/sdk: Official MCP server SDKzod: Runtime schema validation and type inferencetypescript,tsx,@types/node: Development tooling
License
MIT
Available Tools
1 tooladviseA
Get senior-engineer guidance: either troubleshoot a bug/error, or get an implementation plan for a new feature. Set mode="troubleshoot" or mode="implement".
Inputs: input (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no risk of selecting the wrong tool. The tool's two modes are clearly separated by the `mode` parameter, so agents can distinguish troubleshooting from implementation guidance.
The single tool name `advise` is a clear, concise verb that accurately reflects its purpose. With only one tool there is no naming inconsistency, and the name follows a readable convention.
A one-tool surface is thin even for a focused coding advisor, and it forces two distinct workflows into a single tool via a mode switch. The count is defensible but borderline, as specialized operations could be exposed more cleanly.
The tool covers the two explicitly stated workflows: troubleshooting and implementation planning. However, common advisory needs such as code review, refactoring guidance, architecture assessment, or test strategy are not represented as distinct operations.
Maintenance
Related MCP Connectors
Retrieve citation-ready technical context and coordinate evidence-backed work between AI agents.
Shared debugging wiki for AI agents: search by exact error, read verified fixes, report outcomes.
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Issue tracker where coding agents claim sub-issues, record sessions and escalate when blocked.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to consult expert models (Claude, GPT, Gemini, DeepSeek, Z.ai) for technical guidance, code reviews, and architectural advice without switching context.414 npm4MIT
- AlicenseNot gradedqualityDmaintenanceCaptures comprehensive context about development issues and facilitates human assistance through structured API-based help requests.ISC
- FlicenseNot gradedqualityDmaintenanceProvides AI-powered, context-aware development guidance with tools for coding rules, development skills, steering instructions, and custom AI-curated advice.-
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to request a second opinion from a different frontier model via a single tool call, with PII scrubbed before transit, live web search, and support for Claude, ChatGPT, Cursor, and Gemini.Apache 2.0