MAGATAMA MCP Server - AI Coding Support via Model Context Protocol
Project description
magatama - AI Coding Support MCP Server
MAGATAMA(YATA のフォーク)の MCP サーバーパッケージです(PyPI 配布名
magatama/ import 名magatama_mcp/ CLI コマンドmagatama)。
Model Context Protocol (MCP) サーバーとして、AI コーディングツールに知識グラフコンテキストを提供します。
特徴
- 🤖 MCP 完全対応: 8 Tools, 3 Prompts, 1 Resource
- 🔌 AI ツール連携: Claude Desktop, GitHub Copilot, Cursor
- 📡 複数トランスポート: stdio / SSE
- 🔒 プライバシー: 完全ローカル実行
インストール
pip install magatama
使用方法
CLI コマンド
# ファイルを解析
magatama parse path/to/file.py
# ディレクトリを解析
magatama parse path/to/project --pattern "**/*.py"
# MCP サーバーを起動(stdio)
magatama serve
# MCP サーバーを起動(SSE)
magatama serve --transport sse --port 8080
# エンティティを検索
magatama query "function_name" --type function
# 統計情報を表示
magatama stats
# グラフの整合性を検証
magatama validate --graph graph.json --repair
AI ツール設定
Claude Desktop
{
"mcpServers": {
"magatama": {
"command": "magatama",
"args": ["serve"]
}
}
}
GitHub Copilot (VS Code)
.vscode/mcp.json:
{
"mcpServers": {
"magatama": {
"command": "magatama",
"args": ["serve"]
}
}
}
MCP Tools
| Tool | 説明 |
|---|---|
parse_file |
ソースファイルを解析してエンティティを抽出 |
parse_directory |
ディレクトリ内のファイルを一括解析 |
search_entities |
名前や型でエンティティを検索 |
get_entity |
特定エンティティの詳細を取得 |
get_related_entities |
関連エンティティを取得 |
get_graph_stats |
知識グラフの統計情報を取得 |
save_graph |
知識グラフを JSON ファイルに保存 |
load_graph |
JSON ファイルから知識グラフを読み込み |
MCP Prompts
| Prompt | 説明 |
|---|---|
analyze_codebase |
コードベース構造を分析 |
explain_entity |
コードエンティティを説明 |
find_dependencies |
依存関係を分析 |
ライセンス
MIT License - 詳細は LICENSE を参照してください。
関連プロジェクト
- magatama-core - Knowledge Graph Engine
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
magatama-0.5.0.tar.gz
(39.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
magatama-0.5.0-py3-none-any.whl
(26.1 kB
view details)
File details
Details for the file magatama-0.5.0.tar.gz.
File metadata
- Download URL: magatama-0.5.0.tar.gz
- Upload date:
- Size: 39.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63153fb544baf08c772b9ba192c5185b49669ec474fed09fa736de7398e4011c
|
|
| MD5 |
7bc89a62618985066142f0afbcc05acf
|
|
| BLAKE2b-256 |
b71f472d1aa72e7805f1ef95dba736c6d9b5b516e425e73b26dfb34d7d3af04f
|
File details
Details for the file magatama-0.5.0-py3-none-any.whl.
File metadata
- Download URL: magatama-0.5.0-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
364798d7e509fee3628aa14deea5fa7c60708a65bea0c6c872827b02169ad2b7
|
|
| MD5 |
a7f813d3f282031bba21579b0ddcf933
|
|
| BLAKE2b-256 |
dd575a0d52c9856aaa9a171a15461d403457d0d28524619c73a5ac69604a6f6b
|