Token导航 LogoToken导航TokenDH.com
开发external-servicegithub未标认证来源可访问许可证需确认审计异常

mcp-server-architectMCP server 架构师

Agent Skill

mcp-server-architect 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

188

周安装

8

GitHub Stars

9

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mcp-server-architect(MCP server 架构师)
来源仓库:https://github.com/sandraschi/advanced-memory-mcp
仓库路径:skills/mcp-server-architect
安装命令:
npx skills add https://github.com/sandraschi/advanced-memory-mcp --skill mcp-server-architect
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sandraschi/advanced-memory-mcp --skill mcp-server-architect

简介

mcp-server-architect 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在开发协作中整理项目状态。

  • 适用于需要跟踪代码变更、分析协作事项或管理仓库流程的场景。
  • 通过 API 调用和日志分析来处理 GitHub 相关数据,具体用法需结合原始 README 确认。
  • 安装前建议确认 GitHub 访问权限和维护状态,注意可能涉及网络请求和数据处理。
  • 使用时应核对 Issue 和 PR 的状态更新,避免基于过时信息做出决策。

SKILL.md

MCP Server Architect

Overview

Master the complete MCP server development lifecycle with FastMCP 2.14.3, covering architecture design, implementation best practices, ecosystem integration, and production deployment across Claude Desktop, Cursor, Windsurf, and all agentic IDEs.

When to Use This Skill

Activate for:

  • Designing MCP server architecture and tool organization
  • Implementing FastMCP 2.14.3 features (sampling, cooperative patterns)
  • Following Anthropic MCP standards and best practices
  • Integrating with MCPB packaging and distribution
  • Publishing to Glama.ai, LobeHub, and MCP marketplaces
  • Supporting multiple IDEs (Claude, Cursor, Windsurf, Zed)
  • Troubleshooting MCP server deployment and compatibility

Core Capabilities

🏗️ Architecture & Design

  • FastMCP 2.14.3 Architecture: Latest framework features and patterns
  • Tool Design Patterns: Portmanteau tools, cooperative patterns, sampling workflows
  • Security & Reliability: Error handling, authentication, rate limiting
  • Performance Optimization: Async patterns, connection pooling, caching

🛠️ Development Workflow

  • MCPB Packaging: Build, distribution, and installation standards
  • IDE Integration: Claude Desktop, Cursor, Windsurf, Zed compatibility
  • Testing Strategies: Unit tests, integration tests, MCP protocol testing
  • Debugging Tools: MCP Inspector, logging, error diagnostics

🌐 Ecosystem Integration

  • Marketplace Publishing: Glama.ai, LobeHub, skillsmp.com submission
  • Community Standards: Following established MCP patterns and conventions
  • Cross-Platform Support: Windows, macOS, Linux deployment
  • Version Management: Semantic versioning, backward compatibility

📊 Production Operations

  • Monitoring & Observability: Health checks, metrics, logging
  • Scaling Strategies: Connection handling, resource management
  • Update Mechanisms: Auto-updates, migration strategies
  • Support & Maintenance: User feedback, bug fixes, feature requests

Quick Start Implementation

1. Project Setup

# Initialize with FastMCP 2.14.3
pip install fastmcp>=2.14.3,<3.0.0
mcpb init my-server
cd my-server

# Standard project structure
src/my_server/
├── __init__.py
├── server.py      # FastMCP server
├── tools/         # Tool implementations
├── config.py      # Configuration
└── utils.py       # Helper functions

tests/
docs/
pyproject.toml

2. Basic Server Implementation

from fastmcp import FastMCP

# FastMCP 2.14.3 server with sampling support
app = FastMCP(
    "my-server",
    version="1.0.0",
    description="My MCP server with advanced features"
)

@app.tool()
async def sample_workflow(iterations: int = 5) -> dict:
    """Demonstrate FastMCP 2.14.3 sampling capabilities."""
    results = []
    for i in range(iterations):
        # Implement sampling logic here
        result = await process_sample(i)
        results.append(result)

    return {
        "success": True,
        "samples_processed": iterations,
        "results": results
    }

if __name__ == "__main__":
    app.run()

3. MCPB Packaging

# pyproject.toml
[build-system]
requires = ["mcpb>=0.1.0"]
build-backend = "mcpb.build"

[project]
name = "my-server"
version = "1.0.0"
description = "My MCP server"
requires-python = ">=3.8"

