基于FastMCP的MCP服务器,提供简单的计算和问候功能
Project description
DDNet MCP Server
一个基于FastMCP的Model Context Protocol服务器,提供DDNet游戏进程管理和配置文件操作功能。
功能
- 游戏进程管理:获取DDNet游戏状态、启动和关闭DDNet游戏
- 配置文件操作:检查按键绑定、添加和删除按键绑定
安装
使用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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ddnet_mcpserver-0.1.2.tar.gz.
File metadata
- Download URL: ddnet_mcpserver-0.1.2.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed51003a645214c73dfaeefb841cf6517112e7c68ae0a7a377d735cf1cfe1b71
|
|
| MD5 |
78a453b28db26419d3e287c722346643
|
|
| BLAKE2b-256 |
4b58211d7c24bc22838b8b1ae3e1347a1e4ce21f37ee66e56b102839e5a2f3d4
|
Provenance
The following attestation bundles were made for ddnet_mcpserver-0.1.2.tar.gz:
Publisher:
python-publish.yml on SilverHi/ddnet-mcpserver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ddnet_mcpserver-0.1.2.tar.gz -
Subject digest:
ed51003a645214c73dfaeefb841cf6517112e7c68ae0a7a377d735cf1cfe1b71 - Sigstore transparency entry: 203098305
- Sigstore integration time:
-
Permalink:
SilverHi/ddnet-mcpserver@6e8c6628692c3b62149f6ade17938d81991fd5ea -
Branch / Tag:
refs/heads/main - Owner: https://github.com/SilverHi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6e8c6628692c3b62149f6ade17938d81991fd5ea -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ddnet_mcpserver-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ddnet_mcpserver-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0447fe473162e498bb7154488548219474c6e71c41d20417eca9b05df7fe786
|
|
| MD5 |
7fa63e127245d9976d064bc8d263b197
|
|
| BLAKE2b-256 |
0cb0faafb75b2b9b966e416534f20fe390087123bea774c5b563bd17da178a09
|
Provenance
The following attestation bundles were made for ddnet_mcpserver-0.1.2-py3-none-any.whl:
Publisher:
python-publish.yml on SilverHi/ddnet-mcpserver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ddnet_mcpserver-0.1.2-py3-none-any.whl -
Subject digest:
c0447fe473162e498bb7154488548219474c6e71c41d20417eca9b05df7fe786 - Sigstore transparency entry: 203098306
- Sigstore integration time:
-
Permalink:
SilverHi/ddnet-mcpserver@6e8c6628692c3b62149f6ade17938d81991fd5ea -
Branch / Tag:
refs/heads/main - Owner: https://github.com/SilverHi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6e8c6628692c3b62149f6ade17938d81991fd5ea -
Trigger Event:
workflow_dispatch
-
Statement type: