MCP.so
登录

DEFCON MCP Server

@jorisvddonk

基本信息

分类

其他

传输方式

stdio

作者

jorisvddonk

关于 DEFCON MCP Server

LET AI PLAY GLOBAL THERMONUCLEAR WAR. This is an MCP Server for Introversion Software's 2007 game DEFCON.

DEFCON MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

DEFCON MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is DEFCON MCP Server?

DEFCON MCP Server is a Model Context Protocol server for Introversion Software’s 2007 game DEFCON that enables AI tools to play global thermonuclear war. It bridges an LLM to the game via a Lua bot and file-based I/O, allowing the AI to read game state and issue commands.

How to use DEFCON MCP Server?

Install DEFCON, apply the AI API extension (v1.57), and set up LUABOT. Clone this repository into the luabot folder. Configure file paths for input/output text files (defaults to R:\input.txt and R:\output.txt). Install dependencies (npm ci). Start the game with a command like .\Defcon_ai.exe host nowan nolan nowlan luabot="AI\luabot\main.lua" numplayers=2 territory=0 debug inputfile="D://input.txt" outputfile="D://output.txt". Configure your MCP-enabled LLM to start the server via node mcp-server.mjs (stdio) or node mcp-server.mjs --http (HTTP). Pass --inputfile and --outputfile to override default paths.

Key features of DEFCON MCP Server

  • Enables AI to play DEFCON via MCP protocol
  • Communicates through file I/O with a Lua bridge
  • Provides 12 tools for in-game actions and analysis
  • Exposes resources for game state and DEFCON level
  • Offers prompts to analyze state and suggest placements
  • Supports both stdio and HTTP transports
  • Uses correlation IDs to track command execution

Use cases of DEFCON MCP Server

  • AI‑assisted gameplay where a language model decides strategic moves
  • Automated testing of DEFCON strategies and fleet placements
  • Creating an AI opponent that interacts via chat and whiteboard
  • Educational demonstrations of AI‑game integration with MCP

常见问题

1

What dependencies are required?

You need the DEFCON game, the DEFCON AI API (v1.57), LUABOT, and Node.js for the MCP server.

2

How does the server communicate with the game?

It uses two text files: `input.txt` for commands from the server to the game, and `output.txt` for game state sent back. The Lua bot reads and writes these files.

3

What transport methods are supported?

The server supports stdio transport (default) and HTTP transport (with `--http` flag).

4

Can I specify custom file paths for input and output?

Yes, use `--inputfile` and `--outputfile` arguments when starting the MCP server.

5

What is command correlation?

Each command includes a unique ID; results are tagged with that ID, letting the server verify if commands were executed successfully.

评论

其他 分类下的更多 MCP 服务器