Skip to content

Commit b872d43

Browse files
authored
Merge pull request #9 from jpicklyk/feature/ai-guidelines-system
Feature/ai guidelines system
2 parents 33347bd + 50ce00a commit b872d43

File tree

21 files changed

+6664
-2192
lines changed

21 files changed

+6664
-2192
lines changed

CHANGELOG.md

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [1.1.0-alpha-01]
99

10-
## [1.1.0-alpha-01] - 2025-10-08
10+
### Dependencies
11+
12+
- kotlin-sdk: 0.5.0 → 0.7.2
13+
- Kotlin: 2.1.20 → 2.2.0
14+
- Ktor: 3.3.0 (transitive dependency from kotlin-sdk)
1115

1216
### Added
1317
- Output schemas for all 6 Task Management tools (create_task, get_task, update_task, delete_task, search_tasks, get_overview)
@@ -17,40 +21,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1721
- Tool titles for all 39 MCP tools for better discoverability in clients
1822
- ToolDefinition interface enhancements: optional `title` and `outputSchema` properties
1923
- ToolRegistry now registers tool titles and output schemas with MCP server
24+
- Installation Guide (`docs/installation-guide.md`) - comprehensive setup guide for all platforms and installation methods
25+
- Developer Guides directory (`docs/developer-guides/`) - organized developer-specific documentation
26+
- PRD-Driven Development Workflow - complete guide for using Product Requirements Documents with AI agents
27+
- Existing Project Integration guide - instructions for connecting Task Orchestrator to ongoing work
28+
- "What AI Sees After Initialization" section in AI Guidelines with example patterns
2029

2130
### Changed
31+
- Upgraded kotlin-sdk from 0.5.0 to 0.7.2
32+
- Updated Kotlin from 2.1.20 to 2.2.0 for SDK compatibility
33+
- Fixed test mock for addTool API signature change (now uses named parameters)
2234
- All tool implementations now include descriptive title properties
23-
- All MCP tools now provide structured output schemas for better agent integration (Task, Project, Section, Template, Feature, and Dependency management)
35+
- All MCP tools now provide structured output schemas for better agent integration
36+
- Modernized all documentation with improved structure, cross-referencing, and natural language examples
37+
- Made documentation AI-agent agnostic - works with any MCP-compatible AI (Claude Desktop, Claude Code, Cursor, etc.)
38+
- Restructured quick-start.md with configuration options for multiple AI agents
39+
- Enhanced workflow-prompts.md with Dual Workflow Model and PRD development pattern
40+
- Updated templates.md with AI-driven template discovery and composition patterns
41+
- Improved api-reference.md with workflow-based tool patterns and usage examples
42+
- Expanded troubleshooting.md with Quick Reference table and AI-specific issues
2443

2544
### Technical Details
2645
- Output schemas use Tool.Output from kotlin-sdk 0.7.x
2746
- Schemas define complete response structure with required vs optional fields
2847
- Proper JSON Schema types, formats, and enum constraints
2948
- Support for nested structures (pagination, hierarchical data)
3049
- All changes maintain backward compatibility
31-
32-
## [1.0.2] - 2025-10-08
33-
34-
### Changed
35-
- Upgraded kotlin-sdk from 0.5.0 to 0.7.2
36-
- Updated Kotlin from 2.1.20 to 2.2.0 for SDK compatibility
37-
- Fixed test mock for addTool API signature change (now uses named parameters)
38-
39-
### Dependencies
40-
- kotlin-sdk: 0.5.0 → 0.7.2
41-
- Kotlin: 2.1.20 → 2.2.0
42-
- Ktor: 3.3.0 (transitive dependency from kotlin-sdk)
43-
44-
### Notes
45-
- SDK "breaking changes" (Kotlin-style callbacks, JSON serialization refactoring) did not affect codebase
46-
- All existing callbacks were already using proper Kotlin lambda syntax
47-
- JSON serialization patterns were already compatible with SDK 0.7.x changes
48-
- All tests pass successfully
49-
- Docker build validated and working
50-
- Build configuration validated with no deprecation warnings
51-
52-
### Technical Details
53-
For detailed information about the upgrade process and validation:
54-
- See feature: Kotlin SDK 0.7.2 Integration (feature-branch: feature/kotlin-sdk-0.7.2-integration)
55-
- All validation tasks completed successfully
56-
- No runtime issues detected

README.md

Lines changed: 70 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -7,54 +7,45 @@ A Kotlin implementation of the Model Context Protocol (MCP) server for comprehen
77

