braynix-dev-mcp 2.2.0__tar.gz
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.
- braynix_dev_mcp-2.2.0/LICENSE +21 -0
- braynix_dev_mcp-2.2.0/PKG-INFO +451 -0
- braynix_dev_mcp-2.2.0/README.md +430 -0
- braynix_dev_mcp-2.2.0/app.py +60 -0
- braynix_dev_mcp-2.2.0/brain/__init__.py +7 -0
- braynix_dev_mcp-2.2.0/brain/dependency.py +292 -0
- braynix_dev_mcp-2.2.0/brain/guardian.py +124 -0
- braynix_dev_mcp-2.2.0/brain/handoff_engine.py +235 -0
- braynix_dev_mcp-2.2.0/brain/orchestrator.py +406 -0
- braynix_dev_mcp-2.2.0/brain/phase_manager.py +285 -0
- braynix_dev_mcp-2.2.0/brain/prd_manager.py +151 -0
- braynix_dev_mcp-2.2.0/brain/project_readiness.py +1071 -0
- braynix_dev_mcp-2.2.0/brain/requirements.py +300 -0
- braynix_dev_mcp-2.2.0/brain/sync_engine.py +554 -0
- braynix_dev_mcp-2.2.0/brain/todo_engine.py +355 -0
- braynix_dev_mcp-2.2.0/braynix_dev_mcp.egg-info/PKG-INFO +451 -0
- braynix_dev_mcp-2.2.0/braynix_dev_mcp.egg-info/SOURCES.txt +38 -0
- braynix_dev_mcp-2.2.0/braynix_dev_mcp.egg-info/dependency_links.txt +1 -0
- braynix_dev_mcp-2.2.0/braynix_dev_mcp.egg-info/entry_points.txt +3 -0
- braynix_dev_mcp-2.2.0/braynix_dev_mcp.egg-info/requires.txt +3 -0
- braynix_dev_mcp-2.2.0/braynix_dev_mcp.egg-info/top_level.txt +9 -0
- braynix_dev_mcp-2.2.0/cli.py +503 -0
- braynix_dev_mcp-2.2.0/context.py +409 -0
- braynix_dev_mcp-2.2.0/prompts/__init__.py +3 -0
- braynix_dev_mcp-2.2.0/prompts/definitions.py +136 -0
- braynix_dev_mcp-2.2.0/pyproject.toml +63 -0
- braynix_dev_mcp-2.2.0/resources/__init__.py +3 -0
- braynix_dev_mcp-2.2.0/resources/definitions.py +35 -0
- braynix_dev_mcp-2.2.0/security.py +136 -0
- braynix_dev_mcp-2.2.0/server.py +322 -0
- braynix_dev_mcp-2.2.0/setup.cfg +4 -0
- braynix_dev_mcp-2.2.0/tests/test_optimizations.py +113 -0
- braynix_dev_mcp-2.2.0/tests/test_v2_features.py +259 -0
- braynix_dev_mcp-2.2.0/tools/__init__.py +6 -0
- braynix_dev_mcp-2.2.0/tools/context_mgmt.py +257 -0
- braynix_dev_mcp-2.2.0/tools/desktop_ops.py +347 -0
- braynix_dev_mcp-2.2.0/tools/file_ops.py +413 -0
- braynix_dev_mcp-2.2.0/tools/git_ops.py +169 -0
- braynix_dev_mcp-2.2.0/tools/search.py +122 -0
- braynix_dev_mcp-2.2.0/tools/terminal.py +108 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Pranjal Yadav
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: braynix-dev-mcp
|
|
3
|
+
Version: 2.2.0
|
|
4
|
+
Summary: AI Engineering Operating System and local MCP server.
|
|
5
|
+
Author-email: Pranjal Yadav <2k24.cs1l.2410719@gmail.com>
|
|
6
|
+
Maintainer-email: Pranjal Yadav <2k24.cs1l.2410719@gmail.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Homepage, https://dev-mcp.me
|
|
9
|
+
Project-URL: Repository, https://github.com/pranjal2410719/dev-mcp
|
|
10
|
+
Project-URL: Issues, https://github.com/pranjal2410719/dev-mcp/issues
|
|
11
|
+
Keywords: mcp,model-context-protocol,fastmcp,ai-engineering,developer-tools,project-management
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Requires-Python: >=3.10
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: fastmcp<4,>=3.4.2
|
|
18
|
+
Requires-Dist: readchar>=4.0.0
|
|
19
|
+
Requires-Dist: rich>=13.7.0
|
|
20
|
+
Dynamic: license-file
|
|
21
|
+
|
|
22
|
+
<!-- mcp-name: io.github.pranjal2410719/dev-mcp -->
|
|
23
|
+
|
|
24
|
+
# ๐ง dev-mcp: AI Engineering Operating System (v2.2.0)
|
|
25
|
+
|
|
26
|
+
`dev-mcp` is a production-grade **Model Context Protocol (MCP)** server that turns your AI assistants (Claude, Cursor, Gemini, Cline, Roo Code, Windsurf, Antigravity CLI) into autonomous **Technical Project Managers and Desktop Automation Engineers**.
|
|
27
|
+
|
|
28
|
+
Rather than treating LLMs as stateless code generators, `dev-mcp` establishes a persistent **Project Brain** directly in your workspace repository. It preserves context, PRD specifications, phase timelines, task dependencies, architectural guards, and desktop verification states across multiple AI sessions and platforms.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## ๐ฅ Author & Maintainer Profile
|
|
33
|
+
|
|
34
|
+
For inquiries, support, or technical contributions, reach out to:
|
|
35
|
+
|
|
36
|
+
* **Name:** Pranjal Yadav
|
|
37
|
+
* **Email:** [2k24.cs1l.2410719@gmail.com](mailto:2k24.cs1l.2410719@gmail.com)
|
|
38
|
+
* **LinkedIn:** [linkedin.com/in/-pranjal22/](https://www.linkedin.com/in/-pranjal22/)
|
|
39
|
+
* **GitHub:** [github.com/pranjal2410719](https://github.com/pranjal2410719)
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## โก What's New in v2.1.0?
|
|
44
|
+
|
|
45
|
+
* **91 Registered MCP Tools across 18 specialized modules.**
|
|
46
|
+
* **Dynamic Tool Profiling (`DEV_MCP_PROFILE`)**: Slash LLM prompt token consumption by up to **75%** by loading only the tools relevant to your workflow (`code`, `planning`, `audit`, `desktop`, or `all`).
|
|
47
|
+
* **Desktop GUI Automation & Verification (`tools/desktop_ops.py`)**: 16 dedicated tools plus a universal dispatcher (`desktop_action`) integrating with `agent-desktop` (Linux AT-SPI / X11 / Wayland, macOS, Windows) for 100% full-coverage GUI inspection, clicking, typing, shortcut dispatching, and window automation.
|
|
48
|
+
* **High-Speed Filesystem & Search**:
|
|
49
|
+
- **26.2ร faster** path validation in `security.py` (0.087ms vs 2.28ms).
|
|
50
|
+
- Sliced reads (`start_line`, `end_line`), line numbering, and safety truncation (>2,500 lines).
|
|
51
|
+
- Atomic writing via temporary files and `os.replace`.
|
|
52
|
+
- In-place string editing with exact `count` control and whitespace mismatch assistance.
|
|
53
|
+
- Multi-file atomic batch replacements (`batch_replace`).
|
|
54
|
+
- File metadata inspection (`file_info`).
|
|
55
|
+
- Automatic noise filtering (`.git`, `node_modules`, `__pycache__`, `.venv`, `.next`, `dist`, `build`).
|
|
56
|
+
- Native Ripgrep (`rg`) search with Python regex fallback.
|
|
57
|
+
* **AST Dependency & Blast Radius Caching**: `mtime`-backed AST parse caching (`_FILE_PARSE_CACHE`) reduces dependency traversal times to sub-millisecond speeds.
|
|
58
|
+
* **Persistent Git Hook Automation (`install_git_hooks`)**: Automatically generates a Git pre-commit hook that syncs `.project_brain` on every native terminal commit.
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## ๐๏ธ Architecture Overview
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
Developer / AI Host Client
|
|
66
|
+
(Cursor, Claude Desktop, Windsurf, Antigravity CLI)
|
|
67
|
+
โ
|
|
68
|
+
โผ
|
|
69
|
+
dev-mcp Server
|
|
70
|
+
(FastMCP 3.4.2 ยท Python 3.10+)
|
|
71
|
+
โ
|
|
72
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
73
|
+
โ โ โ
|
|
74
|
+
โผ โผ โผ
|
|
75
|
+
Project Workspace Security Sandbox Desktop Automation
|
|
76
|
+
โโโ Source Files โโโ Path Jailing (safe) โโโ agent-desktop CLI
|
|
77
|
+
โโโ Git Repository โโโ Allowed Dirs (lab) โโโ AT-SPI Accessibility
|
|
78
|
+
โโโ .project_brain/ โโโ Command Filter โโโ Screen / Window Ops
|
|
79
|
+
โโโ config.yaml
|
|
80
|
+
โโโ prd/
|
|
81
|
+
โโโ tasks/
|
|
82
|
+
โโโ handoffs/
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## ๐ Enhanced Startup Banner
|
|
88
|
+
|
|
89
|
+
On server boot, `dev-mcp` renders a rich visual banner with active profile status and host diagnostics:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
|
|
93
|
+
โ โ
|
|
94
|
+
โ โโโ โโโ โโโ โโโ โโโโโ โโโ โโโ โ
|
|
95
|
+
โ โโ โโโ โโโ โ โ โ โ โโโ โโโ โ
|
|
96
|
+
โ โ
|
|
97
|
+
โ FastMCP 3.4.2 โ
|
|
98
|
+
โ https://gofastmcp.com โ
|
|
99
|
+
โ โ
|
|
100
|
+
โ ๐ฅ Server: dev-mcp, 3.4.2 โ
|
|
101
|
+
โ ๐ฏ Profile: ALL (91 Tools / 18 Modules) โ
|
|
102
|
+
โ ๐ Deploy free: https://horizon.prefect.io โ
|
|
103
|
+
โ โ
|
|
104
|
+
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## ๐ฏ Tool Profiles & Token Optimization (`DEV_MCP_PROFILE`)
|
|
110
|
+
|
|
111
|
+
Loading 91 tools into an LLM context consumes ~12,500 system prompt tokens on every turn. Set the `DEV_MCP_PROFILE` environment variable in your client configuration to load only what you need:
|
|
112
|
+
|
|
113
|
+
| Profile | Token Overhead | Reduction | Modules Loaded | Primary Use Case |
|
|
114
|
+
| :--- | :--- | :--- | :--- | :--- |
|
|
115
|
+
| `code` | ~4,200 tokens | **66.4%** | File Ops, Search, Context, Git Ops, Terminal | Fast daily coding and refactoring sprints |
|
|
116
|
+
| `planning` | ~3,800 tokens | **69.6%** | PRD Manager, Todo Engine, Phase Manager, Context | Technical project management and roadmaps |
|
|
117
|
+
| `audit` | ~4,500 tokens | **64.0%** | Readiness, Guardian, Dependency, Doctor, Outcome | Architecture review and security audits |
|
|
118
|
+
| `desktop` | ~3,600 tokens | **71.2%** | Desktop Ops, Terminal, File Ops | GUI testing and desktop automation |
|
|
119
|
+
| `all` (default) | ~12,500 tokens | 0% | All 18 modules (91 tools) | Full autonomous development workflows |
|
|
120
|
+
|
|
121
|
+
To check the active profile programmatically, call `get_dev_mcp_profile()`.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## ๐น๏ธ Interactive Keyboard Shortcut Guide (`dev-mcp-guide`)
|
|
126
|
+
|
|
127
|
+
Launch the built-in interactive terminal helper at any time:
|
|
128
|
+
```bash
|
|
129
|
+
dev-mcp-guide
|
|
130
|
+
```
|
|
131
|
+
Or, while running the `dev-mcp` server interactively in a terminal, press `?`, `h`, or `/` to display the modal overlay.
|
|
132
|
+
|
|
133
|
+
* **โ / โ** or **Tab**: Switch tabs (General, Commands, Shortcuts).
|
|
134
|
+
* **โ / โ**: Scroll list entries.
|
|
135
|
+
* **esc / q**: Return to the server loop.
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## ๐ Full Setup & Installation
|
|
140
|
+
|
|
141
|
+
### 1. Prerequisites
|
|
142
|
+
- **Python 3.10+**
|
|
143
|
+
- **Git**
|
|
144
|
+
- *(Optional)* **agent-desktop** (`npm install -g agent-desktop`) for GUI testing on Linux, macOS, or Windows.
|
|
145
|
+
- *(Optional)* **ripgrep** (`sudo apt install ripgrep`) for high-speed file searches.
|
|
146
|
+
|
|
147
|
+
### 2. Installation Options
|
|
148
|
+
|
|
149
|
+
**Package Installation (PyPI: `braynix-dev-mcp`)**
|
|
150
|
+
```bash
|
|
151
|
+
# One-time installation
|
|
152
|
+
uv tool install braynix-dev-mcp
|
|
153
|
+
|
|
154
|
+
# Run the server
|
|
155
|
+
dev-mcp
|
|
156
|
+
|
|
157
|
+
# Or run without a permanent installation
|
|
158
|
+
uvx --from braynix-dev-mcp dev-mcp
|
|
159
|
+
|
|
160
|
+
# Open the interactive guide
|
|
161
|
+
dev-mcp-guide
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Alternatively using `pip` or `pipx`:
|
|
165
|
+
```bash
|
|
166
|
+
pipx install braynix-dev-mcp
|
|
167
|
+
# or in a virtualenv:
|
|
168
|
+
pip install braynix-dev-mcp
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
**Local Development Clone**
|
|
172
|
+
```bash
|
|
173
|
+
# Clone the repository
|
|
174
|
+
git clone https://github.com/pranjal2410719/dev-mcp.git
|
|
175
|
+
cd dev-mcp
|
|
176
|
+
|
|
177
|
+
# Setup virtual environment with uv
|
|
178
|
+
uv venv
|
|
179
|
+
source .venv/bin/activate
|
|
180
|
+
uv pip install -e .
|
|
181
|
+
|
|
182
|
+
# Or using standard python
|
|
183
|
+
python3 -m venv .venv
|
|
184
|
+
source .venv/bin/activate
|
|
185
|
+
pip install -e .
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## โ๏ธ Configuring AI Clients
|
|
191
|
+
|
|
192
|
+
Clients can invoke `dev-mcp` directly (if installed globally or in PATH) or via its virtual environment Python executable.
|
|
193
|
+
|
|
194
|
+
### 1. Claude Desktop
|
|
195
|
+
Add to `~/.config/Claude/claude_desktop_config.json` (Linux/macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
196
|
+
```json
|
|
197
|
+
{
|
|
198
|
+
"mcpServers": {
|
|
199
|
+
"dev-mcp": {
|
|
200
|
+
"command": "dev-mcp",
|
|
201
|
+
"env": {
|
|
202
|
+
"DEV_MCP_PROFILE": "all"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
*(If running from a local source checkout, set `"command": "/path/to/dev-mcp/.venv/bin/python"` and `"args": ["/path/to/dev-mcp/server.py"]`)*
|
|
209
|
+
|
|
210
|
+
### 2. Cursor
|
|
211
|
+
1. Go to **Settings** โ **Features** โ **MCP**.
|
|
212
|
+
2. Click **+ Add New MCP Server**.
|
|
213
|
+
3. Set Name to `dev-mcp`, Type to `command`, and Command to:
|
|
214
|
+
```bash
|
|
215
|
+
dev-mcp
|
|
216
|
+
```
|
|
217
|
+
*(or `/path/to/dev-mcp/.venv/bin/python /path/to/dev-mcp/server.py` for source checkouts)*
|
|
218
|
+
|
|
219
|
+
### 3. Windsurf
|
|
220
|
+
Add to your `mcp_config.json`:
|
|
221
|
+
```json
|
|
222
|
+
{
|
|
223
|
+
"mcpServers": {
|
|
224
|
+
"dev-mcp": {
|
|
225
|
+
"command": "dev-mcp",
|
|
226
|
+
"env": {
|
|
227
|
+
"DEV_MCP_PROFILE": "code"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### 4. Antigravity CLI (Google DeepMind)
|
|
235
|
+
Add to `~/.gemini/antigravity-cli/mcp_config.json`:
|
|
236
|
+
```json
|
|
237
|
+
{
|
|
238
|
+
"mcpServers": {
|
|
239
|
+
"dev-mcp": {
|
|
240
|
+
"command": "dev-mcp"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
> **Host Client vs MCP Server Boundary:** Slash commands (`/goal`, `/schedule`, `/grill-me`, `/teamwork`, `/learn`) are specialized execution loops of host clients like Antigravity CLI. Dev MCP provides the 91 deterministic MCP tools, state persistence (`.project_brain/`), and safety guardrails that host agents invoke during those workflows.
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
## ๐ The Onboarding & Execution Workflow
|
|
251
|
+
|
|
252
|
+
```text
|
|
253
|
+
assess_project_readiness()
|
|
254
|
+
โ
|
|
255
|
+
โโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโ
|
|
256
|
+
โผ (If score < 80, empty) โผ (If score < 80, legacy)
|
|
257
|
+
bootstrap_project() adopt_existing_project()
|
|
258
|
+
โ โ
|
|
259
|
+
โโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโ
|
|
260
|
+
โผ
|
|
261
|
+
doctor() (diagnostics)
|
|
262
|
+
โ
|
|
263
|
+
โผ
|
|
264
|
+
start_session()
|
|
265
|
+
โ
|
|
266
|
+
โผ
|
|
267
|
+
project_dashboard()
|
|
268
|
+
โ
|
|
269
|
+
โผ
|
|
270
|
+
next_best_action()
|
|
271
|
+
โ
|
|
272
|
+
โผ
|
|
273
|
+
[Sync Plan] โโโบ sync_workspace()
|
|
274
|
+
โ
|
|
275
|
+
โผ
|
|
276
|
+
[Audit Code] โโโบ verify_work()
|
|
277
|
+
โ
|
|
278
|
+
โผ
|
|
279
|
+
[GUI Verification] โโโบ desktop_verify_element()
|
|
280
|
+
โ
|
|
281
|
+
โผ
|
|
282
|
+
[Audit Goal] โโโบ verify_outcome()
|
|
283
|
+
โ
|
|
284
|
+
โผ
|
|
285
|
+
end_session()
|
|
286
|
+
โ
|
|
287
|
+
โผ
|
|
288
|
+
prepare_commit() โโโบ commit_changes()
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## ๐ ๏ธ Complete MCP Tool Catalog (91 Tools)
|
|
294
|
+
|
|
295
|
+
### 1. Core Onboarding & Diagnostics (`brain/project_readiness.py`)
|
|
296
|
+
- `assess_project_readiness(path=".")`: Scan directory and calculate structural onboarding readiness score (0-100%) across PRD, tasks, git, and tests.
|
|
297
|
+
- `project_readiness_report(path=".")`: Generate formatted Markdown readiness report.
|
|
298
|
+
- `bootstrap_project(path=".")`: Initialize PRD templates, milestones, and brain structure.
|
|
299
|
+
- `adopt_existing_project(path=".")`: Scan existing legacy repository and draft PRD, context, and backlog.
|
|
300
|
+
- `doctor(path=".")`: Run diagnostic health audit across 7 layers.
|
|
301
|
+
- `reset_project_brain(path=".")`: Reset project metadata while preserving source code and git.
|
|
302
|
+
- `archive_project_brain(path=".")`: Backup project brain state into `.project_brain_archive/`.
|
|
303
|
+
- `create_project_workspace(name, template="blank", path=".")`: Create isolated sibling workspace directory.
|
|
304
|
+
|
|
305
|
+
### 2. Session Orchestration (`brain/orchestrator.py`)
|
|
306
|
+
- `generate_project_brain(path=".")`: Consolidate current sprint metrics into a single dashboard.
|
|
307
|
+
- `next_best_action(path=".")`: Recommend the highest-priority unblocked task.
|
|
308
|
+
- `start_session(path=".")`: Begin a sprint and generate an AI task briefing.
|
|
309
|
+
- `end_session(session_summary, known_issues="", path=".")`: Conclude sprint and record handoff.
|
|
310
|
+
- `prepare_commit(session_summary, path=".")`: Suggest conventional commit message based on Git diff.
|
|
311
|
+
- `commit_changes(message, path=".")`: Stage workspace changes and commit cleanly.
|
|
312
|
+
|
|
313
|
+
### 3. Task & Todo Engine (`brain/todo_engine.py`)
|
|
314
|
+
- `create_task(title, description, phase="", priority="medium", depends_on="", path=".")`: Add task.
|
|
315
|
+
- `update_task(task_id, status="", priority="", title="", path=".")`: Update task attributes.
|
|
316
|
+
- `complete_task(task_id, notes="", path=".")`: Close task with completion notes.
|
|
317
|
+
- `next_task(path=".")`: Get next ready task.
|
|
318
|
+
- `blocked_tasks(path=".")`: List tasks blocked by unfulfilled dependencies.
|
|
319
|
+
- `list_tasks(phase="", status="", priority="", path=".")`: Query tasks by phase, status, or priority.
|
|
320
|
+
|
|
321
|
+
### 4. Phase & Milestone Management (`brain/phase_manager.py`)
|
|
322
|
+
- `get_current_phase(path=".")`: Retrieve active development phase.
|
|
323
|
+
- `set_phase(phase_name, description="", path=".")`: Set active scope phase.
|
|
324
|
+
- `complete_phase(notes="", path=".")`: Conclude current phase.
|
|
325
|
+
- `next_phase(phase_name, description="", path=".")`: Advance to next phase.
|
|
326
|
+
- `list_phases(path=".")`: List all defined phases.
|
|
327
|
+
- `add_milestone(name, target_date="", features="", path=".")`: Define project milestone.
|
|
328
|
+
- `list_milestones(path=".")`: Enumerate all milestones.
|
|
329
|
+
|
|
330
|
+
### 5. PRD & Requirements Traceability (`brain/prd_manager.py`, `brain/requirements.py`)
|
|
331
|
+
- `get_prd(document="PRD", path=".")`: Read markdown PRD specification document.
|
|
332
|
+
- `update_prd(document, content, path=".")`: Update PRD specification document.
|
|
333
|
+
- `summarize_prd(path=".")`: Generate bullet-point requirements summary.
|
|
334
|
+
- `compare_work_to_prd(path=".")`: Audit backlog against PRD specifications.
|
|
335
|
+
- `extract_requirements(path=".")`: Extract structured requirements into `requirements.json`.
|
|
336
|
+
- `verify_requirements(feature_name="", path=".")`: Verify code implementation coverage against PRD section keywords (pair with `verify_work` for unit test coverage).
|
|
337
|
+
- `verify_outcome(task_id, path=".")`: Deep outcome audit verifying end-to-end user journeys.
|
|
338
|
+
|
|
339
|
+
### 6. Workspace Sync & Verification (`brain/sync_engine.py`)
|
|
340
|
+
- `sync_workspace(path=".")`: Match Git branch names, commit logs, and modified files to tasks to compute heuristic completion confidence scores.
|
|
341
|
+
- `verify_work(task_id, path=".")`: Gather git diff, tests, and architecture rules to compile verification dossier.
|
|
342
|
+
- `project_dashboard(path=".")`: Unified manager dashboard combining Git, tasks, and code health.
|
|
343
|
+
|
|
344
|
+
### 7. Sprint Handoffs (`brain/handoff_engine.py`)
|
|
345
|
+
- `generate_handoff(session_summary="", known_issues="", path=".")`: Save sprint handoff log.
|
|
346
|
+
- `get_last_handoff(path=".")`: Load latest session handoff.
|
|
347
|
+
- `list_handoffs(path=".")`: List historical handoffs with timestamps.
|
|
348
|
+
|
|
349
|
+
### 8. Architecture & Dependency Control (`brain/guardian.py`, `brain/dependency.py`)
|
|
350
|
+
- `validate_architecture(path=".")`: Check code imports against forbidden and required technology rules.
|
|
351
|
+
- `build_dependency_graph(path=".")`: Build complete dependency graph with cached AST parser.
|
|
352
|
+
- `impact_analysis(file_path, path=".")`: Calculate blast radius and affected downstream files before refactoring.
|
|
353
|
+
|
|
354
|
+
### 9. Context Management (`tools/context_mgmt.py`)
|
|
355
|
+
- `init_context(path=".")`: Initialize or auto-detect project context.
|
|
356
|
+
- `get_context(dot_path="", path=".")`: Query context field using dot notation.
|
|
357
|
+
- `update_context(dot_path, value, path=".")`: Set context field value.
|
|
358
|
+
- `add_to_context_list(dot_path, item, path=".")`: Append item to list field.
|
|
359
|
+
- `add_key_file(file_path, purpose, details="", root_path=".")`: Track critical codebase file.
|
|
360
|
+
- `add_task(task_id, description, status="pending", branch="", notes="", path=".")`: Add task record.
|
|
361
|
+
- `add_decision(decision, reason, alternatives="", path=".")`: Log Architecture Decision Record (ADR).
|
|
362
|
+
- `export_context_markdown(path=".")`: Export project context to `.project-context.md`.
|
|
363
|
+
- `remove_context_item(dot_path, index, path=".")`: Remove item from list by index.
|
|
364
|
+
- `reset_context(path=".")`: Reset context to defaults.
|
|
365
|
+
- `project_info(path=".")`: Inspect project file count, frameworks, and runtime metrics.
|
|
366
|
+
|
|
367
|
+
### 10. High-Performance File Operations (`tools/file_ops.py`)
|
|
368
|
+
- `read_file(path, start_line=None, end_line=None, line_numbers=False)`: Read sandboxed files with slicing and safety limits.
|
|
369
|
+
- `write_file(path, content, append=False)`: Atomic file writes with directory auto-creation and append support.
|
|
370
|
+
- `edit_file(path, old_string, new_string, count=None)`: Surgical in-place editing with whitespace mismatch detection.
|
|
371
|
+
- `batch_replace(file_paths, old_string, new_string)`: Atomic multi-file text replacement.
|
|
372
|
+
- `file_info(path)`: Get file size, line count, permissions, and modification timestamp.
|
|
373
|
+
- `delete_path(path)`: Delete single file or empty folder.
|
|
374
|
+
- `delete_recursive(path)`: Recursively delete folder trees (blocked in `safe` mode).
|
|
375
|
+
- `list_directory(path)`: List directory entries with human-readable sizes and noise filtering.
|
|
376
|
+
- `glob_files(pattern, base_path=".")`: Find files with glob patterns and noise filtering.
|
|
377
|
+
- `create_directory(path)`: Recursively create directory paths (`mkdir -p`).
|
|
378
|
+
|
|
379
|
+
### 11. Code Search & Terminal Execution (`tools/search.py`, `tools/terminal.py`)
|
|
380
|
+
- `search_code(pattern, path=".", glob_filter=None, max_results=50, context_lines=0)`: High-speed search using Ripgrep (`rg`) with regex fallback.
|
|
381
|
+
- `run_command(command, timeout_seconds=60, workdir=None)`: Execute shell command inside sandbox with safety filtering.
|
|
382
|
+
|
|
383
|
+
### 12. Git Operations & Automation (`tools/git_ops.py`)
|
|
384
|
+
- `git_status(repo_path=".")`: Get working tree status.
|
|
385
|
+
- `git_diff(repo_path=".", staged=False)`: View staged or unstaged diffs.
|
|
386
|
+
- `git_log(repo_path=".", max_count=10)`: Inspect commit history.
|
|
387
|
+
- `git_branch(repo_path=".")`: List local branches.
|
|
388
|
+
- `git_add(repo_path=".", files=".")`: Stage files for commit.
|
|
389
|
+
- `git_commit(repo_path=".", message="update")`: Commit staged files.
|
|
390
|
+
- `git_create_branch(repo_path=".", branch_name="")`: Create and checkout branch.
|
|
391
|
+
- `install_git_hooks(repo_path=".")`: Install Git pre-commit hook to automatically sync `.project_brain`.
|
|
392
|
+
|
|
393
|
+
### 13. Desktop GUI Automation & Inspection (`tools/desktop_ops.py` โ 16 Tools)
|
|
394
|
+
- `desktop_status()`: Inspect `agent-desktop` CLI installation and AT-SPI accessibility bus.
|
|
395
|
+
- `desktop_list_apps()`: List active desktop processes and window titles.
|
|
396
|
+
- `desktop_list_windows(app="")`: List desktop window IDs and geometry bounds.
|
|
397
|
+
- `desktop_snapshot(app="", interactive_only=True, compact=True)`: Capture accessibility tree structure with `@ref_id`s.
|
|
398
|
+
- `desktop_find(name="", role="", app="")`: Locate UI elements (buttons, inputs, menus) by text or role.
|
|
399
|
+
- `desktop_click(ref_id, headed=False)`: Trigger semantic or physical mouse click on target element.
|
|
400
|
+
- `desktop_type(ref_id, text, headed=False)`: Send native keyboard text into target field.
|
|
401
|
+
- `desktop_press(key_combo, headed=False)`: Send key shortcut combos (e.g. `ctrl+c`, `return`, `escape`, `alt+tab`).
|
|
402
|
+
- `desktop_scroll(ref_id="", direction="down", amount=3, headed=False)`: Scroll element or window viewport.
|
|
403
|
+
- `desktop_launch(app, activate=True)`: Launch desktop application and await window presentation.
|
|
404
|
+
- `desktop_close_app(app, force=False)`: Gracefully close or force terminate an application.
|
|
405
|
+
- `desktop_focus_window(app="", window_id="")`: Bring target window to foreground and verify OS focus.
|
|
406
|
+
- `desktop_clipboard(action="get|set|clear", text="")`: Read, write, or clear system clipboard.
|
|
407
|
+
- `desktop_verify_element(name, role="", app="", expected_state="")`: Verify that expected GUI component exists and assert state.
|
|
408
|
+
- `desktop_screenshot(app, output_path="screenshot.png")`: Capture PNG screenshot of application window.
|
|
409
|
+
- `desktop_action(command, args=None, timeout=30)`: Universal dispatcher executing ANY of the 50+ `agent-desktop` commands (`is`, `get`, `hover`, `drag`, `wait`, `batch`, `session`, etc.).
|
|
410
|
+
|
|
411
|
+
### 14. Server Profiling (`server.py`)
|
|
412
|
+
- `get_dev_mcp_profile()`: Inspect active profile mode, loaded modules, and tool counts.
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
## ๐ Security Sandbox & Safety Modes
|
|
417
|
+
|
|
418
|
+
All file and process operations are governed by `security.py`:
|
|
419
|
+
- **`safe` (Default)**: Workspace Lock active. Commands jailed to active project root. Recursive deletions and destructive commands (`sudo`, `mkfs`, `rm -rf`, `git reset --hard`) are blocked.
|
|
420
|
+
- **`trusted`**: Workspace Lock active. Folder deletions and checkout operations permitted within project bounds.
|
|
421
|
+
- **`lab`**: Workspace Lock disabled. Allows operations across allowed directories list (`DEV_MCP_ALLOWED_DIRS`).
|
|
422
|
+
|
|
423
|
+
For security specifications, see **[docs/security.md](docs/security.md)**.
|
|
424
|
+
|
|
425
|
+
---
|
|
426
|
+
|
|
427
|
+
## ๐ In-Depth Documentation
|
|
428
|
+
|
|
429
|
+
- **[User Manual & Developer Guide](docs/user_manual.md)**: Complete guide to all 91 tools with parameter signatures and examples.
|
|
430
|
+
- **[v2.2.0 Release Notes](docs/release-notes-v2.2.0.md)**: Local distribution, PyPI packaging, and MCP Registry metadata.
|
|
431
|
+
- **[v2.1.0 Release Notes](docs/release-notes-v2.1.0.md)**: Performance benchmarks and upgrade guides.
|
|
432
|
+
- **[Architecture Specification](docs/architecture-v2.md)**: Architecture, data structures, and multi-agent isolation.
|
|
433
|
+
- **[Security Model](docs/security.md)**: Workspace Lock, safety modes, and command authorization.
|
|
434
|
+
- **[Multi-Workspace Guide](docs/workspaces.md)**: Managing sibling workspaces and subagent isolation.
|
|
435
|
+
- **[Antigravity CLI Integration](docs/antigravity.md)**: DeepMind Antigravity CLI workflows.
|
|
436
|
+
- **[Open Design Integration](docs/open-design.md)**: Design-to-code metadata synchronization.
|
|
437
|
+
|
|
438
|
+
---
|
|
439
|
+
|
|
440
|
+
## ๐งช Testing & Validation
|
|
441
|
+
|
|
442
|
+
```bash
|
|
443
|
+
# Run unit and optimization test suites
|
|
444
|
+
.venv/bin/python -m unittest discover -s tests -p "*.py" -v
|
|
445
|
+
|
|
446
|
+
# Run the end-to-end MCP workflow verification
|
|
447
|
+
.venv/bin/python tests/validate_mcp_flow.py
|
|
448
|
+
|
|
449
|
+
# Verify optimization benchmarks
|
|
450
|
+
.venv/bin/python tests/test_optimizations.py
|
|
451
|
+
```
|