
vintasoftware/django-ai-boost 是一个从 https://github.com/vintasoftware/django-ai-boost. 导入的 MCP 服务器候选
概览
vintasoftware/django-ai-boost 是一个从 https://github.com/vintasoftware/django-ai-boost. 导入的 MCP 服务器候选
概述(AI 翻译)
一款模型上下文协议(MCP)服务器,用于开发 Django 应用,灵感来源于 Laravel Boost。该服务器通过 MCP 工具展示 Django 项目信息,使 AI 助手能够更好地理解和交互 Django 代码库。
目录
- 特色
- 截图
- 安装
- 面向终端用户
- 发展
- 使用情况
- 运行服务器
- 认证
- AI工具设置
- 光标
- Claude桌面
- GitHub Copilot(VS Code)
- Claude Code(VS Code)
- OpenAI ChatGPT 桌面版
- Cline(VS Code)
- Zed 编辑器
- 通用MCP客户端
- 可用工具
- 示例用法
- 开发与测试
- 故障排除
- 要求
- 贡献
- 许可证
特色
- 项目发现:列表模型、URL和管理命令
- 数据库内省:查看模式、迁移和关系
- 配置访问:用点符号查询Django设置
- 日志读取:访问带有过滤功能的近期应用日志
- 生产就绪认证:安全部署的承载令牌认证
- 只读:所有工具均为安全的只读操作
- Fast:基于FastMCP构建,实现高效的异步操作
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Django AI Boost
A Model Context Protocol (MCP) server for developing Django applications, inspired by Laravel Boost. This server exposes Django project information through MCP tools, enabling AI assistants to better understand and interact with Django codebases.
Table of Contents
- Features
- Screenshots
- Installation
- Usage
- AI Tools Setup
- Available Tools
- Example Usage
- Development & Testing
- Troubleshooting
- Requirements
- Contributing
- License
Features
- Project Discovery: List models, URLs, and management commands
- Database Introspection: View schema, migrations, and relationships
- Configuration Access: Query Django settings with dot notation
- Log Reading: Access recent application logs with filtering
- Production-Ready Authentication: Bearer token authentication for secure deployments
- Read-Only: All tools are safe, read-only operations
- Fast: Built on FastMCP for efficient async operations
Screenshots
Installation
For End Users
# Using uv (recommended)
uv pip install django-ai-boost
# Or with pip
pip install django-ai-boost
For Development
If you want to contribute or run the latest development version:
# Clone the repository
git clone https://github.com/vinta/django-ai-boost.git
cd django-ai-boost
# Install uv if you haven't already
# On macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows:
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# Install dependencies (creates virtual environment automatically)
uv sync --dev
# Verify installation
uv run django-ai-boost --help
Usage
Running the Server
The server requires access to your Django project’s settings:
# Set the Django settings module
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"django-ai-boost": {
"command": "django-ai-boost",
"args": ["--settings", "myproject.settings", "--transport", "sse"],
"env": {
"DJANGO_MCP_AUTH_TOKEN": "your-secret-token",
"DJANGO_SETTINGS_MODULE": "myproject.settings",
"PYTHONPATH": "/path/to/your/django/project"
}
}
}
}