zai-coding-gateway 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {zai_coding_gateway-0.1.0.dist-info → zai_coding_gateway-0.1.1.dist-info}/METADATA +30 -18
- {zai_coding_gateway-0.1.0.dist-info → zai_coding_gateway-0.1.1.dist-info}/RECORD +4 -4
- {zai_coding_gateway-0.1.0.dist-info → zai_coding_gateway-0.1.1.dist-info}/WHEEL +0 -0
- {zai_coding_gateway-0.1.0.dist-info → zai_coding_gateway-0.1.1.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zai-coding-gateway
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: MCP-сервер для решения задач в рабочем пространстве через Z.AI Coding Plan (solve_in_workspace, apply_changes)
|
|
5
5
|
License: MIT
|
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -59,27 +59,39 @@ MCP запускается вашей IDE при открытии проекта
|
|
|
59
59
|
|
|
60
60
|
## Подключение в Cursor
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
### Вариант: пакет с PyPI (как shadcn — только конфиг)
|
|
63
|
+
|
|
64
|
+
Установка не нужна: Cursor при старте вызовет `pipx run zai-coding-gateway`, пакет подтянется с PyPI. Но Cursor не видит PATH из терминала, поэтому в `command` нужен **полный путь к pipx**.
|
|
65
|
+
|
|
66
|
+
1. Установите pipx, если ещё нет: [pypa.github.io/pipx](https://pypa.github.io/pipx/) (`brew install pipx` на macOS, `pip install pipx` и т.п.).
|
|
67
|
+
2. Запустите скрипт — он найдёт pipx на вашей платформе и выведет готовый фрагмент для `mcp.json`:
|
|
63
68
|
```bash
|
|
64
|
-
|
|
69
|
+
python scripts/print_mcp_config.py
|
|
65
70
|
```
|
|
66
|
-
|
|
67
|
-
3.
|
|
71
|
+
Или из репозитория пакета (после клонирования): `python scripts/print_mcp_config.py`.
|
|
72
|
+
3. Скопируйте вывод и вставьте в `~/.cursor/mcp.json` в объект `mcpServers` (если файла нет — создайте с обёрткой `{"mcpServers": { ... } }`).
|
|
73
|
+
4. Вставьте в `env` свой `ZAI_API_KEY` и при необходимости `ZAI_PROJECT_ROOT`.
|
|
74
|
+
5. Перезапустите MCP в Cursor (или перезапустите Cursor).
|
|
75
|
+
|
|
76
|
+
Скрипт `print_mcp_config.py` поддерживает macOS, Linux и Windows и подставляет типичные пути к pipx. Если репозитория нет (только пакет с PyPI), подставьте путь к pipx вручную — типичные расположения:
|
|
77
|
+
|
|
78
|
+
| Платформа | Типичный путь к pipx |
|
|
79
|
+
|-----------|----------------------|
|
|
80
|
+
| macOS (Homebrew) | `/opt/homebrew/bin/pipx` или `/usr/local/bin/pipx` |
|
|
81
|
+
| Linux | `$HOME/.local/bin/pipx` или `/usr/bin/pipx` |
|
|
82
|
+
| Windows | `%USERPROFILE%\.local\bin\pipx.exe` или через `where pipx` в cmd |
|
|
83
|
+
|
|
84
|
+
В терминале: `which pipx` (macOS/Linux) или `where pipx` (Windows) — выведет путь для вашей системы.
|
|
85
|
+
|
|
86
|
+
### Вариант: локальная разработка (pip install -e .)
|
|
87
|
+
|
|
88
|
+
1. В проекте: `pip install -e .`
|
|
89
|
+
2. В `mcp.json` укажите полный путь к тому же Python, в окружении которого установлен пакет, например:
|
|
68
90
|
```json
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"zai-coding-gateway": {
|
|
72
|
-
"command": "/путь/к/.venv/bin/python",
|
|
73
|
-
"args": ["-m", "zai_coding_gateway.main", "--stdio"],
|
|
74
|
-
"env": {
|
|
75
|
-
"ZAI_API_KEY": "ваш-ключ",
|
|
76
|
-
"ZAI_PROJECT_ROOT": "/путь/к/корню/проекта"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
91
|
+
"command": "/путь/к/.venv/bin/python",
|
|
92
|
+
"args": ["-m", "zai_coding_gateway.main", "--stdio"],
|
|
81
93
|
```
|
|
82
|
-
|
|
94
|
+
3. В `env` задайте `ZAI_API_KEY` и при необходимости `ZAI_PROJECT_ROOT`.
|
|
83
95
|
|
|
84
96
|
## Модели (work / fast)
|
|
85
97
|
|
|
@@ -7,7 +7,7 @@ zai_coding_gateway/server.py,sha256=i-EZrGVzyO6ncriQXw1mhgDu6GcOChuNpTna443hZ7k,
|
|
|
7
7
|
zai_coding_gateway/tools/__init__.py,sha256=54dlzvfE3ABXIr0c43WRCDcyRLyoOujQBzOoDoQypZI,405
|
|
8
8
|
zai_coding_gateway/tools/file_io.py,sha256=cPEU-lnOgWUOWWlP7KnHU-N0-gc5X75Eu1taRALFSss,10075
|
|
9
9
|
zai_coding_gateway/tools/solve_in_workspace.py,sha256=upD6rFp1ASBfuwCKqs28gRXjERxmIo0GwbzL6AwJhoY,33037
|
|
10
|
-
zai_coding_gateway-0.1.
|
|
11
|
-
zai_coding_gateway-0.1.
|
|
12
|
-
zai_coding_gateway-0.1.
|
|
13
|
-
zai_coding_gateway-0.1.
|
|
10
|
+
zai_coding_gateway-0.1.1.dist-info/METADATA,sha256=JYuGjqYAyaqdtyzf5QxzgJa-4_xQCiJXC_tda2zOdG8,16969
|
|
11
|
+
zai_coding_gateway-0.1.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
12
|
+
zai_coding_gateway-0.1.1.dist-info/entry_points.txt,sha256=oOLFZHbaSY5-gyqFseThMdL5BlmnNpD79x9PRywodPA,68
|
|
13
|
+
zai_coding_gateway-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|