@tecet/ollm 0.1.4 → 0.1.5

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.
Files changed (86) hide show
  1. package/dist/cli.js +20 -14
  2. package/dist/cli.js.map +3 -3
  3. package/dist/services/documentService.d.ts.map +1 -1
  4. package/dist/services/documentService.js +12 -2
  5. package/dist/services/documentService.js.map +1 -1
  6. package/dist/ui/components/docs/DocsPanel.d.ts.map +1 -1
  7. package/dist/ui/components/docs/DocsPanel.js +1 -1
  8. package/dist/ui/components/docs/DocsPanel.js.map +1 -1
  9. package/dist/ui/components/launch/VersionBanner.js +1 -1
  10. package/dist/ui/components/launch/VersionBanner.js.map +1 -1
  11. package/dist/ui/components/layout/KeybindsLegend.d.ts.map +1 -1
  12. package/dist/ui/components/layout/KeybindsLegend.js +1 -1
  13. package/dist/ui/components/layout/KeybindsLegend.js.map +1 -1
  14. package/dist/ui/components/tabs/BugReportTab.js +1 -1
  15. package/dist/ui/components/tabs/BugReportTab.js.map +1 -1
  16. package/dist/ui/services/docsService.d.ts +12 -27
  17. package/dist/ui/services/docsService.d.ts.map +1 -1
  18. package/dist/ui/services/docsService.js +40 -67
  19. package/dist/ui/services/docsService.js.map +1 -1
  20. package/docs/README.md +3 -410
  21. package/package.json +10 -7
  22. package/scripts/copy-docs-to-user.cjs +34 -0
  23. package/docs/Context/CheckpointFlowDiagram.md +0 -673
  24. package/docs/Context/ContextArchitecture.md +0 -898
  25. package/docs/Context/ContextCompression.md +0 -1102
  26. package/docs/Context/ContextManagment.md +0 -750
  27. package/docs/Context/Index.md +0 -209
  28. package/docs/Context/README.md +0 -390
  29. package/docs/DevelopmentRoadmap/Index.md +0 -238
  30. package/docs/DevelopmentRoadmap/OLLM-CLI_Releases.md +0 -419
  31. package/docs/DevelopmentRoadmap/PlanedFeatures.md +0 -448
  32. package/docs/DevelopmentRoadmap/README.md +0 -174
  33. package/docs/DevelopmentRoadmap/Roadmap.md +0 -572
  34. package/docs/DevelopmentRoadmap/RoadmapVisual.md +0 -372
  35. package/docs/Hooks/Architecture.md +0 -885
  36. package/docs/Hooks/Index.md +0 -244
  37. package/docs/Hooks/KeyboardShortcuts.md +0 -248
  38. package/docs/Hooks/Protocol.md +0 -817
  39. package/docs/Hooks/README.md +0 -403
  40. package/docs/Hooks/UserGuide.md +0 -1483
  41. package/docs/Hooks/VisualGuide.md +0 -598
  42. package/docs/Index.md +0 -506
  43. package/docs/Installation.md +0 -586
  44. package/docs/Introduction.md +0 -367
  45. package/docs/LLM Models/Index.md +0 -239
  46. package/docs/LLM Models/LLM_GettingStarted.md +0 -748
  47. package/docs/LLM Models/LLM_Index.md +0 -701
  48. package/docs/LLM Models/LLM_MemorySystem.md +0 -337
  49. package/docs/LLM Models/LLM_ModelCompatibility.md +0 -499
  50. package/docs/LLM Models/LLM_ModelsArchitecture.md +0 -933
  51. package/docs/LLM Models/LLM_ModelsCommands.md +0 -839
  52. package/docs/LLM Models/LLM_ModelsConfiguration.md +0 -1094
  53. package/docs/LLM Models/LLM_ModelsList.md +0 -1071
  54. package/docs/LLM Models/LLM_ModelsList.md.backup +0 -400
  55. package/docs/LLM Models/README.md +0 -355
  56. package/docs/MCP/MCP_Architecture.md +0 -1086
  57. package/docs/MCP/MCP_Commands.md +0 -1111
  58. package/docs/MCP/MCP_GettingStarted.md +0 -590
  59. package/docs/MCP/MCP_Index.md +0 -524
  60. package/docs/MCP/MCP_Integration.md +0 -866
  61. package/docs/MCP/MCP_Marketplace.md +0 -160
  62. package/docs/MCP/README.md +0 -415
  63. package/docs/Prompts System/Architecture.md +0 -760
  64. package/docs/Prompts System/Index.md +0 -223
  65. package/docs/Prompts System/PromptsRouting.md +0 -1047
  66. package/docs/Prompts System/PromptsTemplates.md +0 -1102
  67. package/docs/Prompts System/README.md +0 -389
  68. package/docs/Prompts System/SystemPrompts.md +0 -856
  69. package/docs/Quickstart.md +0 -535
  70. package/docs/Tools/Architecture.md +0 -884
  71. package/docs/Tools/GettingStarted.md +0 -624
  72. package/docs/Tools/Index.md +0 -216
  73. package/docs/Tools/ManifestReference.md +0 -141
  74. package/docs/Tools/README.md +0 -440
  75. package/docs/Tools/UserGuide.md +0 -773
  76. package/docs/Troubleshooting.md +0 -1265
  77. package/docs/UI&Settings/Architecture.md +0 -729
  78. package/docs/UI&Settings/ColorASCII.md +0 -34
  79. package/docs/UI&Settings/Commands.md +0 -755
  80. package/docs/UI&Settings/Configuration.md +0 -872
  81. package/docs/UI&Settings/Index.md +0 -293
  82. package/docs/UI&Settings/Keybinds.md +0 -372
  83. package/docs/UI&Settings/README.md +0 -278
  84. package/docs/UI&Settings/Terminal.md +0 -637
  85. package/docs/UI&Settings/Themes.md +0 -604
  86. package/docs/UI&Settings/UIGuide.md +0 -550
