Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计异常

moai-connector-mcpmoai connector MCP 搜索

Agent Skill

moai-connector-mcp 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

194

周安装

8

GitHub Stars

公开资料未说明

下载量

63
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rdmptv/adbautoplayer --skill moai-connector-mcp

简介

用于查找、检索和筛选相关信息,适合基于任务场景定位内容。

  • 支持关键词输入和结果过滤,便于 Agent 快速获取所需资料。
  • 通过 GitHub 安装,需确认是否触发联网或外部服务调用。
  • 权限范围和维护状态未明,建议在使用前测试小规模用例。
  • 适用于 Codex、Claude、Cursor 和 Gemini CLI,功能以仓库文档为准。

SKILL.md

Quick Reference

MCP Server Development Framework

What it does: Comprehensive guide to building, testing, and deploying custom MCP (Model Context Protocol) servers using FastMCP framework for exposing tools, resources, and prompts to Claude and other AI models.

Core Capabilities:

  • ✅ FastMCP server development with type-safe decorators
  • ✅ Tool/Resource/Prompt architecture patterns
  • ✅ Pydantic validation and error handling
  • ✅ OAuth2 & API Key authentication patterns
  • ✅ Performance monitoring and health checks
  • ✅ Docker & Kubernetes deployment
  • ✅ Testing strategies and validation
  • ✅ Production-grade patterns (caching, circuit breaker, rate limiting)

When to Use:

  • Building custom MCP servers for internal tools
  • Exposing existing services via MCP protocol
  • Implementing enterprise authentication patterns
  • Deploying MCP servers in production environments
  • Optimizing server performance and reliability
  • Testing MCP server implementations

Implementation Guide

Getting Started with FastMCP

Installation:

pip install fastmcp

Minimum Server:

from fastmcp import FastMCP

server = FastMCP("my-server")

@server.tool()
def hello_world(name: str) -> str:
    """Greet someone."""
    return f"Hello, {name}!"

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

Core Concepts:

  1. Tools: Functions Claude can invoke with validated parameters
  2. Resources: URI-based data endpoints for exposing information
  3. Prompts: Reusable conversation templates and system prompts

Detailed guide: getting-started.md


MCP Server Architecture

Three-Component Pattern:

┌─────────────────────────────────────────┐
│         MCP Server (FastMCP)            │
├─────────────────────────────────────────┤
│  Tools (Functions)                      │
│  • @server.tool() decorator             │
│  • Pydantic validation                  │
│  • Workflow-optimized naming            │
│                                         │
│  Resources (Data Endpoints)             │
│  • @server.resource("uri://...") decor  │
│  • Streaming support                    │
│  • Permission-based access              │
│                                         │
│  Prompts (Templates)                    │
│  • @server.prompt("name") decorator     │
│  • Parameter injection                  │
│  • Multi-turn workflows                 │
└─────────────────────────────────────────┘
        ↓
    MCP Protocol (JSON-RPC 2.0)
        ↓
┌─────────────────────────────────────────┐
│    Claude / LLM Client                  │
└─────────────────────────────────────────┘

Design Patterns: server-design.md


Production-Ready Server Example

from fastmcp import FastMCP
from pydantic import Field
from typing import Literal, Optional

server = FastMCP("enterprise-database-server")

@server.tool()
def search_records(
    query: str,
    table: Literal["users", "products", "orders"],
    limit: int = Field(default=10, ge=1, le=100),
    filters: Optional[dict] = None
) -> dict:
    """
    Search database records with pagination.

    Args:
        query: Search query string
        table: Table to search
        limit: Max results (1-100)
        filters: Optional filter criteria

    Returns:
        Dict with results and metadata
    """
    if not query or not query.strip():
        raise ValueError("Query cannot be empty")

    results = execute_search(query, table, limit, filters)
    return {
        "status": "success",
        "count": len(results),
        "results": results,
        "total_available": get_total_count(query)
    }

@server.resource("db://{table}/{id}")
def get_record(table: str, id: str) -> dict:
    """Fetch record by ID."""
    record = fetch_record(table, id)
    if not record:
        raise ValueError(f"Record not found: {table}/{id}")
    return record

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

Implementation Guide: implementation.md


Authentication Patterns

OAuth2 (User-Authenticated):

from fastmcp.auth import OAuth2Provider

oauth = OAuth2Provider(
    authorize_url="https://auth.company.com/authorize",
    token_url="https://auth.company.com/token",
    scopes=["read:data", "write:data"]
)

@server.auth(oauth)
@server.tool()
def protected_action(user_id: str) -> dict:
    """Requires OAuth token."""
    return execute_action(user_id)

API Key (Service-to-Service):

from fastmcp.auth import APIKeyAuth

api_auth = APIKeyAuth(header="X-API-Key")

@server.auth(api_auth)
@server.resource("secure://{resource_id}")
def secure_resource(resource_id: str) -> str:
    """Requires API key."""
    return fetch_data(resource_id)

Detailed Patterns: auth-patterns.md


Testing MCP Servers

Unit Testing:

import pytest
from fastmcp import FastMCP

@pytest.fixture
def server():
    s = FastMCP("test-server")

    @s.tool()
    def add(a: int, b: int) -> int:
        return a + b

    return s

def test_add_tool(server):
    result = server.invoke_tool("add", {"a": 2, "b": 3})
    assert result == 5

def test_invalid_params(server):
    with pytest.raises(ValueError):
        server.invoke_tool("add", {"a": "not-a-number", "b": 3})

Testing Guide: testing.md


Deployment

Docker:

FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY server.py .
EXPOSE 8000
CMD ["python", "server.py"]

Kubernetes:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: mcp-server
spec:
  replicas: 3
  selector:
    matchLabels:
      app: mcp-server
  template:
    metadata:
      labels:
        app: mcp-server
    spec:
      containers:
      - name: mcp-server
        image: mcp-server:latest
        ports:
        - containerPort: 8000
        livenessProbe:
          httpGet:
            path: /health
            port: 8000
          initialDelaySeconds: 10
          periodSeconds: 10

Deployment Guide: deployment.md


Advanced Patterns

Tool Design Best Practices

DO:

  • Design tools for single meaningful workflow steps
  • Validate all inputs with Pydantic Field constraints
  • Provide clear, actionable error messages
  • Use pagination for large result sets
  • Include comprehensive docstrings

DON'T:

  • Mix multiple responsibilities in one tool
  • Return unlimited result sets
  • Skip input validation
  • Expose sensitive data
  • Ignore error handling

Tool Design Guide: tool-design.md


Performance Optimization

Caching Strategy:

from functools import wraps
from datetime import datetime, timedelta

class MCPCache:
    def __init__(self, ttl_seconds=300):
        self.cache = {}
        self.ttl = ttl_seconds

    def cached(self, func):
        @wraps(func)
        def wrapper(*args, **kwargs):
            key = str((func.__name__, args, kwargs))
            if key in self.cache:
                value, timestamp = self.cache[key]
                if (datetime.now() - timestamp).total_seconds() < self.ttl:
                    return value

            result = func(*args, **kwargs)
            self.cache[key] = (result, datetime.now())
            return result
        return wrapper

cache = MCPCache(ttl_seconds=600)

@cache.cached
def expensive_operation(param: str) -> dict:
    return fetch_and_process(param)

Advanced Patterns:


Monitoring & Observability

Health Checks:

@server.resource("health://status")
def health_check() -> dict:
    """Server health status."""
    return {
        "status": "healthy",
        "version": "1.0.0",
        "uptime_seconds": get_uptime(),
        "active_connections": get_connection_count()
    }

Metrics & Logging:

import logging
import time

logger = logging.getLogger(__name__)

@server.tool()
def monitored_operation(params: dict) -> dict:
    start = time.time()
    try:
        result = execute_operation(params)
        duration = time.time() - start
        logger.info(f"Operation completed in {duration:.2f}s")
        return result
    except Exception as e:
        logger.error(f"Operation failed: {str(e)}")
        raise

Monitoring Guide: monitoring.md


Works Well With

  • moai-context7-integration - Documentation access for API patterns
  • moai-cc-configuration - MCP server configuration management
  • moai-essentials-debug - Server debugging and troubleshooting
  • moai-domain-backend - Backend service architecture
  • moai-domain-cloud - Cloud deployment patterns
  • moai-quality-security - Security validation and OWASP compliance

Core Concepts

  1. FastMCP Framework: Python library for rapid MCP server development
  2. Type Safety: Pydantic models ensure Claude understands parameter constraints
  3. Workflow Design: Tools for single meaningful tasks, not granular APIs
  4. Authentication Strategy: OAuth2 for user apps, API keys for service-to-service
  5. Production Readiness: Monitoring, health checks, error handling, caching
  6. Testing: Comprehensive test coverage before deployment

Module Navigation

Getting Started:

Core Development:

Deployment & Operations:

Advanced Patterns (modules/development/patterns/):


Changelog

  • v3.0.0 (2025-11-27): Complete restructure from server integration to server development focus, modularized with development patterns
  • v2.1.0 (2025-11-22): Modularized structure - SKILL.md refactored, reference.md and examples.md added
  • v2.0.0 (2025-11-22): MCP 1.0+ protocol complete spec update
  • v1.0.0 (2025-11-21): Initial MCP integration skill

Status: Production Ready | See modules/development/ for detailed patterns | Last Updated: 2025-11-27

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

26.82%
按下载量换算17

windsurf

24.17%
按下载量换算15

OpenCode

16.93%
按下载量换算11

Codex

13.82%
按下载量换算9

Antigravity

8.9%
按下载量换算6

Gemini CLI

3.19%
按下载量换算2

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills