MCBE-AI-Agent — DeepSeek Agents | Neura Market
    Neura MarketNeura Market/DeepSeek
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityTrendingGenerate
    DeepSeekAgentsMCBE-AI-Agent
    Back to Agents
    MCBE-AI-Agent

    MCBE-AI-Agent

    rice-awa February 7, 2026
    2 copies 0 downloads

    一个利用pydantic ai实现的AIAgent,使其能在MCBE中使用Websocket服务器实现的游戏内调用LLM"In MCBE, a WebSocket server is used to enable the use of LLM within the game."

    Agent Definition
    # MCBE GPT Agent v2.0 - 现代化重构
    
    ## 概述
    
    这是 [MCBE WebSocket GPT](https://github.com/rice-awa/MCBE_WebSocket_gpt) 项目的完全重构版本,采用现代化异步架构,基于 PydanticAI 框架,支持多种 LLM 提供商,实现了 WebSocket 和 LLM 请求的完全解耦。
    
    ## 核心特性
    
    ### 🚀 现代化架构
    - **异步非阻塞**: WebSocket 通信与 LLM 请求完全分离
    - **消息队列**: 使用 `asyncio.Queue` 实现生产者-消费者模式
    - **类型安全**: 全面使用 Pydantic 进行数据验证
    - **结构化日志**: 基于 structlog 的现代日志系统
    
    ### 🤖 AI Agent 能力
    - **PydanticAI 框架**: 类型安全的 AI Agent 实现
    - **流式响应**: 支持实时流式输出,按完整句子发送
    - **Agent Tools**: 内置 Minecraft 命令执行、MCWiki 搜索等工具
    - **动态系统提示词**: 根据玩家信息动态调整
    - **模型预热**: 启动时自动预热 LLM 模型,提高首次响应速度
    - **命令响应回传**: Agent 执行命令后自动回传 commandResponse,工具调用更流畅
    
    ### 🔌 多 LLM 支持
    - **DeepSeek**: deepseek-reasoner (支持思维链)
    - **OpenAI**: GPT-5 等模型
    - **Anthropic**: Claude Sonnet 4.5
    - **Ollama**: 本地模型支持
    
    ### 🎮 用户友好
    - **非阻塞通信**: LLM 请求不影响 MC 连接
    - **实时切换模型**: 游戏内动态切换 LLM
    - **上下文管理**: 灵活的对话历史控制
    - **JWT 认证**: 安全的令牌认证机制
    - **ScriptEvent 支持**: 支持发送 scriptevent,方便后续对接SAPI
    
    ## 项目结构
    
    ```
    MCBE-AI-Agent/
    ├── config/                 # 配置管理
    │   ├── settings.py        # Pydantic Settings
    │   └── logging.py         # 日志配置
    ├── models/                # 数据模型
    │   ├── messages.py        # WebSocket 消息
    │   ├── minecraft.py       # MC 协议模型
    │   └── agent.py           # Agent 相关模型
    ├── core/                  # 核心模块
    │   ├── queue.py           # 消息队列 (MessageBroker)
    │   ├── events.py          # 事件系统
    │   └── exceptions.py      # 自定义异常
    ├── services/              # 服务层
    │   ├── agent/            # AI Agent 服务
    │   │   ├── core.py       # PydanticAI Agent
    │   │   ├── providers.py  # LLM Provider 注册表
    │   │   ├── worker.py     # Agent Worker
    │   │   ├── tools.py      # Agent 工具定义
    │   │   └── mcwiki.py     # MCWiki 搜索工具
    │   ├── websocket/        # WebSocket 服务
    │   │   ├── server.py     # WS 服务器
    │   │   ├── connection.py # 连接管理
    │   │   └── minecraft.py  # MC 协议处理
    │   └── auth/             # 认证服务
    │       └── jwt_handler.py
    ├── storage/               # 存储层 (TODO)
    ├── tests/                 # 测试用例
    ├── docs/                  # 文档
    ├── data/                  # 数据文件
    ├──

    Tags

    aiai-agentdeepseekgptllmmcbeminecraftpydantic-aipython

    Comments

    More Agents

    View all
    hybrid-model-workflow

    hybrid-model-workflow

    HAL 分层混合模型工作流 — 强模型(Claude)负责理解/拆解/验收,低成本模型(DeepSeek)负责检索/提取/清洗。Hermes Agent skill。

    P
    ph4ble
    1
    Dynamic-Review-Agent

    Dynamic-Review-Agent

    An LLM agent fine-tuned on DeepSeek for spaced repetition, dynamically integrating knowledge points based on the Ebbinghaus forgetting curve.

    1
    1838177
    1
    StellarOS-Watch

    StellarOS-Watch

    基于 STM32F103 构建的端到端 AI 智能手表生态。自研“零重定位”原生机器码动态加载引擎与页面栈式 UI 框架;集成生产级 OTA 回滚保护机制与高带宽(921600 baud)串口协议栈。通过 Node.js 中继实现 DeepSeek AI 语义控制及 ASRPRO 语音全双工交互,是一个集成了分布式计算、现代存储管理与 AI Agent 的嵌入式全栈工程。

    C
    chenshuang888
    1
    UAVagent1.0deepseek

    UAVagent1.0

    A Meta-Agent-Driven Self-Evolving Multi-Agent System for UAV Detection and Tracking

    S
    StarlitPupils
    2
    hermes-goai-agent

    hermes-go

    One command to run Hermes AI Agent with a browser UI. Zero prerequisites. 一行命令,AI 就位。

    L
    LAI-755
    1
    Agent

    Agent

    网页应用Agent,接入DeepSeek、Mimo等模型

    C
    Cosmos-815
    1

    Stay up to date

    Get the latest DeepSeek prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for DeepSeek and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.