@@ -1,590 +0,0 @@
1
- # Getting Started with MCP
2
-
3
- **Quick Start Guide for Model Context Protocol in OLLM CLI**
4
-
5
- This guide will help you get started with MCP (Model Context Protocol), hooks, and extensions in OLLM CLI.
6
-
7
- ---
8
-
9
- ## 📋 Table of Contents
10
-
11
- 1. [What is MCP?](#what-is-mcp)
12
- 2. [Prerequisites](#prerequisites)
13
- 3. [Quick Start](#quick-start)
14
- 4. [Using MCP Servers](#using-mcp-servers)
15
- 5. [Using Hooks](#using-hooks)
16
- 6. [Using Tools
17
- 7. [Next Steps](#next-steps)
18
-
19
- **See Also:**
20
-
21
- - [Complete Documentation Index](MCP_index.md) - All documentation with summaries
22
- - [MCP Commands Reference](MCP_commands.md) - All available commands
23
- - [MCP Architecture](MCP_architecture.md) - System design details
24
-
25
- ---
26
-
27
- ## What is MCP?
28
-
29
- **Model Context Protocol (MCP)** is an open protocol that standardizes how applications provide context to LLMs. In OLLM CLI, MCP enables three powerful features:
30
-
31
- ### 1. MCP Servers
32
-
33
- External tools and services that your LLM can use:
34
-
35
- - File operations
36
- - Database queries
37
- - API integrations
38
- - Web searches
39
- - Custom tools
40
-
41
- ### 2. Hooks
42
-
43
- Event-driven automation:
44
-
45
- - Run commands before/after execution
46
- - Automate workflows
47
- - Add safety gates
48
- - Custom event handling
49
-
50
- ### 3. Extensions
51
-
52
- Modular functionality packages:
53
-
54
- - Skills (prompt templates)
55
- - Settings (configuration)
56
- - MCP servers (tools)
57
- - Hooks (automation)
58
-
59
- ---
60
-
61
- ## Prerequisites
62
-
63
- ### Required
64
-
65
- - OLLM CLI installed and configured
66
- - Node.js 20+ (for some MCP servers)
67
- - Basic command-line knowledge
68
-
69
- ### Optional
70
-
71
- - Git (for extension installation)
72
- - Python 3.8+ (for Python-based MCP servers)
73
- - Docker (for containerized MCP servers)
74
-
75
- ### Verify Installation
76
-
77
- ```bash
78
- # Check OLLM CLI version
79
- ollm --version
80
-
81
- # Check if MCP is available
82
- ollm /help
83
- # Look for /mcp, /hooks, /extensions commands
84
- ```
85
-
86
- ---
87
-
88
- ## Quick Start
89
-
90
- ### 1. Check MCP Status
91
-
92
- ```bash
93
- # Start OLLM CLI
94
- ollm
95
-
96
- # Check available MCP commands
97
- /help
98
-
99
- # List MCP servers (if any configured)
100
- /mcp list
101
-
102
- # Check MCP health
103
- /mcp health
104
- ```
105
-
106
- ### 2. Your First Hook
107
-
108
- Hooks automate tasks based on events. Let's create a simple hook:
109
-
110
- ```bash
111
- # Create a hook that runs before each execution
112
- /hooks create pre-execution "echo 'Starting execution...'"
113
-
114
- # List your hooks
115
- /hooks list
116
-
117
- # Test it by running a prompt
118
- Hello, world!
119
- ```
120
-
121
- ### 3. Your First Extension
122
-
123
- Extensions add functionality. Let's install one:
124
-
125
- ```bash
126
- # Search for extensions
127
- /extensions search github
128
-
129
- # Install an extension (example)
130
- /extensions install https://github.com/ollm/ext-github/releases/latest/download/github.tar.gz
131
-
132
- # List installed extensions
133
- /extensions list
134
-
135
- # Enable the extension
136
- /extensions enable github
137
- ```
138
-
139
- ---
140
-
141
- ## Using MCP Servers
142
-
143
- MCP servers provide tools that your LLM can use. Here's how to work with them:
144
-
145
- ### Listing Servers
146
-
147
- ```bash
148
- # List all configured servers
149
- /mcp list
150
-
151
- # Check server health
152
- /mcp health
153
-
154
- # Check specific server
155
- /mcp health check <server-name>
156
- ```
157
-
158
- ### Starting/Stopping Servers
159
-
160
- ```bash
161
- # Start a server
162
- /mcp start <server-name>
163
-
164
- # Stop a server
165
- /mcp stop <server-name>
166
-
167
- # Restart a server
168
- /mcp restart <server-name>
169
- ```
170
-
171
- ### Using Server Tools
172
-
173
- Once a server is running, its tools are automatically available to the LLM:
174
-
175
- ```bash
176
- # Example: Using a file server
177
- Can you read the contents of README.md?
178
-
179
- # Example: Using a GitHub server
180
- Show me the latest issues in the ollm/ollm-cli repository
181
-
182
- # Example: Using a database server
183
- Query the users table and show me the first 10 rows
184
- ```
185
-
186
- ### Configuring Servers
187
-
188
- MCP servers are configured in your OLLM config file:
189
-
190
- **Location:** `~/.ollm/config.yaml` or `.ollm/config.yaml`
191
-
192
- **Example:**
193
-
194
- ```yaml
195
- mcp:
196
- servers:
197
- filesystem:
198
- command: 'npx'
199
- args: ['-y', '@modelcontextprotocol/server-filesystem', '/path/to/workspace']
200
- transport: 'stdio'
201
-
202
- github:
203
- command: 'npx'
204
- args: ['-y', '@modelcontextprotocol/server-github']
205
- transport: 'stdio'
206
- oauth:
207
- provider: 'github'
208
- clientId: 'your-client-id'
209
- scopes: ['repo', 'user']
210
- ```
211
-
212
- **See:** [MCP Integration Guide](MCP_integration.md) for detailed configuration
213
-
214
- ---
215
-
216
- ## Using Hooks
217
-
218
- Hooks automate workflows based on events. Here's how to use them:
219
-
220
- ### Hook Events
221
-
222
- OLLM CLI supports 12 hook events:
223
-
224
- | Event | When it fires |
225
- | --------------------- | --------------------- |
226
- | `pre-execution` | Before LLM execution |
227
- | `post-execution` | After LLM execution |
228
- | `pre-tool-call` | Before tool execution |
229
- | `post-tool-call` | After tool execution |
230
- | `on-error` | When an error occurs |
231
- | `on-file-change` | When a file changes |
232
- | `on-git-commit` | Before git commit |
233
- | `on-session-start` | When session starts |
234
- | `on-session-end` | When session ends |
235
- | `on-context-overflow` | When context is full |
236
- | `on-approval-request` | When approval needed |
237
- | `custom` | Custom events |
238
-
239
- ### Creating Hooks
240
-
241
- ```bash
242
- # Create a simple hook
243
- /hooks create pre-execution "echo 'Starting...'"
244
-
245
- # Create a hook with a script
246
- /hooks create on-file-change "./scripts/format.sh {file}"
247
-
248
- # Create a hook from a file
249
- /hooks create pre-tool-call ./hooks/safety-check.js
250
- ```
251
-
252
- ### Managing Hooks
253
-
254
- ```bash
255
- # List all hooks
256
- /hooks list
257
-
258
- # Enable a hook
259
- /hooks enable <hook-name>
260
-
261
- # Disable a hook
262
- /hooks disable <hook-name>
263
-
264
- # Remove a hook
265
- /hooks remove <hook-name>
266
-
267
- # Debug hooks
268
- /hooks debug on
269
- ```
270
-
271
- ### Hook Trust Levels
272
-
273
- Hooks have three trust levels:
274
-
275
- 1. **Trusted** - System hooks, always run
276
- 2. **Workspace** - Project hooks, require approval
277
- 3. **Downloaded** - Extension hooks, require approval
278
-
279
- ```bash
280
- # Trust a workspace hook
281
- /hooks trust <hook-name>
282
-
283
- # Untrust a hook
284
- /hooks untrust <hook-name>
285
- ```
286
-
287
- ### Example Hooks
288
-
289
- **Format code on save:**
290
-
291
- ```bash
292
- /hooks create on-file-change "prettier --write {file}"
293
- ```
294
-
295
- **Run tests before commit:**
296
-
297
- ```bash
298
- /hooks create on-git-commit "npm test"
299
- ```
300
-
301
- **Safety check before tool execution:**
302
-
303
- ```bash
304
- /hooks create pre-tool-call "./scripts/safety-check.sh {tool} {args}"
305
- ```
306
-
307
- **See:** [Hooks User Guide](3%20projects/OLLM%20CLI/Hooks/user-guide.md) for more examples
308
-
309
- ---
310
-
311
- ## Using Extensions
312
-
313
- Extensions package functionality for easy distribution and installation.
314
-
315
- ### Searching Extensions
316
-
317
- ```bash
318
- # Search for extensions
319
- /extensions search <keyword>
320
-
321
- # Example: Search for GitHub extensions
322
- /extensions search github
323
-
324
- # Example: Search for database extensions
325
- /extensions search database
326
- ```
327
-
328
- ### Installing Extensions
329
-
330
- ```bash
331
- # Install from URL
332
- /extensions install https://example.com/extension.tar.gz
333
-
334
- # Install from file
335
- /extensions install ./my-extension.tar.gz
336
-
337
- # Install from registry (when available)
338
- /extensions install github-integration
339
- ```
340
-
341
- ### Managing Extensions
342
-
343
- ```bash
344
- # List installed extensions
345
- /extensions list
346
-
347
- # Show extension info
348
- /extensions info <extension-name>
349
-
350
- # Enable an extension
351
- /extensions enable <extension-name>
352
-
353
- # Disable an extension
354
- /extensions disable <extension-name>
355
-
356
- # Reload extensions (after changes)
357
- /extensions reload
358
- ```
359
-
360
- ### Extension Components
361
-
362
- Extensions can include:
363
-
364
- 1. **Skills** - Prompt templates
365
- 2. **Settings** - Configuration
366
- 3. **Servers** - MCP servers
367
- 4. **Hooks** - Automation
368
-
369
- **Example:** Installing a GitHub extension might add:
370
-
371
- - GitHub MCP server (tools for GitHub API)
372
- - GitHub hooks (auto-commit, PR creation)
373
- - GitHub skills (PR review templates)
374
- - GitHub settings (API token, default repo)
375
-
376
- ### Creating Extensions
377
-
378
- To create your own extension:
379
-
380
- 1. Create a directory with `manifest.json`
381
- 2. Add components (skills, servers, hooks)
382
- 3. Package as `.tar.gz`
383
- 4. Install locally or publish
384
-
385
- **See:** [Extension Development Guide](3%20projects/OLLM%20CLI/Extensions/development-guide.md)
386
-
387
- ---
388
-
389
- ## Next Steps
390
-
391
- ### Learn More
392
-
393
- **For Users:**
394
-
395
- - [MCP Commands Reference](MCP_commands.md) - All available commands
396
- - [Hooks User Guide](3%20projects/OLLM%20CLI/Hooks/user-guide.md) - Advanced hook usage
397
- - [Extensions User Guide](3%20projects/OLLM%20CLI/Extensions/user-guide.md) - Extension management
398
-
399
- **For Developers:**
400
-
401
- - [MCP Architecture](MCP_architecture.md) - System design
402
- - [Creating Hooks](3%20projects/OLLM%20CLI/Hooks/development-guide.md) - Build custom hooks
403
- - [Creating Extensions](3%20projects/OLLM%20CLI/Extensions/development-guide.md) - Build extensions
404
- - [Creating MCP Servers](3%20projects/OLLM%20CLI/MCP/servers/development-guide.md) - Build servers
405
-
406
- **For Administrators:**
407
-
408
- - [OAuth Setup](oauth-setup.md) - Configure OAuth
409
- - [Health Monitoring](health-monitoring.md) - Monitor servers
410
- - [Extension Marketplace](marketplace.md) - Manage marketplace
411
-
412
- ### Common Workflows
413
-
414
- **Development Workflow:**
415
-
416
- ```bash
417
- # 1. Install development extensions
418
- /extensions install dev-tools
419
-
420
- # 2. Set up hooks for code quality
421
- /hooks create on-file-change "eslint --fix {file}"
422
- /hooks create pre-git-commit "npm test"
423
-
424
- # 3. Configure MCP servers
425
- # Edit ~/.ollm/config.yaml to add filesystem, git servers
426
-
427
- # 4. Start coding with AI assistance
428
- ```
429
-
430
- **Data Analysis Workflow:**
431
-
432
- ```bash
433
- # 1. Install database extensions
434
- /extensions install postgres-tools
435
-
436
- # 2. Configure database MCP server
437
- # Edit config to add database connection
438
-
439
- # 3. Set up hooks for data validation
440
- /hooks create pre-tool-call "./validate-query.sh {args}"
441
-
442
- # 4. Start querying with AI
443
- ```
444
-
445
- **Content Creation Workflow:**
446
-
447
- ```bash
448
- # 1. Install content extensions
449
- /extensions install markdown-tools
450
-
451
- # 2. Set up hooks for formatting
452
- /hooks create on-file-change "prettier --write {file}"
453
-
454
- # 3. Configure web search MCP server
455
- # Edit config to add search API
456
-
457
- # 4. Start writing with AI assistance
458
- ```
459
-
460
- ### Troubleshooting
461
-
462
- **MCP server not working:**
463
-
464
- ```bash
465
- # Check server status
466
- /mcp health check <server>
467
-
468
- # Check logs
469
- /mcp logs <server>
470
-
471
- # Restart server
472
- /mcp restart <server>
473
- ```
474
-
475
- **Hook not executing:**
476
-
477
- ```bash
478
- # Enable debug mode
479
- /hooks debug on
480
-
481
- # Check hook status
482
- /hooks list
483
-
484
- # Trust the hook if needed
485
- /hooks trust <hook-name>
486
- ```
487
-
488
- **Extension not loading:**
489
-
490
- ```bash
491
- # Check extension status
492
- /extensions info <extension>
493
-
494
- # Enable the extension
495
- /extensions enable <extension>
496
-
497
- # Reload extensions
498
- /extensions reload
499
- ```
500
-
501
- **See:** [Troubleshooting Guide](../Troubleshooting.md) for more help
502
-
503
- ---
504
-
505
- ## Examples
506
-
507
- ### Example 1: GitHub Integration
508
-
509
- ```bash
510
- # 1. Install GitHub extension
511
- /extensions install github-integration
512
-
513
- # 2. Configure OAuth
514
- /mcp oauth login github
515
-
516
- # 3. Use GitHub tools
517
- Can you show me the latest issues in my repository?
518
- Create a PR for the feature branch
519
- ```
520
-
521
- ### Example 2: Automated Testing
522
-
523
- ```bash
524
- # 1. Create pre-commit hook
525
- /hooks create pre-git-commit "npm test"
526
-
527
- # 2. Create post-execution hook
528
- /hooks create post-execution "./scripts/save-session.sh"
529
-
530
- # 3. Trust the hooks
531
- /hooks trust pre-git-commit
532
- /hooks trust post-execution
533
- ```
534
-
535
- ### Example 3: Custom Workflow
536
-
537
- ```bash
538
- # 1. Create custom extension
539
- mkdir my-workflow
540
- cd my-workflow
541
- # Create manifest.json, add hooks and skills
542
-
543
- # 2. Package extension
544
- tar -czf my-workflow.tar.gz .
545
-
546
- # 3. Install extension
547
- /extensions install ./my-workflow.tar.gz
548
-
549
- # 4. Enable extension
550
- /extensions enable my-workflow
551
- ```
552
-
553
- ---
554
-
555
- ## Resources
556
-
557
- ### Documentation
558
-
559
- - [MCP Architecture](MCP_architecture.md) - System design
560
- - [MCP Integration](MCP_integration.md) - Integration guide
561
- - [MCP Commands](MCP_commands.md) - Command reference
562
-
563
- ### Community
564
-
565
- - GitHub: ollm/ollm-cli (https://github.com/ollm/ollm-cli)
566
- - Discord: [Join our server](#)
567
- - Forum: [Community forum](#)
568
-
569
- ### External Resources
570
-
571
- - MCP Specification (https://modelcontextprotocol.io)
572
- - MCP Servers (https://github.com/modelcontextprotocol/servers)
573
- - Extension Examples (https://github.com/ollm/extensions)
574
-
575
- ---
576
-
577
- ## Support
578
-
579
- Need help? Here's how to get support:
580
-
581
- 1. **Check Documentation** - Most questions are answered here
582
- 2. **Search Issues** - Someone may have had the same problem
583
- 3. **Ask Community** - Discord and forum are active
584
- 4. **Report Bugs** - GitHub issues for bugs and feature requests
585
-
586
- ---
587
-
588
- **Last Updated:** 2026-01-16
589
- **Version:** 0.1.0
590
- **Next:** [MCP Commands Reference](MCP_commands.md)