@paparats/cli 0.2.2 → 0.2.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/README.md +90 -14
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
# @paparats/cli
|
|
2
2
|
|
|
3
|
-
CLI for [Paparats MCP](https://github.com/IBazylchuk/paparats-mcp)
|
|
3
|
+
CLI for [Paparats MCP](https://github.com/IBazylchuk/paparats-mcp) - semantic code search across repositories with AST-based chunking, symbol graph, and vector search. Designed for AI coding assistants (Claude Code, Cursor).
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **AST-based code chunking** via tree-sitter (10 languages) with regex fallback
|
|
8
|
+
- **Symbol graph** - cross-chunk call/reference relationships
|
|
9
|
+
- **Vector search** powered by Qdrant + Ollama (Jina Code Embeddings)
|
|
10
|
+
- **Git metadata** - commit history and ticket references per chunk
|
|
11
|
+
- **Dual MCP endpoints** - coding mode and support mode with different tool sets
|
|
12
|
+
- **Docker-based deployment** - one command setup with Qdrant, Ollama, and MCP server
|
|
4
13
|
|
|
5
14
|
## Install
|
|
6
15
|
|
|
@@ -10,27 +19,94 @@ npm install -g @paparats/cli
|
|
|
10
19
|
|
|
11
20
|
## Prerequisites
|
|
12
21
|
|
|
13
|
-
- **Docker** + **Docker Compose**
|
|
14
|
-
- **
|
|
22
|
+
- **Docker** + **Docker Compose** - runs Qdrant, Ollama, and MCP server
|
|
23
|
+
- **Node.js** >= 18
|
|
15
24
|
|
|
16
|
-
## Quick
|
|
25
|
+
## Quick Start
|
|
17
26
|
|
|
18
27
|
```bash
|
|
19
|
-
# 1.
|
|
20
|
-
docker --version && docker compose version && ollama --version
|
|
21
|
-
|
|
22
|
-
# 2. One-time setup: starts Qdrant + MCP server, downloads GGUF (~1.6 GB)
|
|
28
|
+
# 1. One-time setup: starts Docker containers, downloads embedding model (~1.6 GB)
|
|
23
29
|
paparats install
|
|
24
30
|
|
|
25
|
-
#
|
|
31
|
+
# 2. In your project directory
|
|
26
32
|
cd your-project
|
|
27
|
-
paparats init
|
|
28
|
-
paparats index
|
|
33
|
+
paparats init # creates .paparats.yml config
|
|
34
|
+
paparats index # index the codebase
|
|
29
35
|
|
|
30
|
-
#
|
|
36
|
+
# 3. Keep index in sync when files change
|
|
31
37
|
paparats watch
|
|
32
38
|
|
|
33
|
-
#
|
|
39
|
+
# 4. Connect your IDE (Cursor, Claude Code) to the MCP server
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Install Modes
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Developer mode (default) - Docker stack + local project indexing
|
|
46
|
+
paparats install --mode developer
|
|
47
|
+
|
|
48
|
+
# Server mode - full Docker stack with auto-indexer for multiple repos
|
|
49
|
+
paparats install --mode server --repos owner/repo1,owner/repo2
|
|
50
|
+
|
|
51
|
+
# Support mode - client-only setup, connects to existing server
|
|
52
|
+
paparats install --mode support --server http://your-server:9876
|
|
34
53
|
```
|
|
35
54
|
|
|
36
|
-
|
|
55
|
+
## Commands
|
|
56
|
+
|
|
57
|
+
| Command | Description |
|
|
58
|
+
| ------------------------- | ------------------------------------------------ |
|
|
59
|
+
| `paparats install` | Set up Docker containers and configure IDE |
|
|
60
|
+
| `paparats init` | Create `.paparats.yml` config in current project |
|
|
61
|
+
| `paparats index` | Index the codebase (or reindex after changes) |
|
|
62
|
+
| `paparats watch` | Watch for file changes and auto-reindex |
|
|
63
|
+
| `paparats search <query>` | Search indexed code from terminal |
|
|
64
|
+
| `paparats doctor` | Check health of all services |
|
|
65
|
+
| `paparats status` | Show indexing status for current project |
|
|
66
|
+
|
|
67
|
+
## MCP Tools
|
|
68
|
+
|
|
69
|
+
Once connected, your AI assistant gets access to these tools:
|
|
70
|
+
|
|
71
|
+
**Coding mode** (`/mcp`): `search_code`, `get_chunk`, `find_usages`, `health_check`, `reindex`
|
|
72
|
+
|
|
73
|
+
**Support mode** (`/support/mcp`): all coding tools plus `get_chunk_meta`, `search_changes`, `explain_feature`, `recent_changes`, `impact_analysis`
|
|
74
|
+
|
|
75
|
+
## Configuration
|
|
76
|
+
|
|
77
|
+
Project config lives in `.paparats.yml`:
|
|
78
|
+
|
|
79
|
+
```yaml
|
|
80
|
+
project: my-project
|
|
81
|
+
group: my-group
|
|
82
|
+
language: [typescript]
|
|
83
|
+
|
|
84
|
+
indexing:
|
|
85
|
+
paths: [src, lib]
|
|
86
|
+
exclude: [node_modules, dist, '**/*.test.ts']
|
|
87
|
+
|
|
88
|
+
chunking:
|
|
89
|
+
max_lines: 60
|
|
90
|
+
overlap_lines: 5
|
|
91
|
+
|
|
92
|
+
metadata:
|
|
93
|
+
service: my-service
|
|
94
|
+
tags: [backend, api]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Related Packages
|
|
98
|
+
|
|
99
|
+
| Package | Description |
|
|
100
|
+
| ----------------------------------------------------------------------- | ------------------------------------------------------- |
|
|
101
|
+
| [@paparats/shared](https://www.npmjs.com/package/@paparats/shared) | Shared utilities (path validation, gitignore, excludes) |
|
|
102
|
+
| [ibaz/paparats-server](https://hub.docker.com/r/ibaz/paparats-server) | MCP server Docker image |
|
|
103
|
+
| [ibaz/paparats-indexer](https://hub.docker.com/r/ibaz/paparats-indexer) | Auto-indexer Docker image |
|
|
104
|
+
| [ibaz/paparats-ollama](https://hub.docker.com/r/ibaz/paparats-ollama) | Ollama with pre-baked embedding model |
|
|
105
|
+
|
|
106
|
+
## Documentation
|
|
107
|
+
|
|
108
|
+
See the [full documentation](https://github.com/IBazylchuk/paparats-mcp#readme) for detailed setup guides, architecture overview, and configuration reference.
|
|
109
|
+
|
|
110
|
+
## License
|
|
111
|
+
|
|
112
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paparats/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"mcpName": "io.github.IBazylchuk/paparats-mcp",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"description": "CLI for Paparats MCP
|
|
6
|
+
"description": "CLI for Paparats MCP - semantic code search with AST chunking, symbol graph, and vector search for AI coding assistants",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "Ilya Bazylchuk",
|
|
9
9
|
"homepage": "https://github.com/IBazylchuk/paparats-mcp#readme",
|
|
@@ -15,10 +15,16 @@
|
|
|
15
15
|
"ollama",
|
|
16
16
|
"cursor",
|
|
17
17
|
"claude",
|
|
18
|
+
"claude-code",
|
|
18
19
|
"model-context-protocol",
|
|
19
20
|
"cli",
|
|
20
21
|
"code-search",
|
|
21
|
-
"ai-assistant"
|
|
22
|
+
"ai-assistant",
|
|
23
|
+
"tree-sitter",
|
|
24
|
+
"ast",
|
|
25
|
+
"symbol-graph",
|
|
26
|
+
"docker",
|
|
27
|
+
"code-intelligence"
|
|
22
28
|
],
|
|
23
29
|
"repository": {
|
|
24
30
|
"type": "git",
|