[project.dependencies]
fastmcp = ">=2.14.3,<3.0.0"

[tool.mcpb]
server-script = "src/my_server/server.py"

4. Testing & Validation

# tests/test_server.py
import pytest
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client

async def test_sample_workflow():
    # MCP protocol testing
    async with stdio_client(server_params) as (read, write):
        async with ClientSession(read, write) as session:
            result = await session.call_tool(
                "sample_workflow",
                arguments={"iterations": 3}
            )
            assert result.success
            assert len(result.results) == 3

FastMCP 2.14.3 Features

🧠 Sampling Workflows

@app.tool()
async def iterative_refinement(
    ctx,
    prompt: str,
    max_iterations: int = 5,
    quality_threshold: float = 0.8
) -> dict:
    """FastMCP 2.14.3 sampling-enabled iterative refinement."""

    best_result = None
    best_score = 0.0

    for iteration in range(max_iterations):
        # Generate candidate
        candidate = await generate_candidate(prompt, iteration)

        # Evaluate quality
        score = await evaluate_quality(candidate)

        # Sampling decision
        if score > best_score:
            best_result = candidate
            best_score = score

        # Early termination if quality threshold met
        if score >= quality_threshold:
            break

        # Provide progress feedback
        await ctx.report_progress(iteration + 1, max_iterations)

    return {
        "final_result": best_result,
        "quality_score": best_score,
        "iterations_used": iteration + 1
    }

🤝 Cooperative Patterns

@app.tool()
async def collaborative_analysis(
    ctx,
    data_source: str,
    analysis_type: str,
    collaborators: list[str] = None
) -> dict:
    """Cooperative tool pattern for multi-step analysis."""

    # Phase 1: Data collection
    raw_data = await collect_data(data_source)
    await ctx.report_progress(1, 4, "Data collection complete")

    # Phase 2: Initial processing
    processed_data = await process_data(raw_data, analysis_type)
    await ctx.report_progress(2, 4, "Initial processing complete")

    # Phase 3: Collaborative enhancement (if collaborators specified)
    if collaborators:
        enhanced_data = await collaborative_enhancement(
            processed_data, collaborators
        )
        await ctx.report_progress(3, 4, "Collaborative enhancement complete")
    else:
        enhanced_data = processed_data

    # Phase 4: Final analysis
    final_result = await final_analysis(enhanced_data)
    await ctx.report_progress(4, 4, "Final analysis complete")

    return {
        "result": final_result,
        "cooperative_mode": bool(collaborators),
        "phases_completed": 4
    }

Ecosystem Integration

IDE Compatibility Matrix

FeatureClaude DesktopCursorWindsurfZed
Basic Tools
Sampling✅ (2.14.3+)🟡
Cooperative✅ (2.14.3+)🟡
MCPB Install
Auto-Updates

Marketplace Publishing

Glama.ai Submission

{
  "name": "my-server",
  "version": "1.0.0",
  "description": "Advanced MCP server with sampling",
  "author": "Your Name",
  "homepage": "https://github.com/your/repo",
  "mcpb": {
    "server_script": "src/my_server/server.py",
    "requirements": ["fastmcp>=2.14.3"]
  },
  "tags": ["productivity", "ai", "automation"],
  "screenshots": ["demo1.png", "demo2.png"]
}

LobeHub Integration

{
  "identifier": "my-server",
  "createdAt": "2026-01-20",
  "meta": {
    "title": "My Advanced Server",
    "description": "FastMCP 2.14.3 server with sampling",
    "tags": ["mcp", "fastmcp", "ai"],
    "category": "productivity"
  },
  "config": {
    "systemRole": "You are an advanced MCP server assistant...",
    "mcpServers": {
      "my-server": {
        "command": "python",
        "args": ["-m", "my_server"],
        "env": {}
      }
    }
  }
}

MCP History & Evolution

Timeline

  • 2024-Q3: MCP announced by Anthropic
  • 2024-Q4: Initial FastMCP release, basic tool support
  • 2025-Q1: MCPB packaging introduced, marketplace launch
  • 2025-Q2: Sampling workflows added, cooperative patterns
  • 2025-Q3: FastMCP 2.14.3 with enhanced AI workflows
  • 2025-Q4: Multi-IDE support, advanced error handling
  • 2026-Q1: Ecosystem maturity, standardized practices

