Django 移行 MCP サービス
分散環境におけるDjangoの移行を管理するためのモデルコンテキストプロトコル(MCP)サービス。このサービスはDjangoの移行コマンドをラップし、MCPエンドポイントとして公開することで、複数のサービスにまたがる移行の管理やCI/CDパイプラインとの統合を容易にします。
特徴
- 移行ステータスを確認する(
showmigrations
と同等) - 検証付きの新しい移行を作成する(
makemigrations
と同等) - 安全性チェック付きの移行を適用する(
migrate
と同等) - 追加の検証と安全性チェック:
- 順次移行順序の検証
- 競合検出
- 依存関係の検証
- 移行作業の安全性分析
インストール
地域開発
- リポジトリをクローンします。
- 依存関係をインストールします:
構成
次の環境変数を設定します。
使用法
サービスの実行
- Python で直接:
- Docker の使用:
MCPエンドポイント
- 移行を表示:
- 移行を行う:
- 移行を適用します:
CI/CD統合
GitHub Actions ワークフローの例:
check_migrations.py スクリプトの例:
発達
テストの実行
コードスタイル
このプロジェクトはPEP 8ガイドラインに準拠しています。以下の形式でコードをフォーマットしてください。
ライセンス
MITライセンス。詳細はLICENSEファイルを参照してください。
貢献
- リポジトリをフォークする
- 機能ブランチを作成します(
git checkout -b feature/amazing-feature
) - 変更をコミットします(
git commit -m 'Add amazing feature'
) - ブランチにプッシュする (
git push origin feature/amazing-feature
) - プルリクエストを開く
Dockerの使用
このプロジェクトには、様々なデプロイメントシナリオに対応する構造化されたコマンドを提供するdocker-commands.json
ファイルが含まれています。これらのコマンドは直接使用することも、スクリプト内で解析することもできます。
利用可能なDocker構成
- Redis MCP サーバー
- Django 移行 MCP サーバー
- 開発環境
- テスト環境
- 生産環境
プログラムによるコマンドの使用
コマンドをプログラムで解析して使用することができます。
ネットワーク設定
- 開発ネットワーク
- 生産ネットワーク
MCPツールの使用
このサービスは、curl または任意の HTTP クライアント経由でアクセスできるいくつかのエンドポイントを公開します。
- 移行を表示
- 移行を行う
- 移行を適用する
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Django の移行コマンドを MCP エンドポイントとしてラップするモデル コンテキスト プロトコル サービス。これにより、複数のサービスにわたる移行の管理や CI/CD パイプラインとの統合が容易になります。
Related Resources
Related MCP Servers
- -securityAlicense-qualityMCP Server simplifies the implementation of the Model Context Protocol by providing a user-friendly API to create custom tools and manage server workflows efficiently.Last updated 6 months ago43TypeScriptMIT License
- -securityAlicense-qualityMCP Server provides a simpler API to interact with the Model Context Protocol by allowing users to define custom tools and services to streamline workflows and processes.Last updated 5 months ago132TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.Last updated 5 months ago484TypeScript
- AsecurityAlicenseAqualityA dynamic service that creates and manages Model Context Protocol (MCP) servers, allowing users to spawn, customize, and control multiple MCP servers as child processes.Last updated 2 months ago565TypeScriptMIT License