Provides tools for managing GitHub Projects V2, including listing projects, viewing and updating project fields, adding issues to projects, creating draft issues, and managing project items through the GitHub GraphQL API.
Uses the GitHub GraphQL API for all interactions with GitHub Projects V2, enabling querying and mutating project data with precise control.
GitHub プロジェクト V2 MCP サーバー
Claude やその他の MCP クライアントを通じて GitHub Projects V2 を管理するためのツールを提供する Model Context Protocol (MCP) サーバーです。このサーバーは、GitHub Projects V2 とのやり取りに GitHub GraphQL API を使用します。
特徴
- ユーザーと組織の GitHub プロジェクト V2 の一覧と表示
- プロジェクトのフィールドと項目(問題、PR、ドラフト問題)を取得する
- 問題を作成してプロジェクトに追加する
- プロジェクト内で直接ドラフト課題を作成する
- プロジェクト項目フィールド値を更新する
- プロジェクトからアイテムを削除する
使用法
このサーバーは、Claude DesktopなどのMCPクライアントで使用できます。MCPクライアントの設定(例: claude_desktop_config.json
)に追加してください。
オプション1: 公開パッケージの使用
以下は、コマンド ランナーとしてuvx
を使用する構成例です。
your_pat_here
実際の GitHub 個人アクセス トークンに置き換えてください。
オプション2: ソースコードから
ソース コードからプロジェクトを直接実行するには、次の手順に従います。
設定
- リポジトリをクローンします。
- 仮想環境を作成してアクティブ化します。
- 依存関係をインストールします:
- GitHub トークンを環境変数として設定します。GitHubパーソナルアクセストークンを作成し、必要な権限を付与します。必要な権限は、
repo
、project
、read:org
です。このコマンドを実行した後、トークンを.env
ファイルに追加します。次に、次の内容を.env
ファイルに追加します。
ソースコードからの使用
ソース コードから使用する場合、MCP クライアントを次のように構成します。
/path/to/github-projects-mcp
とyour_pat_here
を実際のリポジトリ パスと GitHub 個人アクセス トークンに置き換えてください。
利用可能なツール
list_projects
: 特定の組織またはユーザーの GitHub プロジェクト V2 を一覧表示するget_project_fields
: GitHub プロジェクト V2 で利用可能なフィールドを取得するget_project_items
: GitHub プロジェクト V2 内のアイテムを取得します (状態またはカスタムの単一選択フィールドによるフィルタリングをサポートします)create_issue
: 新しいGitHubの問題を作成するadd_issue_to_project
: 既存の GitHub の問題をプロジェクト V2 に追加するupdate_project_item_field
: プロジェクト項目のフィールド値を更新するcreate_draft_issue
: GitHub プロジェクト V2 で直接ドラフト問題を作成するdelete_project_item
: GitHub プロジェクト V2 からアイテムを削除する
詳細な使用方法については、サーバー コード内のツールのドキュメントを参照してください。
発達
プロジェクトは次のように構成されています。
src/github_projects_mcp/
: メインパッケージディレクトリserver.py
: ツール定義を含む MCP サーバーの実装github_client.py
: GitHub API とのやり取りのための GraphQL クライアント
貢献するには、次の点に注意してください。
- すべてのGraphQL操作に適切なエラー処理を追加する
- すべての関数とパラメータに型注釈を追加する
- 新しいツールや機能を追加するときにドキュメントを更新する
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
github プロジェクト mcp
Related MCP Servers
- AsecurityFlicenseAqualityMCP Server for the GitHub API, providing features for file operations, repository management, and advanced search, with automatic branch creation and comprehensive error handling.Last updated -1843TypeScript
- AsecurityAlicenseAqualityMCP Tool Server for Gitee, supporting the management of repository files/branches, Issues, and Pull Requests.Last updated -20104TypeScriptMIT License
- -securityFlicense-qualityProvides tools for interacting with GitHub's API through the MCP protocol, allowing users to create repositories, push content, and retrieve user information.Last updated -JavaScript
- -securityAlicense-qualityA free, open-source service that transforms GitHub projects into MCP endpoints, enabling AI assistants to access and understand project documentation without any setup.Last updated -2,357TypeScriptApache 2.0