# Directory Structure
```
├── .gitignore
├── comm_methods
│ ├── __init__.py
│ ├── applescript_comm.py
│ ├── gdb_communicator.py
│ ├── keyboard_comm.py
│ └── pexpect_comm.py
├── gdb_tools.py
├── LICENSE
├── mcp_server.py
├── pyproject.toml
├── README.md
└── requirements.txt
```
# Files
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
```
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# Distribution / packaging
dist/
build/
*.egg-info/
# Virtual environments
venv/
env/
ENV/
# IDE files
.idea/
.vscode/
*.swp
*.swo
# Compiled example
examples/test_program
# Logs
*.log
# macOS
.DS_Store
```
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
```
fastmcp>=0.1.0
flask==2.2.5
werkzeug==2.3.0
flask-cors==3.0.10
pexpect>=4.8.0
pygments==2.10.0
psutil==5.9.0
pyautogui>=0.9.50; platform_system == "Windows"
```
--------------------------------------------------------------------------------
/pyproject.toml:
--------------------------------------------------------------------------------
```toml
[project]
name = "gdb-mcp-server"
version = "0.2.0"
description = "GDB Model Context Protocol Server for AI-assisted debugging"
readme = "README.md"
requires-python = ">=3.7"
dependencies = [
"fastmcp>=0.1.0",
"pexpect>=4.8.0",
]
[project.optional-dependencies]
windows = [
"pyautogui>=0.9.50",
]
dev = [
"black",
"isort",
"mypy",
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
```