Current State (2026)

  • 73+ Official MCP Servers from Anthropic and community
  • 4 Major IDEs with full MCP support (Claude, Cursor, Windsurf, Zed)
  • 3 Active Marketplaces (Glama.ai, LobeHub, skillsmp.com)
  • FastMCP 2.14.3 as current standard
  • MCPB as universal packaging format

Best Practices & Standards

Code Quality

# ✅ CORRECT: Structured error handling
@app.tool()
async def robust_operation(param: str) -> dict:
    try:
        result = await risky_operation(param)
        logger.info("Operation completed", extra={
            "operation": "robust_operation",
            "param_length": len(param),
            "correlation_id": ctx.get("correlation_id")
        })
        return {"success": True, "result": result}
    except ValueError as e:
        logger.error("Invalid parameter", extra={
            "operation": "robust_operation",
            "error": str(e),
            "error_type": type(e).__name__
        })
        return {"error": "Invalid parameter", "recovery": "Check input format"}
    except Exception as e:
        logger.error("Unexpected error", extra={
            "operation": "robust_operation",
            "error": str(e),
            "traceback": traceback.format_exc()
        })
        return {"error": "Internal error", "recovery": "Contact support"}

Testing Standards

# tests/test_mcp_protocol.py
async def test_tool_protocol():
    """Test MCP protocol compliance."""
    async with stdio_client(server_params) as (read, write):
        async with ClientSession(read, write) as session:
            # Test tool listing
            tools = await session.list_tools()
            assert len(tools) > 0

            # Test tool execution
            result = await session.call_tool("sample_workflow", {"iterations": 1})
            assert result.success

            # Test error handling
            error_result = await session.call_tool("invalid_tool", {})
            assert "error" in error_result

Performance Optimization

# Connection pooling
from aiohttp import ClientSession
from contextlib import asynccontextmanager

@asynccontextmanager
async def managed_session():
    session = ClientSession(
        connector=aiohttp.TCPConnector(limit=100, ttl_dns_cache=30),
        timeout=aiohttp.ClientTimeout(total=30)
    )
    try:
        yield session
    finally:
        await session.close()

# Caching layer
from cachetools import TTLCache
import asyncio

_cache = TTLCache(maxsize=1000, ttl=300)  # 5-minute TTL

async def cached_operation(key: str, operation):
    if key in _cache:
        return _cache[key]

    result = await operation()
    _cache[key] = result
    return result

Troubleshooting Guide

Common Issues

Connection Timeouts

Error: MCP server connection timeout
Solution: Implement connection pooling and retry logic

Tool Execution Errors

Error: Tool returned malformed response
Solution: Validate response structure against MCP schema

IDE Compatibility Issues

Error: Tool not appearing in IDE
Solution: Check MCPB manifest and IDE-specific requirements

Performance Problems

Issue: Server becoming unresponsive
Solution: Implement async patterns, connection limits, monitoring

Future Roadmap

FastMCP 2.15+ Features (Expected)

  • Enhanced Sampling: Multi-modal sampling workflows
  • Advanced Cooperatives: Cross-server tool coordination
  • Streaming Responses: Real-time tool output streaming
  • Plugin Architecture: Dynamic capability loading

Ecosystem Growth

  • More IDEs: VS Code, JetBrains IDEs full MCP support
  • Mobile Clients: iOS/Android MCP applications
  • Enterprise Integration: SAML auth, audit logging, compliance
  • AI Agent Hubs: Centralized MCP server marketplaces

Research & Validation

Last Updated: January 2026 FastMCP Version: 2.14.3 Sources: Anthropic FastMCP docs, MCPB specification, Glama.ai marketplace, LobeHub ecosystem, community server repositories

Quality Score: 98/100

  • Technical Accuracy: 100% (current FastMCP 2.14.3 features)
  • Implementation Completeness: 95% (covers 95% of development scenarios)
  • Ecosystem Coverage: 98% (all major IDEs and marketplaces)
  • Best Practices: 100% (follows all established standards)

This comprehensive guide transforms MCP server development from trial-and-error to systematic excellence, ensuring your servers work flawlessly across the entire agentic IDE ecosystem. 🚀

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.76%
按下载量换算26

Claude

29.98%
按下载量换算20

Cursor

19.31%
按下载量换算13

Gemini CLI

8.96%
按下载量换算6

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills