bage2014/study/mcp-tool-creator

Claude Code and agent skill by bage2014/study

Trust tier 3
  • community
  • ext:[{"type":"context","description":"Custom context provider definitions"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

MCP 工具创建器。当用户需要为系统添加新的 MCP 工具时使用此技能。

Install

npx vskill@latest install bage2014/study/mcp-tool-creator

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as bage2014/study/mcp-tool-creator.

MCP 工具创建器

功能描述

帮助为系统创建新的 MCP(Model Context Provider)工具,扩展系统的信息收集和数据提供能力。

何时使用

在以下情况调用此技能:

  • 为系统添加新的 MCP 工具
  • 集成外部服务到业务流程
  • 扩展系统的数据收集能力
  • 模拟上下文数据用于测试

核心功能

  • MCP服务创建:创建新的上下文数据提供服务
  • 数据模拟:生成模拟数据用于测试和验证
  • 服务集成:将外部服务集成到业务流程

输入参数

参数类型必填说明
serviceNameString是MCP服务名称
dataTypeString是数据类型
configMap否配置参数

输出格式

json
{
"serviceName": "MyMcpService",
"status": "SUCCESS",
"dataType": "CUSTOM_DATA",
"description": "自定义MCP服务创建成功"
}

MCP 服务结构

服务接口规范
java
@Service
public class MyMcpService {
public SomeData getData(String appId, LocalDateTime time, String scene) {
// 实现数据获取逻辑
// 返回模拟或真实数据
}
}

创建新 MCP 服务步骤

第一步:创建数据模型
java
public class CustomData {
private String field1;
private int field2;
// getters and setters
}
第二步:创建 MCP 服务类
java
@Service
public class CustomMcpService {
private final Random random = new Random();
public CustomData getData(String appId, LocalDateTime time, String scene) {
CustomData data = new CustomData();
// 根据场景生成模拟数据
if ("custom_scenario".equals(scene)) {
// 特定场景数据
} else {
// 默认数据
data.setField1("value-" + random.nextInt(100));
data.setField2(random.nextInt(1000));
}
return data;
}
}
第三步:集成到业务服务
java
@Service
public class BusinessServiceImpl {
private final CustomMcpService customMcpService;
// 在业务方法中调用
CustomData customData = customMcpService.getData(appId, time, scene);
}

配置要求

无需额外配置,Spring Boot 自动扫描并注册 @Service 注解的 MCP 服务。

目录结构

src/main/java/com/bage/study/ai/best/practice/hello/
├── mcp/ # MCP服务目录
│ └── CustomMcpService.java
└── service/
└── impl/
└── BusinessServiceImpl.java

使用示例

java
// 注入 MCP 服务
@Autowired
private CustomMcpService customMcpService;
// 获取数据
CustomData data = customMcpService.getData(appId, time, scene);

扩展指南

添加新的数据类型
  1. 创建新的数据模型类
  2. 创建对应的 MCP 服务类
  3. 在业务服务中注入并调用
支持场景参数

在 MCP 服务的方法中添加 scene 参数,根据不同场景返回不同的模拟数据。

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
624
Repository forks
111
7-day trend score
32

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • contextCustom context provider definitions

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bage2014/study/mcp-tool-creator/badge)](https://verified-skill.com/skills/bage2014/study/mcp-tool-creator)

Something wrong with this skill or its page? Tell us.