Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"modsdk-mcp-server": {
"args": [
"D:/ModSDK MCP Server/start_mcp.py"
],
"command": "python"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
No description provided.
This server is thin — proceed with caution. Help improve this page →
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationBe the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in entertainment
The official MCP Server for the Mux API
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
A Model Context Protocol (MCP) server that gives Claude direct control over Strudel.cc for AI-assisted music generation and live coding.
MCP server for *arr media suite - Sonarr, Radarr, Lidarr, Readarr, Prowlarr
MCP Security Weekly
Get CVE alerts and security updates for Modsdk_mcp_server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Model Context Protocol Server for 我的世界中国版(网易)ModSDK 开发
为 AI 编程助手(Claude Desktop、Cursor 等)提供 文档检索、代码生成、代码审查 能力,显著提升 NetEase ModSDK 开发效率。
| 能力 | 说明 |
|---|---|
| 🔍 智能文档检索 | 模糊搜索、驼峰分词、中文搜索,覆盖 API 接口 & 事件文档 |
| 📝 代码生成 | 自动生成符合网易规范的 Mod 项目、Server/Client System、自定义物品/方块/实体 |
| 🔧 工具 & 武器生成 | 一键生成剑、镐、斧、锹、锄、弓、盔甲、食物、可投掷物品 JSON |
| 📋 配方 & 战利品表 | 生成有序/无序合成配方、熔炉配方、战利品表、生成规则 |
| 🔬 代码审查 | 检测 Python 2.7 兼容性、客户端/服务端混用、性能反模式 |
| 📚 组件百科 | 查询物品/方块/实体/网易特有组件的用法和配置 |
| ⚡ 最佳实践 | 内置官方性能优化规范,生成代码自动遵循 |
cd "<PROJECT_ROOT>"
pip install -r requirements.txt
通用说明:所有客户端统一使用
start_mcp.py绝对路径启动,无需cwd参数,兼容性最好。 请将下方示例中的<PROJECT_ROOT>替换为你本机的项目根目录。
编辑配置文件:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"modsdk-mcp-server": {
"command": "python",
"args": ["<PROJECT_ROOT>/start_mcp.py"]
}
}
}
保存后重启 Claude Desktop。
Claude Code 不支持 cwd 参数,使用 start_mcp.py 绝对路径即可:
claude mcp add "modsdk-mcp-server" -- python "<PROJECT_ROOT>/start_mcp.py"
或手动编辑 ~/.claude/settings.json:
{
"mcpServers": {
"modsdk-mcp-server": {
"command": "python",
"args": ["<PROJECT_ROOT>/start_mcp.py"]
}
}
}
在项目根目录创建 .cursor/mcp.json(Cursor)或 .vscode/mcp.json(VS Code):
{
"servers": {
"modsdk-mcp-server": {
"command": "python",
"args": ["<PROJECT_ROOT>/start_mcp.py"]
}
}
}
⚠️ 常见问题(VS Code / Cursor)
如果在 VS Code 或 Cursor 中启动 MCP 时出现以下错误:
Error: tool parameters array type must have items原因:
MCP 工具的参数 schema 中,某些字段声明为
"type": "array",但没有提供"items"字段。根据 JSON Schema 规范,所有数组类型必须定义
"items",否则在严格校验环境(如 VS Code / Cursor)中会报错。解决方法:
修改对应工具的参数定义,例如:
❌ 错误写法:
{ "type": "array" }✅ 正确写法:
{ "type": "array", "items": { "type": "object" } }
启动 SSE 服务:
python "<PROJECT_ROOT>/start_mcp.py" --sse
# 默认监听 http://0.0.0.0:8000
在客户端中配置:
{
"mcpServers": {
"modsdk-mcp-server": {
"transport": "sse",
"url": "http://localhost:8000/sse"
}
}
}
在 AI 助手中输入以下测试指令:
搜索 GetEngineCompFactory 的用法
如果返回了 API 文档内容,说明 MCP Server 已成功连接。
| 工具 | 描述 |
|---|---|
search_docs | 搜索文档(支持模糊匹配、驼峰分词、中文) |
get_document | 获取指定文档完整内容 |
get_document_section | 获取文档指定章节 |
get_document_structure | 获取文档目录结构 |
list_documents | 列出所有可用文档 |
reload_documents | 重新加载文档索引 |
| 工具 | 描述 |
|---|---|
generate_mod_project | 生成完整 Mod 项目模板(含入口、服务端、客户端) |
generate_server_system | 生成服务端系统代码 |
generate_client_system | 生成客户端系统代码 |
generate_event_listener | 生成事件监听器代码 |
generate_custom_command | 生成自定义命令代码 |
generate_custom_item | 生成自定义物品代码和 JSON |
generate_custom_block | 生成自定义方块代码和 JSON |
| 工具 | 描述 |
|---|---|
generate_item_json | 生成物品 JSON(行为包 + 资源包) |
generate_block_json | 生成方块 JSON |
generate_recipe_json | 生成合成配方 JSON(有序/无序/熔炉) |
generate_entity_json | 生成实体 JSON(行为包 + 资源包) |
generate_loot_table_json | 生成战利品表 JSON |
generate_spawn_rules_json | 生成生成规则 JSON |
| 工具 | 描述 |
|---|---|
generate_sword_json | 自定义剑(伤害、耐久、附魔、修复) |
generate_pickaxe_json | 自定义镐(挖掘速度、耐久) |
generate_axe_json | 自定义斧(伤害、挖掘速度) |
generate_shovel_json | 自定义锹 |
| `generate_hoe_ |