360 Secure SkillHub
360 安全技能中心

Mcp Dev Toolkit

该 Skill 面向 MCP 服务器开发,提供 TypeScript 与 Python 脚手架、工具定义与传输配置(stdio、HTTP/SSE)说明,并附带数据库、文件系统、API 集成模式参考和本地测试指引,支持发布到 npm 或 PyPI。

evezart
evezart
热度 24.91
最近更新 2026-05-12 19:16:49
分类:开发依赖:代码执行 / 读写文件应用场景:代码生成 / API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add mcp-dev-toolkit
Metadata
name
mcp-dev-toolkit
description
Build, test, and deploy MCP (Model Context Protocol) tools for developer workflows. Use when creating MCP servers, adding tool definitions, integrating with databases, file systems, or APIs via MCP. Covers TypeScript and Python MCP server scaffolding, tool registration, transport configuration (stdio, HTTP/SSE), and testing patterns.

MCP Dev Toolkit

Scaffold and build MCP (Model Context Protocol) servers with common developer tools.

Quick Start

Scaffold a new MCP server:

npx @anthropic/mcp-cli create my-server

Or use the scaffold script for a batteries-included setup:

bash scripts/scaffold.sh my-server python   # Python MCP server
bash scripts/scaffold.sh my-server typescript  # TS MCP server

Architecture

An MCP server exposes tools that LLMs can call. Each tool has:

  • name: Tool identifier
  • description: What the tool does (LLM reads this to decide when to use it)
  • inputSchema: JSON Schema for parameters

Tool Patterns

Database Access

See references/database-tools.md for PostgreSQL, SQLite, and MongoDB tool patterns.

File Management

See references/file-tools.md for read, write, search, and transform tools.

API Integration

See references/api-tools.md for REST/GraphQL wrapping patterns.

Transport Types

  • stdio: Local CLI integration (default for Claude Desktop)
  • HTTP/SSE: Remote server (for shared/team deployments)
  • Streamable HTTP: Modern transport (MCP spec 2025-03)

Testing

Test tools locally before deploying:

npx @anthropic/mcp-cli inspect ./my-server

Publishing

Publish to npm (TypeScript) or PyPI (Python), then configure in MCP clients.