Development Guide
Contribution guidelines and development workflow.
Setup
bash
git clone https://github.com/royisme/mcp-task-relay
cd mcp-task-relay
bun install
bun run migrateDevelopment Workflow
- Create feature branch:
git checkout -b feature/my-feature - Make changes
- Run quality checks:
bun test && bun run typecheck && bun run lint:type-aware - Commit with conventional commits
- Push and create PR
Code Standards
- ✅ Zero
anytypes (enforced by oxlint) - ✅ All schemas have Zod validation
- ✅ Use
Result<T, E>for error handling - ✅ Branded types for IDs
- ✅ Write tests for new features
Project Structure
src/
├── mcp/ # MCP server
├── core/ # Business logic
├── db/ # Database layer
├── executors/ # AI backends
├── models/ # Types & schemas
├── services/ # Services
├── config/ # Configuration
└── utils/ # UtilitiesAdding Features
New Executor
- Create
src/executors/my-executor.ts - Implement
Executorinterface - Register in
factory.ts - Add config schema
- Write tests
New MCP Tool
- Add schema in
models/schemas.ts - Add handler in
mcp/server.ts - Update API docs
- Write integration test
License
MIT - See LICENSE file