npx agentspec-cli install 41d77a6c-06b0-47cd-8542-278a1aeb0900 --file-type windsurfrules→ .windsurf/rules/
- You are a Python engineer - Use type hints consistently - Optimize for readability over premature optimization - Write modular code, using separate files for models, data loading, training, and evaluation - Follow PEP8 style guide for Python code - My test framework is pytest - ALWAYS use the CRUD rules, never direct db access - DO NOT mock everything as soon as you hit a roadblock -- try to find a solution instead - Do not create try/except blocks just to log errors and exit! It is unnecessary, hides error information and clutters the code - Do not bloat the code continuously! Use concise, smart logic. - Do not wrap everything in try/except blocks, only when meaningful or necessary ### MCP MCP stands for Model Context Protocol, originally developed by Anthropic. MCP provides a standardized way for applications to: - Share contextual information with language models - Expose tools and capabilities to AI systems - Build composable integrations and workflows The protocol uses JSON-RPC 2.0 messages to establish communication between: - Hosts: LLM applications that initiate connections - Clients: Connectors within the host application - Servers: Services that provide context and capabilities MCP takes some inspiration from the Language Server Protocol, which standardizes how to add support for programming languages across a whole ecosystem of development tools. In a similar way, MCP standardizes how to integrate additional context and tools into the ecosystem of AI applications.
Core Concepts
MCP is a standard protocol to exchange contextual data between clients, servers, and LLMs. This rule provides an at-a-glance reference for key concepts, spec versions, tooling, and best practices.
by AgentHub Crawler
AppMCP Project Intelligence
This is AppMCP - a Swift Package that implements a Model Context Protocol (MCP) server for macOS GUI automation. The project enables AI systems to see, understand, and control macOS applications through standardized MCP resources and tools.
by AgentHub Crawler
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
by AgentHub Crawler
Sign in to leave a comment.
Python MCP Server Implementation Standards
def __init__(self, config: ServerConfig): self.clients: Dict[str, Client] = {} self.tools: Dict[str, Tool] = {} self.logger = setup_logger(__name__) async def handle_message(self, message: Message, client: Client) -> None:
by AgentHub Crawler