musubix 1.0.1 → 1.0.3
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.
- package/.github/AGENTS.md +242 -0
- package/.github/prompts/sdd-change-apply.prompt.md +283 -0
- package/.github/prompts/sdd-change-archive.prompt.md +241 -0
- package/.github/prompts/sdd-change-init.prompt.md +269 -0
- package/.github/prompts/sdd-design.prompt.md +250 -0
- package/.github/prompts/sdd-implement.prompt.md +387 -0
- package/.github/prompts/sdd-requirements.prompt.md +193 -0
- package/.github/prompts/sdd-steering.prompt.md +269 -0
- package/.github/prompts/sdd-tasks.prompt.md +255 -0
- package/.github/prompts/sdd-validate.prompt.md +304 -0
- package/.github/skills/musubix-code-generation/SKILL.md +229 -0
- package/.github/skills/musubix-ears-validation/SKILL.md +161 -0
- package/.github/skills/musubix-sdd-workflow/SKILL.md +137 -0
- package/AGENTS.md +286 -0
- package/docs/API-REFERENCE.md +633 -0
- package/docs/GITHUB-ACTIONS-NPM-SETUP.md +132 -0
- package/docs/INSTALL-GUIDE.ja.md +442 -0
- package/docs/INSTALL-GUIDE.md +442 -0
- package/docs/USER-GUIDE.ja.md +824 -0
- package/docs/USER-GUIDE.md +664 -0
- package/docs/evolution-from-musubi-to-musubix.md +764 -0
- package/package.json +11 -6
- package/steering/.musubi-version +1 -0
- package/steering/product.ja.md +572 -0
- package/steering/project.yml +38 -0
- package/steering/rules/constitution.md +412 -0
- package/steering/structure.ja.md +503 -0
- package/steering/tech.ja.md +42 -0
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
# MUSUBIX Installation Guide
|
|
2
|
+
|
|
3
|
+
**Document ID**: INSTALL-GUIDE
|
|
4
|
+
**Version**: 1.0.0
|
|
5
|
+
**Last Updated**: 2026-01-02
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Table of Contents
|
|
10
|
+
|
|
11
|
+
1. [Overview](#overview)
|
|
12
|
+
2. [System Requirements](#system-requirements)
|
|
13
|
+
3. [Installation Methods](#installation-methods)
|
|
14
|
+
4. [YATA Installation](#yata-installation)
|
|
15
|
+
5. [AI Platform Integration](#ai-platform-integration)
|
|
16
|
+
6. [Verification](#verification)
|
|
17
|
+
7. [Troubleshooting](#troubleshooting)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Overview
|
|
22
|
+
|
|
23
|
+
MUSUBIX consists of two main components:
|
|
24
|
+
|
|
25
|
+
```mermaid
|
|
26
|
+
flowchart LR
|
|
27
|
+
subgraph MUSUBIX["MUSUBIX (Node.js)"]
|
|
28
|
+
Core["@nahisaho/musubix-core"]
|
|
29
|
+
MCP["@nahisaho/musubix-mcp-server"]
|
|
30
|
+
Client["@nahisaho/musubix-yata-client"]
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
subgraph YATA["YATA (Python)"]
|
|
34
|
+
Server["YATA MCP Server"]
|
|
35
|
+
KG["Knowledge Graph"]
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
Client <-->|MCP| Server
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
| Component | Language | Role | Required |
|
|
42
|
+
|-----------|----------|------|----------|
|
|
43
|
+
| **MUSUBIX** | Node.js | Neuro-Symbolic AI Coding System | ✅ |
|
|
44
|
+
| **YATA** | Python | Knowledge Graph MCP Server | Optional |
|
|
45
|
+
|
|
46
|
+
### Usage Patterns
|
|
47
|
+
|
|
48
|
+
| Pattern | Installation | Available Features |
|
|
49
|
+
|---------|--------------|-------------------|
|
|
50
|
+
| **Basic** | MUSUBIX only | EARS requirements, C4 design, code generation |
|
|
51
|
+
| **Full** | MUSUBIX + YATA | Above + knowledge graph, formal verification, explanations |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## System Requirements
|
|
56
|
+
|
|
57
|
+
### MUSUBIX (Required)
|
|
58
|
+
|
|
59
|
+
| Item | Requirement |
|
|
60
|
+
|------|-------------|
|
|
61
|
+
| **OS** | Windows 10+, macOS 12+, Linux (Ubuntu 20.04+) |
|
|
62
|
+
| **Node.js** | >= 20.0.0 |
|
|
63
|
+
| **npm** | >= 10.0.0 |
|
|
64
|
+
| **TypeScript** | >= 5.3 (for development) |
|
|
65
|
+
| **Disk Space** | ~100MB |
|
|
66
|
+
|
|
67
|
+
### YATA (Optional)
|
|
68
|
+
|
|
69
|
+
| Item | Requirement |
|
|
70
|
+
|------|-------------|
|
|
71
|
+
| **Python** | >= 3.11 |
|
|
72
|
+
| **uv** | Latest (recommended) or pip |
|
|
73
|
+
| **Disk Space** | ~500MB (including framework knowledge) |
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Installation Methods
|
|
78
|
+
|
|
79
|
+
### Method 1: npm/npx (Recommended)
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# Global installation
|
|
83
|
+
npm install -g musubix
|
|
84
|
+
|
|
85
|
+
# Verify installation
|
|
86
|
+
musubix --version
|
|
87
|
+
musubix-mcp --version
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Method 2: Run directly with npx
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
# Run without installation
|
|
94
|
+
npx musubix --help
|
|
95
|
+
npx musubix init
|
|
96
|
+
|
|
97
|
+
# Start MCP server
|
|
98
|
+
npx @nahisaho/musubix-mcp-server
|
|
99
|
+
npx musubix-mcp --transport stdio
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Method 3: Install to project
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# All-in-one package (recommended)
|
|
106
|
+
npm install musubix
|
|
107
|
+
|
|
108
|
+
# Or install individual packages
|
|
109
|
+
npm install @nahisaho/musubix-core
|
|
110
|
+
npm install @nahisaho/musubix-mcp-server
|
|
111
|
+
npm install @nahisaho/musubix-yata-client # For YATA integration
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
#### Package Comparison
|
|
115
|
+
|
|
116
|
+
| Package | Description | Use Case |
|
|
117
|
+
|---------|-------------|----------|
|
|
118
|
+
| `musubix` | All-in-one bundle | Full features, quick setup |
|
|
119
|
+
| `@nahisaho/musubix-core` | Core library only | Minimal installation |
|
|
120
|
+
| `@nahisaho/musubix-mcp-server` | MCP server only | AI platform integration |
|
|
121
|
+
| `@nahisaho/musubix-yata-client` | YATA client only | Knowledge graph features |
|
|
122
|
+
|
|
123
|
+
### Method 4: Build from source
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Clone the repository
|
|
127
|
+
git clone https://github.com/nahisaho/MUSUBIX.git
|
|
128
|
+
cd MUSUBIX
|
|
129
|
+
|
|
130
|
+
# Install dependencies
|
|
131
|
+
npm install
|
|
132
|
+
|
|
133
|
+
# Build
|
|
134
|
+
npm run build
|
|
135
|
+
|
|
136
|
+
# Link CLI (for development)
|
|
137
|
+
npm link
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## YATA Installation
|
|
143
|
+
|
|
144
|
+
YATA is required for neuro-symbolic features (knowledge graph integration, formal verification, explanation generation).
|
|
145
|
+
|
|
146
|
+
### Prerequisites
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
# Check Python 3.11+
|
|
150
|
+
python --version # Python 3.11.x or higher
|
|
151
|
+
|
|
152
|
+
# Install uv (recommended)
|
|
153
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Install YATA
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
# Clone the repository
|
|
160
|
+
git clone https://github.com/nahisaho/YATA.git
|
|
161
|
+
cd YATA
|
|
162
|
+
|
|
163
|
+
# Install dependencies with uv
|
|
164
|
+
uv sync --all-packages
|
|
165
|
+
|
|
166
|
+
# Verify installation
|
|
167
|
+
uv run yata --version
|
|
168
|
+
uv run yata info
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Start YATA Server
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
# stdio mode (MCP standard)
|
|
175
|
+
uv run yata serve
|
|
176
|
+
|
|
177
|
+
# SSE mode (via HTTP)
|
|
178
|
+
uv run yata serve --transport sse --port 8080
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Basic YATA Operations
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
# Parse source code to build knowledge graph
|
|
185
|
+
uv run yata parse ./src --pattern "**/*.ts" --output graph.json
|
|
186
|
+
|
|
187
|
+
# Search entities
|
|
188
|
+
uv run yata query "function" --type function
|
|
189
|
+
|
|
190
|
+
# Show statistics
|
|
191
|
+
uv run yata stats --graph graph.json
|
|
192
|
+
|
|
193
|
+
# Validate graph integrity
|
|
194
|
+
uv run yata validate --graph graph.json --repair
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## AI Platform Integration
|
|
200
|
+
|
|
201
|
+
### GitHub Copilot (VS Code)
|
|
202
|
+
|
|
203
|
+
Create `.vscode/mcp.json`:
|
|
204
|
+
|
|
205
|
+
```json
|
|
206
|
+
{
|
|
207
|
+
"mcpServers": {
|
|
208
|
+
"musubix": {
|
|
209
|
+
"command": "npx",
|
|
210
|
+
"args": ["@nahisaho/musubix-mcp-server"]
|
|
211
|
+
},
|
|
212
|
+
"yata": {
|
|
213
|
+
"command": "uv",
|
|
214
|
+
"args": ["run", "yata", "serve"],
|
|
215
|
+
"cwd": "/path/to/YATA"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Claude Desktop
|
|
222
|
+
|
|
223
|
+
Configuration file locations:
|
|
224
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
225
|
+
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
226
|
+
- **Linux**: `~/.config/Claude/claude_desktop_config.json`
|
|
227
|
+
|
|
228
|
+
```json
|
|
229
|
+
{
|
|
230
|
+
"mcpServers": {
|
|
231
|
+
"musubix": {
|
|
232
|
+
"command": "npx",
|
|
233
|
+
"args": ["@nahisaho/musubix-mcp-server"]
|
|
234
|
+
},
|
|
235
|
+
"yata": {
|
|
236
|
+
"command": "uv",
|
|
237
|
+
"args": ["run", "yata", "serve"],
|
|
238
|
+
"cwd": "/path/to/YATA"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Claude Code (CLI)
|
|
245
|
+
|
|
246
|
+
Create `.mcp.json` in your project root:
|
|
247
|
+
|
|
248
|
+
```json
|
|
249
|
+
{
|
|
250
|
+
"mcpServers": {
|
|
251
|
+
"musubix": {
|
|
252
|
+
"command": "npx",
|
|
253
|
+
"args": ["@nahisaho/musubix-mcp-server"]
|
|
254
|
+
},
|
|
255
|
+
"yata": {
|
|
256
|
+
"command": "uv",
|
|
257
|
+
"args": ["run", "yata", "serve"],
|
|
258
|
+
"cwd": "/path/to/YATA"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
Or configure via `claude mcp add`:
|
|
265
|
+
|
|
266
|
+
```bash
|
|
267
|
+
# Add MUSUBIX MCP server
|
|
268
|
+
claude mcp add musubix -- npx @nahisaho/musubix-mcp-server
|
|
269
|
+
|
|
270
|
+
# Add YATA MCP server (optional)
|
|
271
|
+
claude mcp add yata -- uv run yata serve
|
|
272
|
+
|
|
273
|
+
# Verify configuration
|
|
274
|
+
claude mcp list
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Cursor IDE
|
|
278
|
+
|
|
279
|
+
Create `.cursor/mcp.json`:
|
|
280
|
+
|
|
281
|
+
```json
|
|
282
|
+
{
|
|
283
|
+
"mcpServers": {
|
|
284
|
+
"musubix": {
|
|
285
|
+
"command": "npx",
|
|
286
|
+
"args": ["@nahisaho/musubix-mcp-server"]
|
|
287
|
+
},
|
|
288
|
+
"yata": {
|
|
289
|
+
"command": "uv",
|
|
290
|
+
"args": ["run", "yata", "serve"],
|
|
291
|
+
"cwd": "/path/to/YATA"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## Verification
|
|
300
|
+
|
|
301
|
+
### Verify MUSUBIX
|
|
302
|
+
|
|
303
|
+
```bash
|
|
304
|
+
# Show CLI help
|
|
305
|
+
musubix --help
|
|
306
|
+
|
|
307
|
+
# Initialize a project
|
|
308
|
+
musubix init my-project
|
|
309
|
+
|
|
310
|
+
# Test MCP server
|
|
311
|
+
musubix-mcp --help
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
### Verify YATA
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
# Show server info
|
|
318
|
+
uv run yata info
|
|
319
|
+
|
|
320
|
+
# Parse sample code
|
|
321
|
+
uv run yata parse ./sample --pattern "**/*.py"
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
### Integration Test
|
|
325
|
+
|
|
326
|
+
```bash
|
|
327
|
+
# Start YATA server (in another terminal)
|
|
328
|
+
cd /path/to/YATA
|
|
329
|
+
uv run yata serve
|
|
330
|
+
|
|
331
|
+
# Verify MUSUBIX can connect to YATA
|
|
332
|
+
# (Use an application with @nahisaho/musubix-yata-client)
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
## Troubleshooting
|
|
338
|
+
|
|
339
|
+
### Node.js Version Error
|
|
340
|
+
|
|
341
|
+
```
|
|
342
|
+
Error: MUSUBIX requires Node.js >= 20.0.0
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
**Solution**:
|
|
346
|
+
```bash
|
|
347
|
+
# Switch version with nvm
|
|
348
|
+
nvm install 20
|
|
349
|
+
nvm use 20
|
|
350
|
+
|
|
351
|
+
# Or install directly from
|
|
352
|
+
# https://nodejs.org/
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### Python Version Error
|
|
356
|
+
|
|
357
|
+
```
|
|
358
|
+
Error: Python 3.11+ is required
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
**Solution**:
|
|
362
|
+
```bash
|
|
363
|
+
# Switch version with pyenv
|
|
364
|
+
pyenv install 3.11
|
|
365
|
+
pyenv local 3.11
|
|
366
|
+
|
|
367
|
+
# Or install directly from
|
|
368
|
+
# https://www.python.org/
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
### uv Not Found
|
|
372
|
+
|
|
373
|
+
```
|
|
374
|
+
command not found: uv
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
**Solution**:
|
|
378
|
+
```bash
|
|
379
|
+
# Install uv
|
|
380
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
381
|
+
|
|
382
|
+
# Update PATH
|
|
383
|
+
source ~/.bashrc # or ~/.zshrc
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
### MCP Server Connection Error
|
|
387
|
+
|
|
388
|
+
```
|
|
389
|
+
Error: Failed to connect to MCP server
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
**Solution**:
|
|
393
|
+
1. Check if the server is running
|
|
394
|
+
2. Check if the port is in use
|
|
395
|
+
3. Check firewall settings
|
|
396
|
+
|
|
397
|
+
```bash
|
|
398
|
+
# Check port
|
|
399
|
+
lsof -i :3000
|
|
400
|
+
|
|
401
|
+
# Check processes
|
|
402
|
+
ps aux | grep musubix
|
|
403
|
+
ps aux | grep yata
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
### npm Permission Error
|
|
407
|
+
|
|
408
|
+
```
|
|
409
|
+
EACCES: permission denied
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
**Solution**:
|
|
413
|
+
```bash
|
|
414
|
+
# Change npm global directory
|
|
415
|
+
mkdir ~/.npm-global
|
|
416
|
+
npm config set prefix '~/.npm-global'
|
|
417
|
+
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
|
|
418
|
+
source ~/.bashrc
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
---
|
|
422
|
+
|
|
423
|
+
## Next Steps
|
|
424
|
+
|
|
425
|
+
After installation, refer to the following documentation:
|
|
426
|
+
|
|
427
|
+
| Document | Description |
|
|
428
|
+
|----------|-------------|
|
|
429
|
+
| [USER-GUIDE.ja.md](USER-GUIDE.ja.md) | User Guide (Japanese) |
|
|
430
|
+
| [API-REFERENCE.md](API-REFERENCE.md) | API Reference |
|
|
431
|
+
| [evolution-from-musubi-to-musubix.md](evolution-from-musubi-to-musubix.md) | Evolution from MUSUBI to MUSUBIX |
|
|
432
|
+
|
|
433
|
+
---
|
|
434
|
+
|
|
435
|
+
## References
|
|
436
|
+
|
|
437
|
+
- [MUSUBIX GitHub](https://github.com/nahisaho/MUSUBIX)
|
|
438
|
+
- [YATA GitHub](https://github.com/nahisaho/YATA)
|
|
439
|
+
- [Node.js Official Site](https://nodejs.org/)
|
|
440
|
+
- [Python Official Site](https://www.python.org/)
|
|
441
|
+
- [uv Documentation](https://docs.astral.sh/uv/)
|
|
442
|
+
- [MCP Specification](https://modelcontextprotocol.io/)
|