88
## 📚 Documentation
99

10-
- **[📖 Full Documentation](docs/)** - Complete guides and reference
11-
- **[🚀 Quick Start Guide](docs/quick-start.md)** - Get running in 2 minutes
12-
- **[🔧 API Reference](docs/api-reference.md)** - All 37 MCP tools detailed
13-
- **[📋 Workflow Prompts](docs/workflow-prompts.md)** - 5 built-in workflow automations
10+
**Getting Started**:
11+
- **[🚀 Quick Start](docs/quick-start.md)** - Get running in 2 minutes
12+
- **[🔧 Installation Guide](docs/installation-guide.md)** - Comprehensive setup for all platforms
13+
- **[🤖 AI Guidelines](docs/ai-guidelines.md)** - How AI uses Task Orchestrator autonomously
14+
15+
**Using Task Orchestrator**:
1416
- **[📝 Templates](docs/templates.md)** - 9 built-in documentation templates
15-
- **[🗃️ Database Migrations](docs/database-migrations.md)** - Schema change management for developers
17+
- **[📋 Workflow Prompts](docs/workflow-prompts.md)** - 6 workflow automations
18+
- **[🔧 API Reference](docs/api-reference.md)** - Complete MCP tools documentation
19+
- **[🆘 Troubleshooting](docs/troubleshooting.md)** - Solutions to common issues
20+
21+
**For Developers**:
22+
- **[👨‍💻 Developer Guides](docs/developer-guides/)** - Architecture, contributing, development setup
23+
- **[🗃️ Database Migrations](docs/developer-guides/database-migrations.md)** - Schema change management
1624
- **[💬 Community Wiki](../../wiki)** - Examples, tips, and community guides
1725

1826
## Why Use MCP Task Orchestrator?
1927

20-
- **🤖 AI-Native**: Designed specifically for AI assistant workflows
28+
- **🤖 AI-Native**: Designed specifically for AI assistant workflows with autonomous pattern recognition
2129
- **📊 Hierarchical Organization**: Projects → Features → Tasks with dependencies
2230
- **🎯 Context-Efficient**: Progressive loading and token optimization
2331
- **📋 Template-Driven**: 9 built-in templates for consistent documentation
24-
- **🔄 Workflow Automation**: 5 comprehensive workflow prompts
32+
- **🔄 Workflow Automation**: 6 comprehensive workflow prompts for common scenarios
2533
- **🔗 Rich Relationships**: Task dependencies with cycle detection
2634
- **🔒 Concurrent Access Protection**: Built-in sub-agent collision prevention
2735
- **⚡ 37 MCP Tools**: Complete task orchestration API
2836

2937
## Quick Start (2 Minutes)
3038

31-
### 1. Pull or Build Docker Image
39+
Get Task Orchestrator running with your MCP-compatible AI agent:
3240

33-
#### Option A: Production Image (Recommended)
41+
**Step 1: Pull Docker Image**
3442
```bash
35-
# Pull latest release
3643
docker pull ghcr.io/jpicklyk/task-orchestrator:latest
37-
38-
# Or specific version
39-
docker pull ghcr.io/jpicklyk/task-orchestrator:1.0.1
40-
41-
# Or latest build from main branch
42-
docker pull ghcr.io/jpicklyk/task-orchestrator:main
4344
```
4445

45-
#### Option B: Build Locally (Development)
46-
```bash
47-
# Build locally
48-
./scripts/docker-clean-and-build.bat # Windows
49-
# Or manually: docker build -t mcp-task-orchestrator:dev .
50-
```
46+
**Step 2: Configure Your AI Agent**
5147

52-
### 2. Configure Claude Desktop or Claude Code
53-
54-
#### For Claude Desktop
55-
Add to your `claude_desktop_config.json`:
56-
57-
**Production Configuration**
48+
For **Claude Desktop**, add to `claude_desktop_config.json`:
5849
```json
5950
{
6051
"mcpServers": {
@@ -70,54 +61,28 @@ Add to your `claude_desktop_config.json`:
7061
}
7162
```
7263

73-
**Local Development Configuration**
74-
```json
75-
{
76-
"mcpServers": {
77-
"task-orchestrator": {
78-
"command": "docker",
79-
"args": [
80-
"run", "--rm", "-i",
81-
"--volume", "mcp-task-data:/app/data",
82-
"mcp-task-orchestrator:dev"
83-
]
84-
}
85-
}
86-
}
87-
```
88-
89-
#### For Claude Code
90-
Use the JSON configuration command:
91-
64+
For **Claude Code**, use the MCP configuration command:
9265
```bash
93-
# Production version (latest release)
9466
claude mcp add-json task-orchestrator '{"type":"stdio","command":"docker","args":["run","--rm","-i","-v","mcp-task-data:/app/data","ghcr.io/jpicklyk/task-orchestrator:latest"]}'
95-
96-
# Specific version
97-
claude mcp add-json task-orchestrator '{"type":"stdio","command":"docker","args":["run","--rm","-i","-v","mcp-task-data:/app/data","ghcr.io/jpicklyk/task-orchestrator:1.0.1"]}'
98-
99-
# Latest from main branch
100-
claude mcp add-json task-orchestrator '{"type":"stdio","command":"docker","args":["run","--rm","-i","-v","mcp-task-data:/app/data","ghcr.io/jpicklyk/task-orchestrator:main"]}'
101-
102-
# Local development version (after building locally)
103-
claude mcp add-json task-orchestrator '{"type":"stdio","command":"docker","args":["run","--rm","-i","-v","mcp-task-data:/app/data","mcp-task-orchestrator:dev"]}'
10467
```
10568

106-
### 3. Test Connection (Optional)
107-
```bash
108-
# Test the Docker container runs correctly
109-
docker run --rm -i -v mcp-task-data:/app/data ghcr.io/jpicklyk/task-orchestrator:latest
69+
For **other MCP-compatible AI agents** (Cursor, Windsurf, etc.), use similar Docker configuration adapted to your agent's format.
11070

111-
# Test MCP connection (requires Node.js)
112-
node scripts/test-mcp-connection.js
113-
```
71+
**Step 3: Restart/Reconnect Your AI Agent**
11472

115-
### 4. Start Using
116-
Ask Claude:
73+
**Step 4: Start Using**
74+
75+
Ask your AI agent:
11776
- "Create a new project for my web application"
11877
- "Show me the project overview"
11978
- "Apply the technical approach template to this task"
12079

