Skip to main content
Glama
DDNet MCP Server

DDNet MCP Server

by SilverHi

DDNet MCP Server

一个基于FastMCP的Model Context Protocol服务器,提供DDNet游戏进程管理和配置文件操作功能。

功能

  • 游戏进程管理:获取DDNet游戏状态、启动和关闭DDNet游戏

  • 配置文件操作:检查按键绑定、添加和删除按键绑定

Related MCP server: MCP Configurator Server

安装

使用uv安装

uv install ddnet-mcpserver

使用方法

使用uv运行

uv run -m ddnet_mcpserver

在MCP客户端中配置

在您的MCP客户端配置文件中添加以下配置:

{
  "mcpServers": {
    "ddnet": {
      "command": "uvx",
      "args": ["ddnet-mcpserver"],
      "env": {},
      "disabled": false
    }
  }
}

可用工具

  • get_ddnet_game_status(): 获取DDNet进程状态

  • stop_ddnet_game(): 关闭DDNet进程

  • start_ddnet_game(): 启动DDNet进程

  • check_bind(bindkey: str): 检查按键是否被占用

  • add_bind(bindkey: str, bindvalue: str): 增加按键绑定

  • delete_bind(bindkey: str): 删除按键绑定

开发

设置开发环境

git clone https://github.com/silverhi/ddnet-mcpserver.git
cd ddnet-mcpserver
uv pip install -e .

本地开发指南

使用uv运行服务器

uv run -m ddnet_mcpserver

使用MCP Inspector调试

npx -y @modelcontextprotocol/inspector uv run -m ddnet_mcpserver

安装Node.js(Windows环境)

winget install jasongin.nvs
nvs add lts
nvs use lts

使用pre-commit进行代码检查

uv pip install pre-commit
pre-commit install

构建和发布包

python -m build
twine upload dist/*

许可证

MIT

Available Tools

5 tools
add_bindD

增加bind

Inputs: bindkey (required), bindvalue (required).

check_bindC

检查按键是否被占用

Inputs: bindkey (required).

delete_bindD

删除bind

Inputs: bindkey (required).

get_ddnet_game_statusB

获取ddnet进程状态

Inputs: no named parameters.

get_friend_listD

获取好友列表

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 5 tools

    Disambiguation5/5

    All tools have distinct purposes: three bind operations (add, check, delete), one game status, and one friend list. No overlap.

    Naming Consistency5/5

    All tools follow consistent snake_case verb_noun pattern (e.g., add_bind, get_ddnet_game_status), making predictions easy.

    Tool Count5/5

    5 tools is appropriate for this domain, covering both bind management and game status without being too few or too many.

    Completeness4/5

    Covers core bind lifecycle (add, check, delete) but misses update/edit. Status and friend list are present, so only a minor gap.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      B
      maintenance
      Manages llama.cpp llama-server instances with tools for lifecycle management, configuration CRUD, and orphan detection, enabling LLM agents to control local or remote inference servers.
      15
      2
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables management of long-running development processes (such as dev servers, compilers, and watchers) from MCP hosts. Provides tools to start, stop, restart, check status, view logs, and send input to managed processes.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Manages local MCP servers on Windows: installs them, starts them hidden at logon, restarts them when they crash, and monitors them via a tray icon, with tools for lifecycle, catalogue, and session management.
      MIT