Skip to content

Commit c4a5575

Browse files
committed
feat: Add chat completion support for Meilisearch v1.6+
- Implement ChatManager class with chat workspace and completion methods - Add 6 new MCP tools for chat functionality: - chat-completion: Generate responses with RAG using indexed documents - create-chat-workspace: Create workspaces with default settings - update-chat-workspace: Modify existing workspace configurations - list-chat-workspaces: List all available workspaces - get-chat-workspace: Get specific workspace details - delete-chat-workspace: Remove workspaces - Add streaming support for chat completions - Include comprehensive tests for all chat features - Update README with chat feature documentation and examples This enables Meilisearch MCP users to leverage the new chat completions feature introduced in Meilisearch v1.6.0, allowing LLMs to generate contextual responses using indexed documents as knowledge base.
1 parent 2821835 commit c4a5575

File tree

16 files changed

+1351
-3
lines changed

16 files changed

+1351
-3
lines changed

.claude/commands/swarm/analysis.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Analysis Swarm Command
2+
3+
## Usage
4+
```bash
5+
claude-flow swarm "Analyze data" --strategy analysis --parallel --max-agents 8
6+
```
7+
8+
## Description
9+
Data analysis and insights generation with coordinated agents.
10+
11+
## Strategy Features
12+
- Data collection and preprocessing
13+
- Statistical analysis
14+
- Pattern recognition
15+
- Visualization and reporting
16+
17+
## Best Practices
18+
- Use parallel execution for large datasets
19+
- Increase agent count for complex analysis
20+
- Enable monitoring for long-running tasks
21+
- Use appropriate output format (json, csv, html)

.claude/commands/swarm/development.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Development Swarm Command
2+
3+
## Usage
4+
```bash
5+
claude-flow swarm "Build application" --strategy development --mode hierarchical
6+
```
7+
8+
## Description
9+
Coordinated software development with specialized agents.
10+
11+
## Strategy Features
12+
- Architecture design
13+
- Code implementation
14+
- Testing and validation
15+
- Documentation generation
16+
17+
## Best Practices
18+
- Use hierarchical mode for complex projects
19+
- Enable parallel execution for independent modules
20+
- Set higher agent count for large projects
21+
- Monitor progress with --monitor flag

.claude/commands/swarm/examples.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Claude-Flow Swarm Examples
2+
3+
## Quick Start Commands
4+
5+
### Research Tasks
6+
```bash
7+
claude-flow swarm "Research modern web frameworks" --strategy research --mode distributed
8+
claude-flow swarm "Analyze market trends in AI" --strategy research --parallel --max-agents 6
9+
```
10+
11+
### Development Tasks
12+
```bash
13+
claude-flow swarm "Build a microservice API" --strategy development --mode hierarchical
14+
claude-flow swarm "Create React dashboard" --strategy development --parallel --max-agents 8
15+
```
16+
17+
### Analysis Tasks
18+
```bash
19+
claude-flow swarm "Analyze user behavior data" --strategy analysis --mode mesh
20+
claude-flow swarm "Performance analysis of application" --strategy analysis --monitor
21+
```
22+
23+
### Testing Tasks
24+
```bash
25+
claude-flow swarm "Comprehensive testing suite" --strategy testing --parallel
26+
claude-flow swarm "Security testing analysis" --strategy testing --mode distributed
27+
```
28+
29+
### Optimization Tasks
30+
```bash
31+
claude-flow swarm "Optimize database queries" --strategy optimization --mode hybrid
32+
claude-flow swarm "Frontend performance optimization" --strategy optimization --monitor
33+
```
34+
35+
### Maintenance Tasks
36+
```bash
37+
claude-flow swarm "Update dependencies safely" --strategy maintenance --mode centralized
38+
claude-flow swarm "System health check" --strategy maintenance --monitor
39+
```
40+
41+
## Advanced Usage
42+
43+
### Custom Output and Monitoring
44+
```bash
45+
# Save results in different formats
46+
claude-flow swarm "Research task" --output sqlite --output-dir ./results
47+
48+
# Enable real-time monitoring
49+
claude-flow swarm "Long task" --monitor --timeout 120
50+
51+
# Dry run to see configuration
52+
claude-flow swarm "Any task" --dry-run
53+
```
54+
55+
### Coordination Modes
56+
57+
- **centralized**: Single coordinator (best for simple tasks)
58+
- **distributed**: Multiple coordinators (best for complex, parallelizable tasks)
59+
- **hierarchical**: Tree structure (best for organized, structured work)
60+
- **mesh**: Peer-to-peer (best for dynamic, adaptive tasks)
61+
- **hybrid**: Mixed patterns (best for complex workflows)
62+
63+
See .claude/commands/swarm/ for detailed documentation on each strategy.