80+
> **📖 Full Quick Start Guide**: See [docs/quick-start.md](docs/quick-start.md) for detailed instructions including Claude Code setup, building from source, and troubleshooting.
81+
>
82+
> **🔧 Advanced Installation**: See [docs/installation-guide.md](docs/installation-guide.md) for all installation options, environment variables, and platform-specific instructions.
83+
>
84+
> **⭐ PRD-Driven Development**: For best results, provide Claude with Product Requirements Documents (PRDs) for intelligent breakdown into features and tasks with proper dependencies. See [PRD Workflow Guide](docs/quick-start.md#prd-driven-development-workflow).
85+
12186
## Core Concepts
12287

12388
```
@@ -128,26 +93,43 @@ Project (optional)
12893
```
12994

13095
- **Projects**: Top-level organizational containers
131-
- **Features**: Group related tasks into functional units
96+
- **Features**: Group related tasks into functional units
13297
- **Tasks**: Primary work units with status, priority, complexity
13398
- **Dependencies**: Relationships between tasks (BLOCKS, IS_BLOCKED_BY, RELATES_TO)
13499
- **Sections**: Rich content blocks for documentation
135100
- **Templates**: Standardized documentation patterns
136101

102+
## AI-Native Design
103+
104+
Task Orchestrator includes a comprehensive **AI Guidelines and Initialization System** that enables AI agents to use the system autonomously through natural language pattern recognition:
105+
106+
- **Three-Layer Architecture**: MCP Resources (internalized knowledge) + Workflow Prompts (explicit guidance) + Dynamic Templates (database-driven)
107+
- **Autonomous Pattern Recognition**: AI recognizes user intent like "help me plan this feature" without explicit commands
108+
- **Dual Workflow Model**: Autonomous pattern application for speed + explicit workflow invocation for comprehensive guidance
109+
- **Template Discovery**: AI dynamically discovers and applies appropriate templates based on work type
110+
- **Git Workflow Detection**: Automatic .git directory detection triggers git workflow templates
111+
112+
> **See**: [AI Guidelines Documentation](docs/ai-guidelines.md) for complete initialization process and autonomous workflow patterns
113+
137114
## Key Features
138115

139116
### Template System (9 Built-in Templates)
140117
- **AI Workflow Instructions**: Git workflows, PR management, task implementation, bug investigation
141-
- **Documentation Properties**: Technical approach, requirements, context & background
118+
- **Documentation Properties**: Technical approach, requirements, context & background
142119
- **Process & Quality**: Testing strategy, definition of done
143120

144-
### Workflow Prompts (5 Built-in Workflows)
121+
> **See**: [Templates Documentation](docs/templates.md) for AI-driven template discovery and composition patterns
122+
123+
### Workflow Prompts (6 Built-in Workflows)
124+
- `initialize_task_orchestrator` - AI initialization and guideline loading
145125
- `create_feature_workflow` - Comprehensive feature creation
146126
- `task_breakdown_workflow` - Complex task decomposition
147127
- `bug_triage_workflow` - Systematic bug management
148128
- `project_setup_workflow` - Complete project initialization
149129
- `implement_feature_workflow` - Git-aware feature implementation with completion validation
150130

131+
> **See**: [Workflow Prompts Documentation](docs/workflow-prompts.md) for dual workflow model (autonomous vs. explicit)
132+
151133
### MCP Tools (37 Total)
152134
- **6 Task Management Tools** - Core CRUD operations
153135
- **5 Feature Management Tools** - Group related work
@@ -156,35 +138,25 @@ Project (optional)
156138
- **9 Section Management Tools** - Rich documentation
157139
- **9 Template Management Tools** - Workflow automation
158140

141+
> **See**: [API Reference](docs/api-reference.md) for workflow-based tool patterns and AI usage examples
142+
159143
## Alternative Installation Options
160144

161-
### Option 1: Direct JAR (Without Docker)
145+
**Without Docker (Direct JAR)**:
162146
```bash
163-
# Build
164147
./gradlew build
165-
166-
# Run
167148
java -jar build/libs/mcp-task-orchestrator-*.jar
168149
```
169150

170-
### Option 2: Development Environment Variables
151+
**Environment Variables**:
171152
```bash
172-
# Configure environment for local development
173-
MCP_TRANSPORT=stdio
174-
DATABASE_PATH=data/tasks.db
175-
USE_FLYWAY=true
176-
MCP_DEBUG=true # Enable debug logging
153+
MCP_TRANSPORT=stdio # Transport type
154+
DATABASE_PATH=data/tasks.db # SQLite database path
155+
USE_FLYWAY=true # Enable migrations
156+
MCP_DEBUG=true # Enable debug logging
177157
```
178158

179-
## Configuration
180-
181-
| Variable | Description | Default |
182-
|----------|-------------|---------|
183-
| `MCP_TRANSPORT` | Transport type | `stdio` |
184-
| `DATABASE_PATH` | SQLite database path | `data/tasks.db` |
185-
| `USE_FLYWAY` | Enable Flyway database migrations | `true` |
186-
| `MCP_SERVER_NAME` | Server name | `mcp-task-orchestrator` |
187-
| `MCP_DEBUG` | Enable debug logging | `false` |
159+
> **📖 Complete Configuration Reference**: See [Installation Guide](docs/installation-guide.md) for all environment variables, platform-specific instructions, and advanced configuration options.
188160
189161
## Release Information
190162

@@ -212,17 +184,19 @@ node scripts/test-mcp-connection.js
212184
MCP_DEBUG=true java -jar build/libs/mcp-task-orchestrator-*.jar
213185
```
214186

187+
> **👨‍💻 For Developers**: See [Developer Guides](docs/developer-guides/) for architecture, contributing guidelines, development setup, and database migration management.
188+
215189
## Troubleshooting
216190

217-
### Common Issues
218-
- **JSON parsing errors**: Enable `MCP_DEBUG=true` and check logs in `logs/`
219-
- **Docker issues**: Ensure Docker Desktop is running and `docker volume inspect mcp-task-data`
220-
- **Connection problems**: Test with the echo tool (see [troubleshooting guide](docs/troubleshooting.md))
191+
**Quick Fixes**:
192+
- **Claude can't find tools**: Restart Claude Desktop
193+
- **Docker not running**: Start Docker Desktop, check with `docker version`
194+
- **Connection problems**: Enable `MCP_DEBUG=true` and check logs
221195

222-
### Getting Help
223-
- 📖 [Full troubleshooting guide](docs/troubleshooting.md)
224-
- 💬 [Community discussions](../../discussions)
225-
- 🐛 [Report issues](../../issues)
196+
**Get Help**:
197+
- 📖 [Troubleshooting Guide](docs/troubleshooting.md) - Quick reference table, AI-specific issues, and comprehensive solutions
198+
- 💬 [Community Discussions](../../discussions) - Ask questions and share ideas
199+
- 🐛 [Report Issues](../../issues) - Bug reports and feature requests
226200

227201
## Contributing
228202

0 commit comments

Comments
 (0)