skills/smithery.ai/mcp-server-enhancement

mcp-server-enhancement

Installation
SKILL.md

MCP Server Enhancement Skill

This skill provides a systematic approach to extending the AI Counsel MCP server (server.py) with new tools while maintaining protocol compliance, stdio safety, and proper error handling.

Architecture Overview

The AI Counsel MCP server communicates via stdio (stdin/stdout) using the Model Context Protocol. Key architectural constraints:

  • Stdio Safety: stdout is RESERVED for MCP protocol JSON. All logging MUST go to file (mcp_server.log) or stderr
  • Protocol Compliance: Tools must follow MCP specification for request/response format
  • Type Safety: Use Pydantic models for all request/response validation
  • Error Isolation: Tool failures should return structured error responses, not crash the server
  • Async First: All tool handlers are async functions using asyncio

Current Tool Architecture

Installs
1
First Seen
Mar 20, 2026