.claude/commands/swarm/maintenance.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Maintenance Swarm Command
2+
3+
## Usage
4+
```bash
5+
claude-flow swarm "System maintenance" --strategy maintenance --mode centralized
6+
```
7+
8+
## Description
9+
System maintenance and updates with coordinated agents.
10+
11+
## Strategy Features
12+
- System health checks
13+
- Update planning
14+
- Implementation coordination
15+
- Verification and rollback
16+
17+
## Best Practices
18+
- Use centralized mode for controlled updates
19+
- Enable monitoring for safety
20+
- Set conservative timeouts
21+
- Use appropriate output for audit trails
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Optimization Swarm Command
2+
3+
## Usage
4+
```bash
5+
claude-flow swarm "Optimize performance" --strategy optimization --mode hybrid
6+
```
7+
8+
## Description
9+
Performance optimization with coordinated analysis and improvements.
10+
11+
## Strategy Features
12+
- Performance profiling
13+
- Bottleneck identification
14+
- Optimization implementation
15+
- Validation and testing
16+
17+
## Best Practices
18+
- Use hybrid mode for adaptive optimization
19+
- Enable monitoring for real-time metrics
20+
- Use parallel execution for multiple optimization paths
21+
- Set adequate timeout for thorough optimization

.claude/commands/swarm/research.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Research Swarm Command
2+
3+
## Usage
4+
```bash
5+
claude-flow swarm "Research objective" --strategy research --mode distributed
6+
```
7+
8+
## Description
9+
Multi-agent research coordination with distributed intelligence gathering.
10+
11+
## Strategy Features
12+
- Web search and data collection
13+
- Source credibility analysis
14+
- Knowledge synthesis
15+
- Report generation
16+
17+
## Best Practices
18+
- Use parallel execution for multiple research threads
19+
- Enable monitoring for real-time progress
20+
- Set appropriate timeout for comprehensive research
21+
- Use distributed mode for complex topics

.claude/commands/swarm/testing.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Testing Swarm Command
2+
3+
## Usage
4+
```bash
5+
claude-flow swarm "Test application" --strategy testing --mode mesh
6+
```
7+
8+
## Description
9+
Comprehensive testing coordination with distributed validation.
10+
11+
## Strategy Features
12+
- Test planning and strategy
13+
- Test case generation
14+
- Parallel test execution
15+
- Results aggregation and reporting
16+
17+
## Best Practices
18+
- Use mesh mode for distributed testing
19+
- Enable parallel execution for test suites
20+
- Set appropriate timeout for comprehensive testing
21+
- Monitor results with --monitor flag

.claude/config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "1.0.58",
3+
"project": {
4+
"name": "meilisearch-mcp",
5+
"type": "claude-flow",
6+
"created": "2025-06-17T17:15:09.614Z"
7+
},
8+
"features": {
9+
"swarm": true,
10+
"sparc": true,
11+
"memory": true,
12+
"terminal": true,
13+
"mcp": true
14+
}
15+
}

0 commit comments

Comments
 (0)