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

mcp-developmentMCP 开发

Agent Skill

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

总安装

306

周安装

13

GitHub Stars

公开资料未说明

下载量

107
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add 5dlabs/cto --skill "mcp-development"

简介

mcp-development 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据任务场景定位候选结果。
  • 安装命令:npx skills add 5dlabs/cto --skill "mcp-development",来源仓库:https://github.com/5dlabs/cto/tree/main/skills/mcp-development。
  • 使用前建议确认权限范围、维护状态及是否会触发联网或文件操作。
  • 可结合原始 README 继续核验具体用法。

SKILL.md

MCP Server Development

Create MCP servers that enable LLMs to interact with external services through well-designed tools.

Development Phases

Phase 1: Research & Planning

Understand the API:

  • Review service's API documentation
  • Identify key endpoints, auth requirements, data models
  • Use Context7 or Firecrawl as needed

Tool Selection:

  • Prioritize comprehensive API coverage over workflow shortcuts
  • List endpoints to implement, starting with most common operations
  • Balance single-operation tools (flexible) vs workflow tools (convenient)

Load Framework Docs:

  • TypeScript SDK: https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md
  • Python SDK: https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md

Phase 2: Implementation

Recommended Stack:

  • Language: TypeScript (best SDK support, good for agent-generated code)
  • Transport: Streamable HTTP for remote, stdio for local

Project Structure (TypeScript):

my-mcp-server/
├── src/
│   ├── index.ts          # Server entry point
│   ├── tools/            # Tool implementations
│   └── utils/            # Shared utilities
├── package.json
└── tsconfig.json

Tool Implementation Pattern:

server.registerTool({
  name: "service_operation",
  description: "Concise description of what this does",
  inputSchema: z.object({
    param: z.string().describe("What this parameter is for"),
    optional: z.number().optional().describe("Optional config"),
  }),
  outputSchema: z.object({
    result: z.string(),
    metadata: z.object({ count: z.number() }),
  }),
  annotations: {
    readOnlyHint: true,      // Doesn't modify state
    destructiveHint: false,  // Doesn't delete data
    idempotentHint: true,    // Safe to retry
    openWorldHint: false,    // Bounded result set
  },
  async execute({ param, optional }) {
    // Implementation with proper error handling
    const result = await apiClient.doOperation(param);
    return {
      structuredContent: { result: result.data, metadata: { count: 1 } },
      content: [{ type: "text", text: `Operation completed: ${result.data}` }],
    };
  },
});

Phase 3: Review & Test

Code Quality:

  • No duplicated code (DRY principle)
  • Consistent error handling with actionable messages
  • Full type coverage
  • Clear tool descriptions

Testing:

# TypeScript - verify compilation
npm run build

# Test with MCP Inspector
npx @modelcontextprotocol/inspector

# Python - verify syntax
python -m py_compile your_server.py

Phase 4: Evaluations

Create 10 evaluation questions to test effectiveness:

Question Requirements:

  • Independent: Not dependent on other questions
  • Read-only: Only non-destructive operations
  • Complex: Require multiple tool calls
  • Realistic: Based on real use cases
  • Verifiable: Single, clear answer
  • Stable: Answer won't change over time

Format:

<evaluation>
  <qa_pair>
    <question>Find all repositories with more than 100 stars
    that were created this year. What is the total star count?</question>
    <answer>1547</answer>
  </qa_pair>
</evaluation>

Tool Design Best Practices

Naming Convention

Use consistent prefixes with action-oriented names:

✅ github_create_issue, github_list_repos, github_get_user
✅ slack_send_message, slack_list_channels
❌ createIssue, listRepos (inconsistent)
❌ issue, repos (not action-oriented)

Descriptions

// ❌ Too vague
description: "Gets data from the API"

// ✅ Specific and helpful
description: "Retrieves repository metadata including stars, forks, and last commit date. Returns structured data for analysis."

Error Messages

Guide agents toward solutions:

// ❌ Generic error
throw new Error("Request failed");

// ✅ Actionable error
throw new Error(
  "Repository not found. Verify the owner/repo format (e.g., 'anthropics/sdk'). " +
  "Use github_search_repos to find the correct repository name."
);

Pagination

Support filtering and pagination for list operations:

inputSchema: z.object({
  query: z.string().optional().describe("Filter results"),
  limit: z.number().default(20).describe("Max results to return"),
  cursor: z.string().optional().describe("Pagination cursor from previous response"),
}),

Output Schemas

Define structured output for better agent understanding:

outputSchema: z.object({
  items: z.array(z.object({
    id: z.string(),
    name: z.string(),
    metadata: z.record(z.unknown()),
  })),
  nextCursor: z.string().optional(),
  totalCount: z.number(),
}),

Tool Annotations Reference

AnnotationDescriptionExample
readOnlyHintTool doesn't modify external stateList operations, queries
destructiveHintTool permanently deletes dataDelete operations
idempotentHintMultiple calls produce same resultGet by ID, upsert
openWorldHintResults may change between callsReal-time data feeds

Common Patterns

API Client Setup

const client = {
  baseUrl: process.env.API_URL,
  headers: { Authorization: `Bearer ${process.env.API_KEY}` },

  async request<T>(path: string, options?: RequestInit): Promise<T> {
    const response = await fetch(`${this.baseUrl}${path}`, {
      ...options,
      headers: { ...this.headers, ...options?.headers },
    });
    if (!response.ok) {
      throw new Error(`API error: ${response.status} - ${await response.text()}`);
    }
    return response.json();
  },
};

Batch Operations

// Allow operating on multiple items efficiently
inputSchema: z.object({
  ids: z.array(z.string()).max(100).describe("IDs to process (max 100)"),
}),

Dry Run Support

inputSchema: z.object({
  changes: z.array(ChangeSchema),
  dryRun: z.boolean().default(false).describe("Preview changes without applying"),
}),

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Claude Code

28.59%
按下载量换算31

windsurf

22.69%
按下载量换算24

trae

16.93%
按下载量换算18

OpenCode

11.87%
按下载量换算13

Codex

6.44%
按下载量换算7

Antigravity

3.13%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills